[build/ci] added npm postinstall script for testing environment

This commit is contained in:
Salakar 2017-06-22 13:52:05 +01:00
parent f8f6511e35
commit ae40bd2140
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@
"tests-watch-start": "watchman watch $(node --eval \"console.log(require('path').resolve('./lib'));\") && wml start",
"tests-watch-stop": "watchman watch-del $(node --eval \"console.log(require('path').resolve('./lib'));\") && wml stop",
"tests-pod-install": "cd tests && npm run ios:pod:install",
"build-copy": "cp -R $(node --eval \"console.log(require('path').resolve('./lib'));\")/* $(node --eval \"console.log(require('path').resolve('./tests/firebase'));\")/",
"postinstall": "test -d \"./tests\" && (npm run build-copy && npm run tests-npm-install) || echo \"Tests folder does not exists - skipping additional testing steps.\"",
"flow": "flow"
},
"repository": {