1
0
Fork 1
mirror of https://example.com synced 2024-11-22 12:46:39 +09:00

dev: set pre-commit as the default make recipe, make debug -> make run

This commit is contained in:
naskya 2024-01-22 02:04:54 +09:00
parent 3410722e41
commit c3891b05b6
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 5 additions and 9 deletions

View file

@ -23,10 +23,6 @@ UPDATE_SCRIPTS := update.sh
UPDATE_SCRIPTS += $(foreach dir, neko/update, $(wildcard $(dir)/*))
.PHONY: build
build: build-image
.PHONY: pre-commit
pre-commit: shellcheck update-lockfiles regenerate-entities neko/index.js rust-lint
@ -41,8 +37,8 @@ $(RUST_DIR)/Cargo.lock: $(CARGO_TOMLS)
cd $(RUST_DIR) && cargo update
.PHONY: debug
debug:
.PHONY: run
run:
pnpm install
pnpm run build:debug
pnpm run migrate

View file

@ -54,13 +54,13 @@ make
### 実行
```bash
make debug
make run
```
### コミット前に行う確認
### lockfile や native-utils の entity の更新など(コミット前に行ってください)
```bash
make pre-commit
make
```
### コミットメッセージ