diff --git a/Gruntfile.js b/Gruntfile.js
index 62de51708..2b5264ba0 100644
|
a
|
b
|
module.exports = function( grunt ) { |
| 180 | 180 | }, |
| 181 | 181 | clean: { |
| 182 | 182 | 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 | ] |
| 184 | 189 | }, |
| 185 | 190 | copy: { |
| 186 | 191 | files: { |
| … |
… |
module.exports = function( grunt ) { |
| 377 | 382 | grunt.registerTask( 'makepot', ['exec:makepot'] ); |
| 378 | 383 | grunt.registerTask( 'commit', ['src', 'checktextdomain', 'imagemin', 'phplint', 'exec:phpcompat'] ); |
| 379 | 384 | 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'] ); |
| 381 | 386 | grunt.registerTask( 'release', ['build'] ); |
| 382 | 387 | |
| 383 | 388 | // Testing tasks. |
| … |
… |
module.exports = function( grunt ) { |
| 394 | 399 | grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] ); |
| 395 | 400 | |
| 396 | 401 | // 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'] ); |
| 398 | 403 | grunt.registerTask( 'travis:phpunit', ['jsvalidate:src', 'jshint', 'checktextdomain', 'phplint', 'test'] ); |
| 399 | 404 | grunt.registerTask( 'travis:codecoverage', 'Runs PHPUnit tasks with code-coverage generation.', ['phpunit:codecoverage'] ); |
| 400 | 405 | grunt.registerTask( 'travis:phpcompat', 'Runs PHP compatibility scan.', ['exec:phpcompat'] ); |