hippofish/Makefile

44 lines
773 B
Makefile
Raw Normal View History

include ./dev/config.env
export
.PHONY: pre-commit
2024-05-01 10:48:37 +02:00
pre-commit: format entities napi
.PHONY: format
format:
pnpm run format
.PHONY: entities
entities:
2024-05-01 10:48:37 +02:00
pnpm --filter=backend run build:debug
pnpm run migrate
$(MAKE) -C ./packages/backend-rs regenerate-entities
2024-05-01 10:48:37 +02:00
.PHONY: napi
napi:
$(MAKE) -C ./packages/backend-rs update-index
.PHONY: build
build:
corepack prepare pnpm@latest --activate
pnpm install
NODE_OPTIONS='--max_old_space_size=3072' pnpm run build:debug
pnpm run migrate
2024-03-31 05:13:55 +02:00
.PHONY: db.up db.down db.init
db.up:
$(MAKE) -C ./dev/db-container up
db.down:
$(MAKE) -C ./dev/db-container down
2024-03-31 05:13:55 +02:00
db.init:
$(MAKE) -C ./dev/db-container init
.PHONY: psql redis-cli
psql:
$(MAKE) -C ./dev/db-container psql
redis-cli:
$(MAKE) -C ./dev/db-container redis-cli