Skip to:
Content

BuddyPress.org

Changeset 11978


Ignore:
Timestamp:
04/16/2018 06:14:32 PM (6 years ago)
Author:
djpaul
Message:

Add BuddyPress WP-CLI extension

For 3.0.0, the BP WP-CLI extension is added to the build package version of BuddyPress.
In a future release, its code will be migrated into BuddyPress core itself.

See https://github.com/buddypress/wp-cli-buddypress

Fixes #7604

Huge props to espellcaste, and boonebgorges :)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r11763 r11978  
    260260                cwd: BUILD_DIR,
    261261                stdout: false
     262            },
     263            cli: {
     264                command: 'svn export --force https://github.com/buddypress/wp-cli-buddypress.git/trunk@579 cli',
     265                cwd: BUILD_DIR,
     266                stdout: false
    262267            }
    263268        },
     
    297302    grunt.registerTask( 'src',     ['checkDependencies', 'jsvalidate:src', 'jshint', 'stylelint', 'sass', 'rtlcss'] );
    298303    grunt.registerTask( 'commit',  ['src', 'checktextdomain', 'imagemin'] );
    299     grunt.registerTask( 'build',   ['commit', 'clean:all', 'copy:files', 'uglify', 'jsvalidate:build', 'cssmin', 'makepot', 'exec:bpdefault'] );
     304    grunt.registerTask( 'build',   ['commit', 'clean:all', 'copy:files', 'uglify', 'jsvalidate:build', 'cssmin', 'makepot', 'exec:bpdefault', 'exec:cli'] );
    300305    grunt.registerTask( 'release', ['build'] );
    301306
  • trunk/src/class-buddypress.php

    r11961 r11978  
    491491            require( $this->plugin_dir . 'bp-core/deprecated/2.9.php' );
    492492            require( $this->plugin_dir . 'bp-core/deprecated/3.0.php' );
     493        }
     494
     495        if ( defined( 'WP_CLI' ) && file_exists( $this->plugin_dir . 'cli/wp-cli-bp.php' ) ) {
     496            require( $this->plugin_dir . 'cli/wp-cli-bp.php' );
    493497        }
    494498    }
Note: See TracChangeset for help on using the changeset viewer.