Ticket #2542: 2542.7.diff
File 2542.7.diff, 2.0 KB (added by , 10 years ago) |
---|
-
Gruntfile.js
213 213 args: ['-c', 'tests/phpunit/multisite.xml'] 214 214 } 215 215 }, 216 pot:{ 217 options: { 218 text_domain: 'bbpress', 219 package_name: 'bbpress', 220 dest: BUILD_DIR, 221 keywords: [ 222 '__', 223 '_e', 224 'esc_attr__', 225 'esc_attr_e', 226 'esc_attr_x', 227 'esc_html__', 228 'esc_html_e', 229 'esc_html_x', 230 '_nx_noop', 231 ] 232 }, 233 files: { 234 src: SOURCE_DIR + '**/*.php' , 235 expand: true 236 } 237 }, 216 238 jsvalidate:{ 217 239 options:{ 218 240 globals: {}, … … 262 284 grunt.registerTask('colors', ['sass:colors']); 263 285 264 286 // Build tasks. 265 grunt.registerTask( 'build', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build' ] );266 grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'p hpunit:all' ] );287 grunt.registerTask( 'build', [ 'clean:all', 'copy:files', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'colors', 'cssjanus:colors', 'cssmin:colors','uglify:core', 'jsvalidate:build', 'pot' ] ); 288 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:all' ] ); 267 289 268 290 // Testing tasks. 269 291 grunt.registerMultiTask( 'phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() { -
package.json
16 16 "grunt-sass": "~0.10.0", 17 17 "grunt-phpunit": "~0.3.2", 18 18 "grunt-jsvalidate": "~0.2.2", 19 "grunt-pot": "~0.1.1", 19 20 "matchdep": "~0.3.0", 20 21 "grunt-exec": "~0.4.3" 21 22 },