Skip to:
Content

bbPress.org

Changeset 5293


Ignore:
Timestamp:
02/20/2014 02:12:56 AM (11 years ago)
Author:
johnjamesjacoby
Message:

More Grunt updates:

  • Add _n_noop to grunt-pot keyword check
  • Remove grunt task test as PHPUnit tests are covered by grunt task phpunit
  • Add grunt task jstest to run javascript tasks
  • Add grunt-checktextdomain to package.json to check for missing or incorrect text-domain in gettext functions. See https://www.npmjs.org/package/grunt-checktextdomain
  • Adds grunt task checktextdomain to grunt build-release
  • Checks for the following keywords: __:1,2d, _e:1,2d, _x:1,2c,3d, _n:1,2,4d, _ex:1,2c,3d, _nx:1,2,4c,5d, esc_attr__:1,2d, esc_attr_e:1,2d, esc_attr_x:1,2c,3d, esc_html__:1,2d, esc_html_e:1,2d, esc_html_x:1,2c,3d, _n_noop:1,2,3d, _nx_noop:1,2,3c,4d
  • Props netweb. See #2542.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r5290 r5293  
    232232                    'esc_html_e',
    233233                    'esc_html_x',
     234                    '_n_noop',
    234235                    '_nx_noop'
    235236                ]
    236237            },
    237238            files: {
    238                 src:  SOURCE_DIR + '**/*.php' ,
     239                src: SOURCE_DIR + '**/*.php',
     240                expand: true
     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',
    239266                expand: true
    240267            }
     
    290317    // Build tasks.
    291318    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' ] );
    293320
    294321    // Testing tasks.
     
    301328    });
    302329
    303     grunt.registerTask( 'test', 'Runs all unit tasks.', [ 'phpunit' ] );
     330    grunt.registerTask( 'jstest', 'Runs all javascript tasks.', [ 'jsvalidate', 'jshint' ] );
    304331
    305332    // Default task.
  • trunk/package.json

    r5290 r5293  
    1818    "grunt-jsvalidate": "~0.2.2",
    1919    "grunt-pot": "~0.1.2",
     20    "grunt-checktextdomain": "~0.1.1",
    2021    "matchdep": "~0.3.0",
    2122    "grunt-exec": "~0.4.3"
Note: See TracChangeset for help on using the changeset viewer.