Skip to:
Content

bbPress.org

Changeset 5964


Ignore:
Timestamp:
12/19/2015 09:56:47 AM (4 years ago)
Author:
netweb
Message:

Tools: Add the grunt-check-dependencies npm module.

This changeset adds the Grunt task checkDependencies via https://www.npmjs.com/package/grunt-check-dependencies to check the currently npm installed modules against the required modules semantic version listed in package.json, if the check fails a prompt to update installed npm modules is displayed and is required before other Grunt tasks can be run.

Run npm install after updating your repo to install the module and task.

Props netweb.
Fixes #2893.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r5912 r5964  
    9090            }
    9191        },
     92        checkDependencies: {
     93            options: {
     94                packageManager: 'npm'
     95            },
     96            src: {}
     97        },
    9298        copy: {
    9399            files: {
     
    329335
    330336    // Build tasks.
    331     grunt.registerTask( 'src',     [ 'jsvalidate:src', 'jshint' ] );
     337    grunt.registerTask( 'src',     [ 'checkDependencies', 'jsvalidate:src', 'jshint' ] );
    332338    grunt.registerTask( 'commit',  [ 'src', 'checktextdomain' ] );
    333339    grunt.registerTask( 'build',   [ 'commit', 'clean:all', 'copy:files', 'colors', 'rtlcss:core', 'cssmin:ltr', 'cssmin:rtl', 'uglify:core', 'jsvalidate:build', 'makepot' ] );
  • trunk/package.json

    r5927 r5964  
    77  "devDependencies": {
    88    "grunt": "~0.4.5",
     9    "grunt-check-dependencies": "~0.11.2",
    910    "grunt-checktextdomain": "~1.0.0",
    1011    "grunt-contrib-clean": "~0.6.0",
Note: See TracChangeset for help on using the changeset viewer.