From ae40bd21403d9df2afee93279a4de11c490a6eaa Mon Sep 17 00:00:00 2001 From: Salakar Date: Thu, 22 Jun 2017 13:52:05 +0100 Subject: [PATCH] [build/ci] added npm postinstall script for testing environment --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 4cbe14cd..509989f8 100644 --- a/package.json +++ b/package.json @@ -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": {