Skip to:
Content

BuddyPress.org

Changeset 10399


Ignore:
Timestamp:
12/03/2015 10:31:07 PM (9 years ago)
Author:
hnla
Message:

Grunt Modules:
Add the grunt-check-dependencies module to grunt node modules.

Check-dependencies checks the package.json module versions to ensure that the required version is the same as the installed version and either halts on error & prompts for update or updates automatically; option set to prompt only for BP.

Fixes #6756 Props netweb, DJPaul

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r10230 r10399  
    2727    grunt.initConfig( {
    2828        pkg: grunt.file.readJSON( 'package.json' ),
     29        checkDependencies: {
     30            options: {
     31                packageManager: 'npm'
     32            },
     33            src: {}
     34        },
    2935        jshint: {
    3036            options: grunt.file.readJSON( '.jshintrc' ),
     
    253259     * Register tasks.
    254260     */
    255     grunt.registerTask( 'src',     ['jsvalidate:src', 'jshint', 'scsslint', 'sass', 'cssjanus'] );
     261    grunt.registerTask( 'src',     ['checkDependencies', 'jsvalidate:src', 'jshint', 'scsslint', 'sass', 'cssjanus'] );
    256262    grunt.registerTask( 'commit',  ['src', 'checktextdomain', 'imagemin'] );
    257263    grunt.registerTask( 'build',   ['commit', 'clean:all', 'copy:files', 'uglify', 'jsvalidate:build', 'cssmin', 'makepot', 'exec:bpdefault'] );
  • trunk/package.json

    r10352 r10399  
    1717    "grunt-cssjanus": "~0.2.4",
    1818    "grunt-exec": "~0.4.6",
     19    "grunt-check-dependencies": "~0.11.2",
    1920    "grunt-jsvalidate": "~0.2.2",
    2021    "grunt-legacy-util": "^0.2.0",
Note: See TracChangeset for help on using the changeset viewer.