cleanup makefile
This commit is contained in:
parent
a6843b2bf6
commit
db01cbcf66
2 changed files with 13 additions and 26 deletions
13
Makefile
Normal file
13
Makefile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
PAR := $(MAKE) -j 128
|
||||||
|
|
||||||
|
watch:
|
||||||
|
${PAR} deno-w sass-w
|
||||||
|
|
||||||
|
deno-w:
|
||||||
|
deno run -A --watch server.ts
|
||||||
|
|
||||||
|
sass-w:
|
||||||
|
sass -w styles/main.scss public/styles/main.css
|
||||||
|
|
||||||
|
help:
|
||||||
|
cat makefile
|
26
makefile
26
makefile
|
@ -1,26 +0,0 @@
|
||||||
PAR := $(MAKE) -j 128
|
|
||||||
DOCKER_NAME := recipes
|
|
||||||
DOCKER_TAG := recipes
|
|
||||||
|
|
||||||
watch:
|
|
||||||
${PAR} deno-w sass-w
|
|
||||||
|
|
||||||
deno-w:
|
|
||||||
deno run -A --watch server.ts
|
|
||||||
|
|
||||||
sass-w:
|
|
||||||
sass -w styles/main.scss public/styles/main.css
|
|
||||||
|
|
||||||
docker-restart: docker-stop docker-run
|
|
||||||
|
|
||||||
docker-stop:
|
|
||||||
docker rm ${DOCKER_NAME} --force
|
|
||||||
|
|
||||||
docker-run:
|
|
||||||
docker run -d --restart always -p 30000:30000 --name ${DOCKER_NAME} ${DOCKER_TAG}
|
|
||||||
|
|
||||||
docker-build:
|
|
||||||
docker build -t ${DOCKER_TAG} .
|
|
||||||
|
|
||||||
help:
|
|
||||||
cat makefile
|
|
Loading…
Reference in a new issue