Makefile now installs node_modules first
continuous-integration/drone the build was successful Details

pull/20/head
Jef Roosens 2021-05-18 17:28:57 +02:00
parent 28aaf6c8d9
commit d381b636c8
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 6 additions and 6 deletions

View File

@ -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