From 31aede4d150d4bf326a712de4451fb1e0fbf01a8 Mon Sep 17 00:00:00 2001 From: Matt Weiden <538456+mweiden@users.noreply.github.com> Date: Wed, 18 Dec 2019 21:02:37 -0800 Subject: [PATCH] Do not duplicate npm commands, simply pass through --- client/Makefile | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/client/Makefile b/client/Makefile index 53a63db8..47825cee 100644 --- a/client/Makefile +++ b/client/Makefile @@ -1,23 +1,16 @@ +.PHONY: clean +clean: + rm -rf node_modules + .PHONY: install install: npm install client .PHONY: build -build: install +build: npm run build -.PHONY: fmt -fmt: - npm run fmt +# pass remaining commands through to npm run +%: + 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