require direnv for project tools
This commit is contained in:
parent
ce1b920fb6
commit
116d1582f3
3 changed files with 74 additions and 32 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue