Ticket #2542: 2542.12-refresh.diff
File 2542.12-refresh.diff, 2.2 KB (added by , 11 years ago) |
---|
-
Gruntfile.js
190 190 args: ['-c', 'tests/phpunit/multisite.xml'] 191 191 } 192 192 }, 193 pot:{ 194 options: { 195 text_domain: 'bbpress', 196 package_name: 'bbpress', 197 dest: BUILD_DIR, 198 keywords: [ 199 '__', 200 '_e', 201 '_x', 202 '_n', 203 '_ex', 204 '_nx', 205 'esc_attr__', 206 'esc_attr_e', 207 'esc_attr_x', 208 'esc_html__', 209 'esc_html_e', 210 'esc_html_x', 211 '_n_noop', 212 '_nx_noop' 213 ] 214 }, 215 files: { 216 src: SOURCE_DIR + '**/*.php', 217 expand: true 193 makepot: { 194 target: { 195 options: { 196 cwd: BUILD_DIR, 197 domainPath: '.', 198 mainFile: 'bbpress.php', 199 potFilename: 'bbpress.pot', 200 type: 'wp-plugin' 201 } 218 202 } 219 203 }, 220 204 checktextdomain: { … … 292 276 grunt.registerTask('colors', ['sass:colors']); 293 277 294 278 // Build tasks. 295 grunt.registerTask( 'build', [ 'clean:all', 'copy:files', 'colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', ' pot' ] );296 grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', 'checktextdomain', ' pot', 'phpunit' ] );279 grunt.registerTask( 'build', [ 'clean:all', 'copy:files', 'colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', 'makepot' ] ); 280 grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', 'checktextdomain', 'makepot', 'phpunit' ] ); 297 281 298 282 // Testing tasks. 299 283 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.2",19 "grunt-wp-i18n": "~0.4.0", 20 20 "grunt-checktextdomain": "~0.1.1", 21 21 "matchdep": "~0.3.0", 22 22 "grunt-exec": "~0.4.3"