diff --git a/package.json b/package.json index 0b33a5bc..b1014165 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "scripts": { "pretest": "./scripts/prepare-test.sh", "test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- test/node test/template && ./node_modules/.bin/mocha test/inception/test-inception.js -ig protractor", - "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" + "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", + "update-shrinkwrap": "./scripts/update-test-shrinkwrap.sh" }, "dependencies": { "chalk": "~1.1.0", diff --git a/scripts/update-test-shrinkwrap.sh b/scripts/update-test-shrinkwrap.sh new file mode 100755 index 00000000..05f1f90b --- /dev/null +++ b/scripts/update-test-shrinkwrap.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +rm -rf test/tmp/deps/node_modules test/tmp/deps/package.json test/tmp/deps/npm-shrinkwrap.json + +node test/template-cli.js deps + +cd test/tmp/deps + +npm install + +npm shrinkwrap --dev + +cp ./npm-shrinkwrap.json ../../npm-shrinkwrap.json