require direnv for project tools

This commit is contained in:
Yisroel Baum 2026-07-31 09:50:27 +03:00
parent ce1b920fb6
commit 116d1582f3
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 74 additions and 32 deletions

View file

@ -33,13 +33,14 @@ Use npm and keep `package-lock.json` committed. Run commands from
Install dependencies in a fresh checkout or worktree:
```sh
npm install
direnv exec "$(git rev-parse --show-toplevel)" npm install
```
Start the development server on the port assigned by the shell hook:
```sh
npm run dev -- --port "$VITE_PORT"
direnv exec "$(git rev-parse --show-toplevel)" \
npm run dev -- --port "$VITE_PORT"
```
`process-compose` does not start or proxy the frontend.
@ -47,10 +48,10 @@ npm run dev -- --port "$VITE_PORT"
The available validation commands are:
```sh
npm run format
npm run lint
npm run type-check
npm run build
direnv exec "$(git rev-parse --show-toplevel)" npm run format
direnv exec "$(git rev-parse --show-toplevel)" npm run lint
direnv exec "$(git rev-parse --show-toplevel)" npm run type-check
direnv exec "$(git rev-parse --show-toplevel)" npm run build
```
`npm run format` and `npm run lint` rewrite files. Review the resulting diff.