pleshevski.ru/makefile

36 lines
526 B
Makefile
Raw Normal View History

2022-03-20 23:21:38 +03:00
PAR := $(MAKE) -j 128
2022-03-22 21:50:22 +03:00
DOCKER_NAME := pleshevski
DOCKER_TAG := pleshevski
2022-03-20 23:21:38 +03:00
watch:
$(PAR) hr ts-w
2022-03-22 21:50:22 +03:00
docker-restart: docker-stop docker-run
docker-stop:
docker rm ${DOCKER_NAME} --force
2022-03-22 19:42:14 +03:00
docker-run:
2022-03-22 21:50:22 +03:00
docker run -d --restart always -p 30000:30000 --name ${DOCKER_NAME} ${DOCKER_TAG}
2022-03-22 19:42:14 +03:00
docker-build:
2022-03-22 21:50:22 +03:00
docker build -t ${DOCKER_TAG} .
2022-03-22 19:42:14 +03:00
2022-03-21 23:04:28 +03:00
build: ts
start:
2022-03-22 10:57:13 +03:00
npm run start
2022-03-21 23:04:28 +03:00
2022-03-20 23:21:38 +03:00
hr:
deno run -A ~/sandbox/hr/server.ts target static
2022-03-16 22:17:07 +03:00
2022-03-21 23:04:28 +03:00
ts:
2022-03-22 10:57:13 +03:00
npm run build
2022-03-21 23:04:28 +03:00
2022-03-16 22:17:07 +03:00
ts-w:
2022-03-21 23:04:28 +03:00
NODE_ENV=develop npx tsc-watch --onSuccess "make start"
2022-03-16 22:17:07 +03:00
clean:
rm -rf target