This commit is contained in:
parent
f5b443d271
commit
0d693847b1
3 changed files with 22 additions and 14 deletions
24
Makefile
24
Makefile
|
|
@ -8,8 +8,16 @@ MIN_COV := 0
|
|||
WEB_DIR := web
|
||||
|
||||
|
||||
# By default, just create the venv when needed
|
||||
# =====GENERAL=====
|
||||
## By default, create the venv
|
||||
all: venv
|
||||
.PHONY: all
|
||||
|
||||
|
||||
## Remove any temporary files
|
||||
clean:
|
||||
@ rm -rf '$(VENV)' '$(WEB_DIR)'/node_modules
|
||||
.PHONY: clean
|
||||
|
||||
|
||||
# =====BACKEND=====
|
||||
|
|
@ -44,13 +52,6 @@ test: venv
|
|||
.PHONY: test
|
||||
|
||||
|
||||
## Cleaning
|
||||
### Remove the venv
|
||||
clean:
|
||||
@ rm -rf '$(VENV)' '$(WEB_DIR)'/node_modules
|
||||
.PHONY: clean
|
||||
|
||||
|
||||
## Starting the server
|
||||
### Run the Quart server
|
||||
run: venv
|
||||
|
|
@ -82,6 +83,7 @@ fformat: node_modules
|
|||
## Testing
|
||||
ftest: node_modules
|
||||
@ yarn --cwd '$(WEB_DIR)' test
|
||||
.PHONY: ftest
|
||||
|
||||
## Building
|
||||
fbuild: node_modules
|
||||
|
|
@ -94,3 +96,9 @@ fbuild: node_modules
|
|||
dbuild:
|
||||
@ DOCKER_BUILDKIT=1 docker build -t chewingbever/jos:dev .
|
||||
.PHONY: image
|
||||
|
||||
|
||||
## Run image
|
||||
drun: dbuild
|
||||
@ docker run --rm -it -p 5000:5000 chewingbever/jos:dev
|
||||
.PHONY: drun
|
||||
|
|
|
|||
Reference in a new issue