this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: add pre-commit checks

+25 -2
+5
.githooks/pre-commit
··· 1 + #!/bin/sh 2 + set -eu 3 + 4 + printf 'Running pre-commit checks...\n' 5 + bun run check
+3
README.md
··· 36 36 37 37 ```bash 38 38 bun install 39 + bun run hooks:install 39 40 cp .env.example .env 40 41 bun run db:up 41 42 bun run prisma:migrate ··· 52 53 bun run dev 53 54 bun run build 54 55 bun run lint 56 + bun run check 57 + bun run hooks:install 55 58 bun run db:up 56 59 bun run db:down 57 60 bun run db:logs
+16 -2
docs/development.md
··· 13 13 14 14 ```bash 15 15 bun install 16 + bun run hooks:install 16 17 cp .env.example .env 17 18 bun run db:up 18 19 bun run prisma:migrate ··· 77 78 78 79 ## Quality checks 79 80 80 - Run lint: 81 + Run the full local verification suite used by CI: 82 + 83 + ```bash 84 + bun run check 85 + ``` 86 + 87 + Run lint only: 81 88 82 89 ```bash 83 90 bun run lint 84 91 ``` 85 92 86 - Run a production build: 93 + Run a production build only: 87 94 88 95 ```bash 89 96 bun run build 90 97 ``` 91 98 99 + Install git hooks for this repo: 100 + 101 + ```bash 102 + bun run hooks:install 103 + ``` 104 + 92 105 Notes: 93 106 107 + - The pre-commit hook runs `bun run check`, which includes formatting, linting, type-checking, and a production build. 94 108 - `bun run build` also validates translation resources before the Next.js build. 95 109 - There is currently no separate test suite command in `package.json`. 96 110
+1
package.json
··· 22 22 "format": "prettier --write .", 23 23 "format:check": "prettier --check . --ignore-unknown", 24 24 "check": "bun run format:check && bun run lint && bun run typecheck && bun run build", 25 + "hooks:install": "git config core.hooksPath .githooks", 25 26 "db:up": "podman-compose up -d", 26 27 "db:down": "podman-compose down", 27 28 "db:logs": "podman-compose logs -f postgres",