Skip to:
Content

BuddyPress.org

Changeset 12736


Ignore:
Timestamp:
09/26/2020 05:27:59 PM (4 years ago)
Author:
espellcaste
Message:

Exclude BP CLI tests, and other unused, files from the BuddyPress build package.

We are removing some BP CLI related files from the BuddyPress build package. Those files are related to the CLI tests and are used in the
BP CLI Github repo. But they are files that are not being used within BuddyPress (travis.yml, some {files}.xml, etc) plugin.

Props boonebgorges, imath

Fixes #8011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r12642 r12736  
    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: {
     
    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
     
    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'] );
Note: See TracChangeset for help on using the changeset viewer.