Ticket #2542: 2452.12.diff
File 2452.12.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: 'src', 197 mainFile: SOURCE_DIR + 'bbpress.php', 198 potFilename: '../../' + BUILD_DIR + 'bbpress.pot', 199 type: 'wp-plugin' 200 } 218 201 } 219 202 }, 220 203 checktextdomain: { … … 292 275 grunt.registerTask('colors', ['sass:colors']); 293 276 294 277 // 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' ] );278 grunt.registerTask( 'build', [ 'clean:all', 'copy:files', 'colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', 'makepot' ] ); 279 grunt.registerTask( 'build-release', [ 'clean:all', 'copy:files', 'colors', 'cssjanus:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', 'checktextdomain', 'makepot', 'phpunit' ] ); 297 280 298 281 // Testing tasks. 299 282 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.3.1", 20 20 "grunt-checktextdomain": "~0.1.1", 21 21 "matchdep": "~0.3.0", 22 22 "grunt-exec": "~0.4.3"