Ticket #30334: 30334.diff
File 30334.diff, 1.3 KB (added by , 10 years ago) |
---|
-
Gruntfile.js
421 421 dest: SOURCE_DIR 422 422 } 423 423 }, 424 search: { 425 // The __DIR__ constant isn't available in PHP 5.2, so we can't use it yet. 426 DIR: { 427 files: { 428 src: [ 429 '*.php', 430 '**/*.php' 431 ] 432 }, 433 options: { 434 searchString: '__DIR__', 435 logFormat: 'console', 436 failOnMatch: true 437 } 438 } 439 }, 424 440 watch: { 425 441 all: { 426 442 files: [ … … 476 492 477 493 // Pre-commit task. 478 494 grunt.registerTask('precommit', 'Runs front-end dev/test tasks in preparation for a commit.', 479 ['autoprefixer:core', 'imagemin:core', 'jshint:corejs', 'qunit:compiled' ]);495 ['autoprefixer:core', 'imagemin:core', 'jshint:corejs', 'qunit:compiled', 'search']); 480 496 481 497 // Copy task. 482 498 grunt.registerTask('copy:all', ['copy:files', 'copy:wp-admin-rtl', 'copy:version']); -
package.json
26 26 "grunt-legacy-util": "^0.2.0", 27 27 "grunt-patch-wordpress": "~0.2.1", 28 28 "grunt-sass": "~0.16.0", 29 "grunt-search": "^0.1.6", 29 30 "matchdep": "~0.3.0" 30 31 } 31 32 }