2024-03-28 22:47:23 +01:00
|
|
|
include ./dev/config.env
|
|
|
|
export
|
2024-03-22 17:39:12 +01:00
|
|
|
|
|
|
|
|
2024-03-22 17:48:29 +01:00
|
|
|
.PHONY: pre-commit
|
2024-04-12 04:59:44 +02:00
|
|
|
pre-commit: format entities napi-index
|
2024-03-22 17:48:29 +01:00
|
|
|
|
|
|
|
.PHONY: format
|
|
|
|
format:
|
|
|
|
pnpm run format
|
|
|
|
|
|
|
|
.PHONY: entities
|
|
|
|
entities:
|
|
|
|
pnpm run migrate
|
|
|
|
$(MAKE) -C ./packages/backend-rs regenerate-entities
|
|
|
|
|
2024-04-12 04:59:44 +02:00
|
|
|
.PHONY: napi-index
|
|
|
|
napi-index:
|
|
|
|
$(MAKE) -C ./packages/backend-rs update-index
|
2024-03-22 18:01:37 +01:00
|
|
|
|
2024-03-22 17:48:29 +01:00
|
|
|
|
|
|
|
.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
|
2024-03-22 17:39:12 +01:00
|
|
|
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
|
2024-03-23 08:57:37 +01:00
|
|
|
|
|
|
|
.PHONY: psql redis-cli
|
|
|
|
psql:
|
|
|
|
$(MAKE) -C ./dev/db-container psql
|
|
|
|
redis-cli:
|
|
|
|
$(MAKE) -C ./dev/db-container redis-cli
|