Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 28f0dae

Browse files
committed
build: switch to yarn
1 parent c6dc4cb commit 28f0dae

File tree

6 files changed

+7984
-12132
lines changed

6 files changed

+7984
-12132
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/
22
lib
33
testdata/generated/
44
coverage/
5+
package-lock.json

.travis.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
language: node_js
22
node_js: '10'
33
cache:
4-
directories:
5-
- ~/.npm
4+
yarn: true
65
env:
76
global:
87
- FORCE_COLOR=1
98
install:
10-
- npm ci
9+
- yarn --frozen-lockfile
1110
jobs:
1211
include:
1312
- stage: test
1413
script:
15-
- npm run prettier
16-
- npm run typecheck
17-
- npm run tslint
18-
- npm run build
19-
- npm test -- --single-run --browsers ChromeHeadlessNoSandbox
14+
- yarn run prettier
15+
- yarn run typecheck
16+
- yarn run tslint
17+
- yarn run build
18+
- yarn test -- --single-run --browsers ChromeHeadlessNoSandbox
2019
- bash <(curl -s https://codecov.io/bash)
2120
- stage: release
2221
script:
23-
- npm run build
24-
- npm run semantic-release
22+
- yarn run build
23+
- yarn run semantic-release
2524
stages:
2625
- test
2726
- name: release

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ You need to provide your own UI component (referred to as the HoverOverlay) that
2828
## Development
2929

3030
```sh
31-
npm install
32-
npm test
31+
yarn
32+
yarn test
3333

3434
# Helpful options:
35-
npm test -- --single-run # Don't rerun on changes
36-
npm test -- --browsers Chrome # Only run in Chrome
35+
yarn test -- --single-run # Don't rerun on changes
36+
yarn test -- --browsers Chrome # Only run in Chrome
3737
```
3838

3939
Development is done by running tests. [Karma](https://github.com/karma-runner/karma) is used to run
@@ -45,7 +45,7 @@ You can run specific tests by [adding `.only` to `describe` or `it` calls](https
4545
## Releases
4646

4747
Releases are done automatically in CI when commits are merged into master by analyzing [Conventional Commit Messages](https://conventionalcommits.org/).
48-
After running `npm install`, commit messages will be linted automatically when committing.
48+
After running `yarn`, commit messages will be linted automatically when committing.
4949
You may have to rebase a branch before merging to ensure it has a proper commit history.
5050

5151
## Glossary

0 commit comments

Comments
 (0)