Changeset 42760
- Timestamp:
- 02/27/2018 12:31:33 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r42610 r42760 11 11 BUILD_DIR = 'build/', 12 12 BANNER_TEXT = '/*! This file is auto-generated */', 13 autoprefixer = require( 'autoprefixer' ); 13 autoprefixer = require( 'autoprefixer' ), 14 phpUnitWatchGroup = grunt.option( 'group' ); 15 16 if ( 'watch:phpunit' === grunt.cli.tasks[ 0 ] && ! phpUnitWatchGroup ) { 17 grunt.log.writeln(); 18 grunt.fail.fatal( 19 'Missing required parameters. Example usage: ' + '\n\n' + 20 'grunt watch:phpunit --group=community-events' + '\n' + 21 'grunt watch:phpunit --group=multisite,mail' 22 ); 23 } 14 24 15 25 // Load tasks. … … 743 753 ], 744 754 tasks: ['qunit'] 755 }, 756 phpunit: { 757 files: [ '**/*.php' ], 758 tasks: [ 'phpunit:default' ] 745 759 } 746 760 } … … 946 960 grunt.util.spawn({ 947 961 cmd: this.data.cmd, 948 args: this.data.args,962 args: phpUnitWatchGroup ? this.data.args.concat( [ '--group', phpUnitWatchGroup ] ) : this.data.args, 949 963 opts: {stdio: 'inherit'} 950 964 }, this.async());
Note: See TracChangeset
for help on using the changeset viewer.