mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-22 16:48:30 +02:00
Update DEVELOPMENT.md for Vite+ toolchain
Replace Biome references with Vite+ (oxlint/oxfmt), add vp as a prerequisite, and document pre-commit hook and VS Code extensions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,21 +11,23 @@ begin.
|
|||||||
|
|
||||||
Make sure you have the following tools installed:
|
Make sure you have the following tools installed:
|
||||||
|
|
||||||
- [Node.js](https://nodejs.org/en/download/package-manager)
|
- [Node.js](https://nodejs.org/en/download/package-manager) (v24+)
|
||||||
- [Rust](https://www.rust-lang.org/tools/install)
|
- [Rust](https://www.rust-lang.org/tools/install)
|
||||||
|
- [Vite+](https://vite.dev/guide/vite-plus) (`vp` CLI)
|
||||||
|
|
||||||
Check the installations with the following commands:
|
Check the installations with the following commands:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
node -v
|
node -v
|
||||||
npm -v
|
npm -v
|
||||||
|
vp --version
|
||||||
rustc --version
|
rustc --version
|
||||||
```
|
```
|
||||||
|
|
||||||
Install the NPM dependencies:
|
Install the NPM dependencies:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
npm install
|
vp install
|
||||||
```
|
```
|
||||||
|
|
||||||
Run the `bootstrap` command to do some initial setup:
|
Run the `bootstrap` command to do some initial setup:
|
||||||
@@ -61,9 +63,9 @@ _Note: For safety, development builds use a separate database location from prod
|
|||||||
lezer-generator components/core/Editor/<LANG>/<LANG>.grammar > components/core/Editor/<LANG>/<LANG>.ts
|
lezer-generator components/core/Editor/<LANG>/<LANG>.grammar > components/core/Editor/<LANG>/<LANG>.ts
|
||||||
```
|
```
|
||||||
|
|
||||||
## Linting & Formatting
|
## Linting and Formatting
|
||||||
|
|
||||||
This repo uses Biome for linting and formatting (replacing ESLint + Prettier).
|
This repo uses [Vite+](https://vite.dev/guide/vite-plus) for linting (oxlint) and formatting (oxfmt).
|
||||||
|
|
||||||
- Lint the entire repo:
|
- Lint the entire repo:
|
||||||
|
|
||||||
@@ -71,18 +73,13 @@ This repo uses Biome for linting and formatting (replacing ESLint + Prettier).
|
|||||||
npm run lint
|
npm run lint
|
||||||
```
|
```
|
||||||
|
|
||||||
- Auto-fix lint issues where possible:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm run lint:fix
|
|
||||||
```
|
|
||||||
|
|
||||||
- Format code:
|
- Format code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm run format
|
vp format
|
||||||
```
|
```
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- Many workspace packages also expose the same scripts (`lint`, `lint:fix`, and `format`).
|
- A pre-commit hook runs `vp lint` automatically on commit.
|
||||||
- TypeScript type-checking still runs separately via `tsc --noEmit` in relevant packages.
|
- Some workspace packages also run `tsc --noEmit` for type-checking.
|
||||||
|
- VS Code users should install the recommended extensions for format-on-save support.
|
||||||
|
|||||||
Reference in New Issue
Block a user