Skip to content

Commit

Permalink
fix: setup before testing
Browse files Browse the repository at this point in the history
closes #122
  • Loading branch information
juancarlosfarah committed Jul 3, 2019
1 parent 4f0e960 commit 93c360c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.run.lint
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.run.test
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit 93c360c

Please sign in to comment.