test: setup private npm registry w/sinopia

This commit is contained in:
Stephan Bönnemann
2015-02-04 15:23:16 +01:00
parent 019aeeabe1
commit c936e8be4b
7 changed files with 50 additions and 2 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
mkdir -p .tmp/modules
./node_modules/.bin/sinopia ./tests/config.yml & echo $! >> .tmp/sinopia.pid
sleep 0.5
npm config get registry >> .tmp/registry
cp ~/.npmrc .tmp/.npmrc
cp tests/.npmrc ~/.npmrc
npm config set registry http://localhost:4873/