@@ -47,16 +47,16 @@ endif
47
47
48
48
# run at usage (=), not on makefile parse (:=)
49
49
# todo(mm, 2021-03-17): Deduplicate with scripts/python.mk.
50
- usb_host =$(shell pnpm -s discovery find -i 169.254)
50
+ usb_host =$(shell yarn -s discovery find -i 169.254)
51
51
52
52
# install all project dependencies
53
53
.PHONY : setup
54
54
setup : setup-js setup-py
55
55
56
- # front-end dependecies handled by pnpm
56
+ # front-end dependecies handled by yarn
57
57
.PHONY : setup-js
58
58
setup-js :
59
- pnpm i
59
+ yarn
60
60
$(MAKE ) -C $(APP_SHELL_DIR ) setup
61
61
$(MAKE ) -C $(APP_SHELL_ODD_DIR ) setup
62
62
@@ -80,7 +80,7 @@ teardown:
80
80
81
81
.PHONY : teardown-js
82
82
teardown-js : clean-js
83
- pnpm shx rm -rf " **/node_modules"
83
+ yarn shx rm -rf " **/node_modules"
84
84
85
85
PYTHON_TEARDOWN_TARGETS := $(addsuffix -py-teardown, $(PYTHON_DIRS ) )
86
86
@@ -208,16 +208,16 @@ lint-py: $(PYTHON_LINT_TARGETS)
208
208
209
209
.PHONY : lint-js
210
210
lint-js :
211
- pnpm eslint --quiet=$(quiet ) " .*.@(js|ts|tsx)" " **/*.@(js|ts|tsx)"
212
- pnpm prettier --ignore-path .eslintignore --check $(FORMAT_FILE_GLOB )
211
+ yarn eslint --quiet=$(quiet ) " .*.@(js|ts|tsx)" " **/*.@(js|ts|tsx)"
212
+ yarn prettier --ignore-path .eslintignore --check $(FORMAT_FILE_GLOB )
213
213
214
214
.PHONY : lint-json
215
215
lint-json :
216
- pnpm eslint --max-warnings 0 --ext .json .
216
+ yarn eslint --max-warnings 0 --ext .json .
217
217
218
218
.PHONY : lint-css
219
219
lint-css :
220
- pnpm stylelint " **/*.css" " **/*.js"
220
+ yarn stylelint " **/*.css" " **/*.js"
221
221
222
222
.PHONY : format
223
223
format : format-js format-py
@@ -232,31 +232,31 @@ format-py: $(PYTHON_FORMAT_TARGETS)
232
232
233
233
.PHONY : format-js
234
234
format-js :
235
- pnpm prettier --ignore-path .eslintignore --write $(FORMAT_FILE_GLOB )
235
+ yarn prettier --ignore-path .eslintignore --write $(FORMAT_FILE_GLOB )
236
236
237
237
.PHONY : check-js
238
238
check-js : build-ts
239
239
240
240
.PHONY : build-ts
241
241
build-ts :
242
- pnpm tsc --build
242
+ yarn tsc --build
243
243
244
244
.PHONY : clean-ts
245
245
clean-ts :
246
- pnpm tsc --build --clean
246
+ yarn tsc --build --clean
247
247
248
248
# TODO: Ian 2019-12-17 gradually add components and shared-data
249
249
.PHONY : circular-dependencies-js
250
250
circular-dependencies-js :
251
- pnpm madge $(and $(CI ) ,--no-spinner --no-color) --circular protocol-designer/src/index.tsx
252
- pnpm madge $(and $(CI ) ,--no-spinner --no-color) --circular step-generation/src/index.ts
253
- pnpm madge $(and $(CI ) ,--no-spinner --no-color) --circular labware-library/src/index.tsx
254
- pnpm madge $(and $(CI ) ,--no-spinner --no-color) --circular app/src/index.tsx
255
- pnpm madge $(and $(CI ) ,--no-spinner --no-color) --circular components/src/index.ts
251
+ yarn madge $(and $(CI ) ,--no-spinner --no-color) --circular protocol-designer/src/index.tsx
252
+ yarn madge $(and $(CI ) ,--no-spinner --no-color) --circular step-generation/src/index.ts
253
+ yarn madge $(and $(CI ) ,--no-spinner --no-color) --circular labware-library/src/index.tsx
254
+ yarn madge $(and $(CI ) ,--no-spinner --no-color) --circular app/src/index.tsx
255
+ yarn madge $(and $(CI ) ,--no-spinner --no-color) --circular components/src/index.ts
256
256
257
257
.PHONY : test-js-internal
258
258
test-js-internal :
259
- pnpm jest $(tests ) $(test_opts ) $(cov_opts )
259
+ yarn jest $(tests ) $(test_opts ) $(cov_opts )
260
260
261
261
.PHONY : test-js-%
262
262
test-js-% :
0 commit comments