Skip to content

Commit a0ac82b

Browse files
committed
switch from yarn to npm
1 parent 2b6445a commit a0ac82b

File tree

7 files changed

+8282
-4914
lines changed

7 files changed

+8282
-4914
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
image: node:latest
22

33
before_script:
4-
- yarn install
4+
- npm install
55

66
cache:
77
paths:
88
- node_modules/
99

1010
test:
1111
script:
12-
- yarn test --forceExit
12+
- npm test --runInBand --forceExit

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: node_js
22
node_js:
33
- node
44
cache:
5-
yarn: true
65
directories:
76
- node_modules
87
notifications:
@@ -12,10 +11,7 @@ notifications:
1211
jobs:
1312
include:
1413
- stage: test
15-
before_install:
16-
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.9.4
17-
- export PATH="$HOME/.yarn/bin:$PATH"
18-
script: "yarn test --runInBand --forceExit"
14+
script: "npm test --runInBand --forceExit"
1915
- stage: deploy
2016
before_install: "openssl aes-256-cbc -K $encrypted_32b6c04b6d48_key -iv $encrypted_32b6c04b6d48_iv -in deploy-key.enc -out ~/.ssh/deploy-key -d"
2117
script: "scripts/deploy.sh"

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Do yarn install with full image
1+
# Do npm install with full image
22
FROM mhart/alpine-node:latest
33
WORKDIR /app
4-
COPY package.json yarn.lock ./
5-
RUN yarn install --production
4+
COPY package.json package-lock.json ./
5+
RUN npm install --production
66

77
# And then copy over node_modules, etc from that stage to the smaller base image
88
FROM mhart/alpine-node:base

0 commit comments

Comments
 (0)