Skip to content

Commit 1919978

Browse files
committed
build(yarn): replace npm with yarn
1 parent e63457e commit 1919978

File tree

6 files changed

+9863
-16785
lines changed

6 files changed

+9863
-16785
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sudo: false
33

44
language: node_js
55
node_js:
6-
- "8"
6+
- '8'
77

88
addons:
99
apt:
@@ -12,17 +12,15 @@ addons:
1212
packages:
1313
- google-chrome-stable
1414

15-
cache:
16-
directories:
17-
- ./node_modules
15+
cache: yarn
1816

1917
install:
20-
- npm i --no-progress
18+
- yarn --silent
2119

2220
script:
2321
# Use Chromium instead of Chrome.
2422
- export CHROME_BIN=chromium-browser
25-
- npm run lint
26-
- xvfb-run -a npm run test -- --no-progress --watch false --code-coverage --browsers ChromeNoSandbox
27-
- xvfb-run -a npm run e2e
28-
- npm run coverage
23+
- yarn lint
24+
- xvfb-run -a yarn test -- --no-progress --watch false --code-coverage --browsers ChromeNoSandbox
25+
- xvfb-run -a yarn e2e
26+
- yarn coverage

angular.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,8 @@
109109
"@schematics/angular:directive": {
110110
"prefix": "sn"
111111
}
112+
},
113+
"cli": {
114+
"packageManager": "yarn"
112115
}
113116
}

0 commit comments

Comments
 (0)