Quickly checks if top level dependencies are missing or out of date
Want to see pretty graphs? Log in now!
npm install grunt-deps-ok
|26||downloads in the last week|
|132||downloads in the last month|
|Last Published By|
|Version||0.1.8 last updated a month ago|
|Keywords||gruntplugin, dependencies, missing, ondemand|
Quickly checks if top level dependencies are missing or out of date using deps-ok
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-deps-ok --save-dev
grunt.loadNpmTasks('grunt-deps-ok'); grunt.registerTask('default', ['deps-ok', rest of the tasks]);
That's it! Every time grunt runs, it will quickly check if all (normal, dev, peer) top level dependencies are present in the node_modules folder. It will also verify that the installed module versions are greater or equal to the ones declared inside package.json file.
There are other modules that check npm dependencies, for example grunt-check-modules.
It seems to rely on
npm ls command that takes a long time to go through the dependency tree.
In my projects, deps_ok step takes less than 100ms, compared to 5-10 seconds for grunt-check-modules.
Author: Gleb Bahmutov © 2013
License: MIT - do anything with the code, but don't blame me if it does not work.
Support: if you find any problems with this module, email / tweet / open issue on Github