Skip to:
Content

bbPress.org

Ticket #2542: 2542.7.diff

File 2542.7.diff, 2.0 KB (added by netweb, 10 years ago)
  • Gruntfile.js

     
    213213                                args: ['-c', 'tests/phpunit/multisite.xml']
    214214                        }
    215215                },
     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                },
    216238                jsvalidate:{
    217239                        options:{
    218240                                globals: {},
     
    262284        grunt.registerTask('colors', ['sass:colors']);
    263285
    264286        // 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', 'phpunit: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' ] );
    267289
    268290        // Testing tasks.
    269291        grunt.registerMultiTask( 'phpunit', 'Runs PHPUnit tests, including the ajax and multisite tests.', function() {
  • package.json

     
    1616    "grunt-sass": "~0.10.0",
    1717    "grunt-phpunit": "~0.3.2",
    1818    "grunt-jsvalidate": "~0.2.2",
     19    "grunt-pot": "~0.1.1",
    1920    "matchdep": "~0.3.0",
    2021    "grunt-exec": "~0.4.3"
    2122  },