From d381b636c81308f3e93f265f41c9bc47e4e6c4a6 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Tue, 18 May 2021 17:28:57 +0200 Subject: [PATCH] Makefile now installs node_modules first --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 73ded87..2e74b72 100644 --- a/Makefile +++ b/Makefile @@ -61,20 +61,20 @@ run: venv # =====BACKEND===== ## node_modules ### Install dependencies -$(WEB_DIR)/yarn.lock: $(WEB_DIR)/package.json +$(WEB_DIR)/node_modules: $(WEB_DIR)/package.json $(WEB_DIR)/yarn.lock @ cd web && yarn install # Convenient alias -lockfile: $(WEB_DIR)/yarn.lock -.PHONY: lockfile +node_modules: | $(WEB_DIR)/node_modules +.PHONY: node_modules ## Formatting & linting -flint: lockfile +flint: node_modules @ cd web && yarn run lint .PHONY: flint -fformat: lockfile +fformat: node_modules @ cd web && yarn run format .PHONY: fformat @@ -84,6 +84,6 @@ fformat: lockfile ## Building -fbuild: lockfile +fbuild: node_modules @ cd web && yarn build .PHONY: fbuild