Skip to content

Commit 6f0542e

Browse files
authored
Use npm instead of yarn (#114)
* Use npm instead of yarn npm has brought in many improvements since yarn 1. This means we can switch to something that all developers ought to have installed anyway. Development is slow enough on this repo that the speed benefits of yarn 3 are outweighed by ease of contributing. * update package lock
1 parent 56620ec commit 6f0542e

File tree

5 files changed

+48829
-13294
lines changed

5 files changed

+48829
-13294
lines changed

.github/workflows/ci-cd.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
- name: Use Node.js ${{ env.NODE_VERSION }}
2424
uses: actions/setup-node@v3
2525
with:
26-
cache: 'yarn'
26+
cache: 'npm'
2727
node-version: ${{ env.NODE_VERSION }}
2828

2929
- name: Install dependencies
30-
run: yarn install --frozen-lockfile
30+
run: npm install --frozen-lockfile
3131

3232
- name: Lint
33-
run: yarn lint
33+
run: npm run lint
3434

3535

3636
test-app:
@@ -44,14 +44,14 @@ jobs:
4444
- name: Use Node.js ${{ env.NODE_VERSION }}
4545
uses: actions/setup-node@v3
4646
with:
47-
cache: 'yarn'
47+
cache: 'npm'
4848
node-version: ${{ env.NODE_VERSION }}
4949

5050
- name: Install dependencies
51-
run: yarn install --frozen-lockfile
51+
run: npm install --frozen-lockfile
5252

5353
- name: Test
54-
run: npx percy exec -- yarn test
54+
run: npx percy exec -- npm test
5555
env:
5656
PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
5757
PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}
@@ -82,11 +82,11 @@ jobs:
8282
- name: Use Node.js ${{ env.NODE_VERSION }}
8383
uses: actions/setup-node@v3
8484
with:
85-
cache: 'yarn'
85+
cache: 'npm'
8686
node-version: ${{ env.NODE_VERSION }}
8787

8888
- name: Install dependencies
89-
run: yarn install --frozen-lockfile
89+
run: npm install --frozen-lockfile
9090

9191
- name: Deploy
92-
run: yarn deploy
92+
run: npm run deploy

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This is an Ember app, so the usual steps follow:
2121
```
2222
1. Install packages.
2323
```bash
24-
yarn
24+
npm install
2525
```
2626
1. Run the app.
2727
```bash
@@ -64,4 +64,4 @@ We store code snippets in `snippets` folder. Afterwards, we update the `model` h
6464

6565
## How It's Made (Recap)
6666

67-
You can find the text in `translations/en-us.yaml`, the code in `snippets`, and the app structure in `app/routes/application.js`! 💖
67+
You can find the text in `translations/en-us.yaml`, the code in `snippets`, and the app structure in `app/routes/application.js`! 💖

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ We use [GitHub Actions](.github/workflows/ci-cd.yml) to lint and test the app wh
2020
Run the following commands to lint and test from local machine:
2121

2222
```bash
23-
yarn lint
24-
yarn test
23+
npm run lint
24+
npm test
2525
```
2626

2727
To fix linting errors, try the following command:
2828

2929
```bash
30-
yarn lint:fix
30+
npm run lint:fix
3131
```
3232

3333

@@ -38,7 +38,7 @@ We use [GitHub Actions](.github/workflows/ci-cd.yml) to deploy the app to `gh-pa
3838
If you are a repo maintainer, you can run the following command to deploy from local machine:
3939

4040
```bash
41-
yarn deploy
41+
npm run deploy
4242
```
4343

4444

0 commit comments

Comments
 (0)