From 93c360c94d913d481da19c33d61276c46521c42f Mon Sep 17 00:00:00 2001 From: Juan Carlos Farah Date: Wed, 3 Jul 2019 10:43:15 +0200 Subject: [PATCH] fix: setup before testing closes #122 --- Dockerfile.run.lint | 4 ++-- Dockerfile.run.test | 4 ++-- package.json | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile.run.lint b/Dockerfile.run.lint index 03bae5f6..6833ac46 100644 --- a/Dockerfile.run.lint +++ b/Dockerfile.run.lint @@ -7,8 +7,8 @@ WORKDIR /usr/src/app COPY package.json /usr/src/app/ RUN yarn install -# prebuild before linting -RUN yarn prebuild +# setup before linting +RUN yarn setup # bundle app source COPY . /usr/src/app diff --git a/Dockerfile.run.test b/Dockerfile.run.test index eb3e5395..02eab179 100644 --- a/Dockerfile.run.test +++ b/Dockerfile.run.test @@ -7,8 +7,8 @@ WORKDIR /usr/src/app COPY package.json /usr/src/app/ RUN yarn install -# prebuild before testing -RUN yarn prebuild +# setup before testing +RUN yarn setup # bundle app source COPY . /usr/src/app diff --git a/package.json b/package.json index 0a7d748a..6044e61c 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "postinstall": "electron-builder install-app-deps", "prestart": "env-cmd -f ./.env.local node scripts/setup.js", "prebuild": "env-cmd -f ./.env node scripts/setup.js", + "setup": "node scripts/setup.js", "predist": "yarn build", "lint": "eslint .", "prettier:check": "prettier --check '{src,public}/**/*.js'",