Do not duplicate npm commands, simply pass through

This commit is contained in:
Matt Weiden
2019-12-19 15:20:41 -08:00
parent 9a0f7c3179
commit 31aede4d15
+8 -15
View File
@@ -1,23 +1,16 @@
.PHONY: clean
clean:
rm -rf node_modules
.PHONY: install .PHONY: install
install: install:
npm install client npm install client
.PHONY: build .PHONY: build
build: install build:
npm run build npm run build
.PHONY: fmt # pass remaining commands through to npm run
fmt: %:
npm run fmt npm run $(*)
.PHONY: clean
clean:
rm -rf node_modules
.PHONY: unit-test
unit-test:
npm run unit-test
.PHONY: smoke-test
smoke-test:
npm run smoke-test