Skip to content

Commit

Permalink
add a script to update test shrinkwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiip committed Aug 25, 2015
1 parent b2b1074 commit c21ad4c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 17 additions & 0 deletions scripts/update-test-shrinkwrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/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 prepare

node test/template-cli.js deps

cd test/tmp/deps

npm install

npm shrinkwrap

cp ./npm-shrinkwrap.json ../../npm-shrinkwrap.json

0 comments on commit c21ad4c

Please sign in to comment.