Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit e439f85

Browse files
committed
Setup with Yarn
* Updates makefile to use yarn install instead of npm install * Use `yarn install --frozen-lockfile` on CI to ensure deps cannot be commited accidentally * generate an initial lockfile
1 parent 8b234b6 commit e439f85

File tree

3 files changed

+4411
-9
lines changed

3 files changed

+4411
-9
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
- checkout
88
- run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
99
- restore_cache:
10-
key: dependency-cache-{{ checksum "package.json" }}
11-
- run: make install
10+
key: yarn-dependency-cache-{{ checksum "yarn.lock" }}
11+
- run: yarn install --frozen-lockfile
1212
- save_cache:
13-
key: dependency-cache-{{ checksum "package.json" }}
13+
key: yarn-dependency-cache-{{ checksum "yarn.lock" }}
1414
paths:
1515
- node_modules
1616
- run: make test

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,9 @@ GREP ?= .
4242
# Tasks
4343
##
4444

45-
# Install node modules.
46-
node_modules: package.json $(wildcard node_modules/*/package.json)
47-
@npm install
48-
@touch $@
49-
5045
# Install dependencies.
51-
install: node_modules
46+
install:
47+
yarn
5248

5349
# Remove temporary files and build artifacts.
5450
clean:

0 commit comments

Comments
 (0)