2021-09-23 12:38:41 +02:00
|
|
|
all: clean deno_lint deno_docker tgbot app
|
2021-09-15 21:29:48 +02:00
|
|
|
|
|
|
|
deno_lint:
|
|
|
|
cd cli && deno lint
|
|
|
|
|
2021-09-19 11:30:28 +02:00
|
|
|
deno: ./kollagen
|
|
|
|
|
|
|
|
./kollagen:
|
2021-09-19 09:48:25 +02:00
|
|
|
cd cli && deno compile --import-map ./import_map.json --allow-read --allow-write --unstable -o ../kollagen main.ts
|
2021-09-15 21:29:48 +02:00
|
|
|
|
2021-09-23 12:38:41 +02:00
|
|
|
deno_docker:
|
|
|
|
docker run --rm -v $$PWD:/app denoland/deno compile --import-map /app/cli/import_map.json --allow-read --allow-write --unstable -o /app/kollagen /app/cli/main.ts
|
|
|
|
|
2021-09-15 21:29:48 +02:00
|
|
|
app:
|
2021-09-19 10:31:34 +02:00
|
|
|
npm ci --cache .npm --prefer-offline && npm run build
|
|
|
|
|
2021-09-23 12:38:41 +02:00
|
|
|
tgbot: ./kollagen
|
|
|
|
docker build -t kollagen-bot -f tgbot/Dockerfile .
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rvf dist kollagen
|