dev: make
to run pnpm run format && make entities
, make build
to run debug build
This commit is contained in:
parent
39c19742d0
commit
f4edc055a6
1 changed files with 21 additions and 5 deletions
26
Makefile
26
Makefile
|
@ -4,6 +4,27 @@ ifneq (dev,$(wildcard config.env))
|
|||
endif
|
||||
|
||||
|
||||
.PHONY: pre-commit
|
||||
pre-commit: format entities
|
||||
|
||||
.PHONY: format
|
||||
format:
|
||||
pnpm run format
|
||||
|
||||
.PHONY: entities
|
||||
entities:
|
||||
pnpm run migrate
|
||||
$(MAKE) -C ./packages/backend-rs regenerate-entities
|
||||
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
corepack prepare pnpm@latest --activate
|
||||
pnpm install
|
||||
NODE_OPTIONS='--max_old_space_size=3072' pnpm run build:debug
|
||||
pnpm run migrate
|
||||
|
||||
|
||||
.PHONY: db.init db.up db.down
|
||||
db.init:
|
||||
$(MAKE) -C ./dev/db-container init
|
||||
|
@ -11,8 +32,3 @@ db.up:
|
|||
$(MAKE) -C ./dev/db-container up
|
||||
db.down:
|
||||
$(MAKE) -C ./dev/db-container down
|
||||
|
||||
.PHONY: entities
|
||||
entities:
|
||||
pnpm run migrate
|
||||
$(MAKE) -C ./packages/backend-rs regenerate-entities
|
||||
|
|
Loading…
Reference in a new issue