Cortex Shrinkwrap

This command will lock down the versions of a package's dependencies and generate a cortex-shrinkwrap.json
file in your package directory.
Install
npm install cortex-shrinkwrap -g
Usage
cortex shrinkwrap [--dev] [--async|--no-async] [--enable-prerelease]
See more info by:
cortex shrinkwrap -h
Usage: cortex shrinkwrap [--dev] [--async] [options]
Options:
-v, --version print version
-h, --help show help
--dev, --no-dev shrinkwrap devDependencies or not, disabled by default
--async, --no-async shrinkwrap asyncDependencies or not, enabled by default
--enable-prerelease shrinkwrap will accept pre-release version in dependency analyze, disable by default%
API
Also this lib can be used in nodejs.
var shrinkwrap = require('cortex-shrinkwrap');
var sh = shrinkwrap(pkg, cache_root, options, function(err, shrinked) {
});
sh.on('ignoreDev', function(pkgName) {
});
sh.on('ignoreAsync', function(pkgName) {
});
pkg
Pakcage information stored in cortex.json.
Options
- dev: whehter include
devDependencies
- async: whether incldue
asyncDependencies
- enablePrerelease: whether include prerelease version in shrinkwrap, default value is =false=
License
(The MIT License)
Copyright (c) 2014, Villa.Gao <jky239@gmail.com>;
All rights reserved.