Makefile now installs node_modules first
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
parent
28aaf6c8d9
commit
d381b636c8
12
Makefile
12
Makefile
|
@ -61,20 +61,20 @@ run: venv
|
||||||
# =====BACKEND=====
|
# =====BACKEND=====
|
||||||
## node_modules
|
## node_modules
|
||||||
### Install dependencies
|
### 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
|
@ cd web && yarn install
|
||||||
|
|
||||||
# Convenient alias
|
# Convenient alias
|
||||||
lockfile: $(WEB_DIR)/yarn.lock
|
node_modules: | $(WEB_DIR)/node_modules
|
||||||
.PHONY: lockfile
|
.PHONY: node_modules
|
||||||
|
|
||||||
|
|
||||||
## Formatting & linting
|
## Formatting & linting
|
||||||
flint: lockfile
|
flint: node_modules
|
||||||
@ cd web && yarn run lint
|
@ cd web && yarn run lint
|
||||||
.PHONY: flint
|
.PHONY: flint
|
||||||
|
|
||||||
fformat: lockfile
|
fformat: node_modules
|
||||||
@ cd web && yarn run format
|
@ cd web && yarn run format
|
||||||
.PHONY: fformat
|
.PHONY: fformat
|
||||||
|
|
||||||
|
@ -84,6 +84,6 @@ fformat: lockfile
|
||||||
|
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
fbuild: lockfile
|
fbuild: node_modules
|
||||||
@ cd web && yarn build
|
@ cd web && yarn build
|
||||||
.PHONY: fbuild
|
.PHONY: fbuild
|
||||||
|
|
Reference in New Issue