Changeset 36924
- Timestamp:
- 03/10/2016 03:01:06 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r36906 r36924 686 686 var taskList = ['precommit:core']; 687 687 if ( /.*\.js/.test( filesModified ) ) { 688 grunt.log.write( 'JavaScript source files modified , will run JavaScript tests.\n');688 grunt.log.write( 'JavaScript source files modified. JavaScript tests will be run.\n'); 689 689 taskList = taskList.concat( ['precommit:js'] ); 690 690 } 691 691 if ( /src.*\.css/.test( filesModified ) ) { 692 grunt.log.write( 'CSS source files modified , will run CSS tests.\n');692 grunt.log.write( 'CSS source files modified. CSS tests will be run.\n'); 693 693 taskList = taskList.concat( ['postcss:core'] ); 694 694 } 695 695 if ( /.*\.php/.test( filesModified ) ) { 696 grunt.log.write( 'PHP source files modified , will run PHP tests.\n');696 grunt.log.write( 'PHP source files modified. PHP tests will be run.\n'); 697 697 taskList = taskList.concat( ['precommit:php'] ); 698 698 } … … 728 728 ); 729 729 } else { 730 grunt.log.write( 'This WordPress install is not under version control , no tests will be run.' );730 grunt.log.write( 'This WordPress install is not under version control. No tests will be run.' ); 731 731 } 732 732 });
Note: See TracChangeset
for help on using the changeset viewer.