devDependencies will get installed from a npm install foo command. These may include testing tools like mocha which are nice to have but not strictly needed to run the npm package at hand. dependencies are must haves. If there is a way to install a npm module without the means I just suggested, I do not yet know what it is, but I get the impression that a simpler way exists based upon things I've read at:
- https://npmjs.org/doc/json.html
- http://package.json.nodejitsu.com/
- http://blog.nodejitsu.com/package-dependencies-done-right
As suggested here devDependencies should be listed as a collection of associated package names and version numbers. Node is able to crawl what is registered at its "registry" to it to find these. dependencies look exactly the same. Also, one may, instead of a version number, give a url to a gzipped tarball.
No comments:
Post a Comment