Ticket #2542: 2542.10.diff
File 2542.10.diff, 2.4 KB (added by , 11 years ago) |
---|
-
Gruntfile.js
231 231 'esc_html__', 232 232 'esc_html_e', 233 233 'esc_html_x', 234 '_n_noop', 234 235 '_nx_noop' 235 236 ] 236 237 }, 237 238 files: { 238 src: 239 src: SOURCE_DIR + '**/*.php' , 239 240 expand: true 240 241 } 241 242 }, 243 checktextdomain: { 244 options: { 245 text_domain: 'bbpress', 246 correct_domain: false, 247 keywords: [ 248 '__:1,2d', 249 '_e:1,2d', 250 '_x:1,2c,3d', 251 '_n:1,2,4d', 252 '_ex:1,2c,3d', 253 '_nx:1,2,4c,5d', 254 'esc_attr__:1,2d', 255 'esc_attr_e:1,2d', 256 'esc_attr_x:1,2c,3d', 257 'esc_html__:1,2d', 258 'esc_html_e:1,2d', 259 'esc_html_x:1,2c,3d', 260 '_n_noop:1,2,3d', 261 '_nx_noop:1,2,3c,4d' 262 ] 263 }, 264 files: { 265 src: SOURCE_DIR + '**/*.php' , 266 expand: true 267 } 268 }, 242 269 jsvalidate:{ 243 270 options:{ 244 271 globals: {}, … … 289 316 290 317 // Build tasks. 291 318 grunt.registerTask( 'build', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'pot' ] ); 292 grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', ' pot', 'phpunit' ] );319 grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'checktextdomain', 'pot', 'phpunit' ] ); 293 320 294 321 // Testing tasks. 295 322 grunt.registerMultiTask( 'phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() { … … 300 327 }, this.async() ); 301 328 }); 302 329 303 grunt.registerTask( ' test', 'Runs all unit tasks.', [ 'phpunit' ] );330 grunt.registerTask( 'jstest', 'Runs all javascript tasks.', [ 'jsvalidate', 'jshint' ] ); 304 331 305 332 // Default task. 306 333 grunt.registerTask( 'default', [ 'build' ] ); -
package.json
17 17 "grunt-phpunit": "~0.3.2", 18 18 "grunt-jsvalidate": "~0.2.2", 19 19 "grunt-pot": "~0.1.2", 20 "grunt-checktextdomain": "~0.1.1", 20 21 "matchdep": "~0.3.0", 21 22 "grunt-exec": "~0.4.3" 22 23 },