Skip to:
Content

BuddyPress.org

Ticket #8011: 8011.diff

File 8011.diff, 2.2 KB (added by espellcaste, 4 years ago)
  • Gruntfile.js

    diff --git a/Gruntfile.js b/Gruntfile.js
    index 62de51708..2b5264ba0 100644
    a b module.exports = function( grunt ) { 
    180180                },
    181181                clean: {
    182182                        all: [ BUILD_DIR ],
    183                         bp_rest: [ BUILD_DIR + 'bp-rest/' ]
     183                        bp_rest: [ BUILD_DIR + 'bp-rest/' ],
     184                        cli: [
     185                                BUILD_DIR + 'cli/features/',
     186                                BUILD_DIR + 'cli/*.{yml,json,lock,xml,xml.dist,md}',
     187                                BUILD_DIR + 'cli/{.gitignore,.distignore,.editorconfig,.travis.yml}'
     188                        ]
    184189                },
    185190                copy: {
    186191                        files: {
    module.exports = function( grunt ) { 
    377382        grunt.registerTask( 'makepot', ['exec:makepot'] );
    378383        grunt.registerTask( 'commit',  ['src', 'checktextdomain', 'imagemin', 'phplint', 'exec:phpcompat'] );
    379384        grunt.registerTask( 'bp_rest', [ 'exec:rest_api', 'copy:bp_rest_components', 'copy:bp_rest_core', 'clean:bp_rest' ] );
    380         grunt.registerTask( 'build',   ['commit', 'clean:all', 'copy:files', 'uglify:core', 'jsvalidate:build', 'exec:blocks_build', 'cssmin', 'bp_rest', 'makepot', 'exec:bpdefault', 'exec:cli'] );
     385        grunt.registerTask( 'build',   ['commit', 'clean:all', 'copy:files', 'uglify:core', 'jsvalidate:build', 'exec:blocks_build', 'cssmin', 'bp_rest', 'makepot', 'exec:bpdefault', 'exec:cli', 'clean:cli'] );
    381386        grunt.registerTask( 'release', ['build'] );
    382387
    383388        // Testing tasks.
    module.exports = function( grunt ) { 
    394399        grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] );
    395400
    396401        // Travis CI Tasks.
    397         grunt.registerTask( 'travis:grunt', 'Runs Grunt build task.', ['commit', 'clean:all', 'copy:files', 'uglify:core', 'jsvalidate:build', 'cssmin', 'bp_rest', 'exec:bpdefault', 'exec:cli'] );
     402        grunt.registerTask( 'travis:grunt', 'Runs Grunt build task.', ['commit', 'clean:all', 'copy:files', 'uglify:core', 'jsvalidate:build', 'cssmin', 'bp_rest', 'exec:bpdefault', 'exec:cli', 'clean:cli'] );
    398403        grunt.registerTask( 'travis:phpunit', ['jsvalidate:src', 'jshint', 'checktextdomain', 'phplint', 'test'] );
    399404        grunt.registerTask( 'travis:codecoverage', 'Runs PHPUnit tasks with code-coverage generation.', ['phpunit:codecoverage'] );
    400405        grunt.registerTask( 'travis:phpcompat', 'Runs PHP compatibility scan.', ['exec:phpcompat'] );