Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit 90b2be3

Browse files
authored
build: switch to yarn (#161)
1 parent a9759f8 commit 90b2be3

File tree

7 files changed

+12212
-22525
lines changed

7 files changed

+12212
-22525
lines changed

.releaserc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ verifyConditions:
77
prepare:
88
# Build bundles and output them to the dist folders
99
- path: '@semantic-release/exec'
10-
cmd: npm run build
10+
cmd: yarn run build
1111
# Update Firefox manifest version, create xpi and zip sources
1212
- path: semantic-release-firefox
1313
distFolder: &firefoxDistFolder build/firefox
@@ -48,8 +48,8 @@ publish:
4848
4949
Running from source:
5050
51-
1. With npm 6 installed, run `npm install`
52-
2. npm run build
51+
1. With yarn 1.9.4 installed, run `yarn`
52+
2. yarn run build
5353
3. Go to about:debugging
5454
4. Select "Enable add-on debugging"
5555
5. Load Temporary Add-on

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ env:
1212
- FORCE_COLOR=1
1313

1414
cache:
15+
yarn: true
1516
directories:
16-
- ~/.npm
17+
- node_modules
1718
- ~/.cache
1819

20+
before_install:
21+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.9.4
22+
- export PATH="$HOME/.yarn/bin:$PATH"
23+
1924
install:
20-
- npm ci
25+
- yarn --frozen-lockfile
2126

2227
jobs:
2328
include:
@@ -26,14 +31,14 @@ jobs:
2631
- CYPRESS_INSTALL_BINARY=0
2732
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
2833
script:
29-
- npm run prettier
30-
- npm run tslint
31-
- npm run build
34+
- yarn run prettier
35+
- yarn run tslint
36+
- yarn run build
3237
- stage: test
3338
env:
3439
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
3540
script:
36-
- npm run test:e2e
41+
- yarn run test:e2e
3742
- stage: release
3843
env:
3944
- CYPRESS_INSTALL_BINARY=0

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
default: bundle
44

55
install:
6-
npm install
6+
yarn install
77

88
build: install
9-
npm run tslint
10-
npm run build
9+
yarn run tslint
10+
yarn run build
1111

1212
bundle: clean build all
1313

@@ -39,10 +39,10 @@ watch-all:
3939
fswatch -o ./dist | xargs -n1 $(MAKE) all
4040

4141
test-unit:
42-
npm run test
42+
yarn run test
4343

4444
test-watch:
45-
npm run test:auto
45+
yarn run test:auto
4646

4747

4848
selenium-chrome: build

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ It works as follows:
6464
## Requirements
6565

6666
- `node`
67-
- `npm`
67+
- `yarn`
6868
- `make`
6969

7070
## Development
7171

7272
For each browser run:
7373

7474
```bash
75-
$ npm install
76-
$ npm run dev
75+
$ yarn
76+
$ yarn run dev
7777
```
7878

7979
Now, follow the steps below for the browser you intend to work with.
@@ -97,7 +97,7 @@ Click reload for Sourcegraph at `chrome://extensions`
9797
In a separate terminal session run:
9898

9999
```bash
100-
npm run dev:firefox
100+
yarn run dev:firefox
101101
```
102102

103103
A Firefox window will be spun up with the extension already installed.
@@ -109,7 +109,7 @@ Save a file and wait for webpack to finish rebuilding.
109109
#### Caveats
110110

111111
The window that is spun up is completely separate from any existing sessions you have on Firefox.
112-
You'll have to sign into everything at the begining of each development session(each time you run `npm run dev:firefox`).
112+
You'll have to sign into everything at the begining of each development session(each time you run `yarn run dev:firefox`).
113113
You should ensure you're signed into any Sourcegraph instance you point the extension at as well as Github.
114114

115115
### Firefox (manual)

0 commit comments

Comments
 (0)