Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["VoidZero.vite-plus-extension-pack"]
}
21 changes: 21 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"editor.defaultFormatter": "oxc.oxc-vscode",
"[javascript]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"oxc.fmt.configPath": "./vite.config.ts",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "explicit"
}
}
15 changes: 9 additions & 6 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
approvedGitRepositories:
- "**"
- '**'

catalog:
"@types/node": "npm:@types/node@24.12.2"
vite: "npm:@voidzero-dev/vite-plus-core@0.1.24"
vite-plus: 0.1.24
vitest: "npm:@voidzero-dev/vite-plus-test@0.1.24"
'@types/node': 'npm:@types/node@24.12.2'
vite: https://pkg.pr.new/voidzero-dev/vite-plus/@voidzero-dev/vite-plus-core@670c987e4097d4e5d53bb4c0521c8bf643a33cf5
vite-plus: https://pkg.pr.new/voidzero-dev/vite-plus@670c987e4097d4e5d53bb4c0521c8bf643a33cf5
vitest: 4.1.9

enableScripts: true

Expand All @@ -15,6 +15,9 @@ npmMinimalAgeGate: 0

npmScopes:
jsr:
npmRegistryServer: "https://npm.jsr.io"
npmRegistryServer: 'https://npm.jsr.io'

yarnPath: .yarn/releases/yarn-4.17.0.cjs
npmPreapprovedPackages:
- vitest
- '@vitest/*'
17 changes: 17 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,20 @@ For GitHub Actions, consider using [`voidzero-dev/setup-vp`](https://github.com/

- [ ] Run `vp install` after pulling remote changes and before getting started.
- [ ] Run `vp check` and `vp test` and `cargo test` to validate changes.

<!--VITE PLUS START-->

# Using Vite+, the Unified Toolchain for the Web

This project is using Vite+, a unified toolchain built on top of Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task. Vite+ wraps runtime management, package management, and frontend tooling in a single global CLI called `vp`. Vite+ is distinct from Vite, and it invokes Vite through `vp dev` and `vp build`. Run `vp help` to print a list of commands and `vp <command> --help` for information about a specific command.

Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/.

## Review Checklist

- [ ] Run `vp install` after pulling remote changes and before getting started.
- [ ] Run `vp check` and `vp test` to format, lint, type check and test changes.
- [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run <script>`.
- [ ] If setup, runtime, or package-manager behavior looks wrong, run `vp env doctor` and include its output when asking for help.

<!--VITE PLUS END-->
Comment thread
fengmk2 marked this conversation as resolved.
6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ serde = { version = "1", features = ["derive"] }
thiserror = "2"
tokio = { version = "1.48", features = ["rt-multi-thread", "macros", "sync"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3.19", default-features = false, features = [
"std",
"fmt",
"json",
] }
tracing-subscriber = { version = "0.3.19", default-features = false, features = ["std", "fmt", "json"] }
tokenizers = "0.23"
minijinja = { version = "2.5", features = ["json", "preserve_order"] }
uuid = { version = "1.11", features = ["v4"] }
Expand Down
2 changes: 1 addition & 1 deletion __test__/server/model-work-coordinator.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it } from 'vitest';
import { describe, expect, it } from 'vite-plus/test';

import { ModelWorkCoordinator } from '../../packages/server/src/model-work-coordinator.js';

Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"format": "vp fmt",
"test": "vp test",
"typecheck": "tsc -b",
"mlx": "oxnode packages/cli/src/cli.ts"
"mlx": "oxnode packages/cli/src/cli.ts",
"prepare": "vp config"
},
"devDependencies": {
"@ast-grep/napi": "^0.44.0",
Expand All @@ -38,12 +39,12 @@
"oxc-parser": "^0.137.0",
"prettier": "^3.8.4",
"typescript": "^6.0.3",
"vite-plus": "0.1.24",
"vitest": "^4.1.9"
"vite-plus": "catalog:",
"vitest": "catalog:"
},
"resolutions": {
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.24",
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.24"
"vite": "https://pkg.pr.new/voidzero-dev/vite-plus/@voidzero-dev/vite-plus-core@670c987e4097d4e5d53bb4c0521c8bf643a33cf5",
"vitest": "4.1.9"
},
"packageManager": "yarn@4.17.0"
}
2 changes: 1 addition & 1 deletion packages/lm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"build": "tsc -b",
"test": "vite test run"
"test": "vp test run"
},
"dependencies": {
"@mlx-node/core": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/privacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"build": "tsc -b",
"test": "vite test run"
"test": "vp test run"
},
"dependencies": {
"@mlx-node/core": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions packages/trl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
},
"scripts": {
"build": "tsc -b",
"test": "vite test run",
"test:trainer": "TEST_TRAINER=1 vite test run"
"test": "vp test run",
"test:trainer": "TEST_TRAINER=1 vp test run"
},
"dependencies": {
"@mlx-node/core": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/vlm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"build": "tsc -b",
"test": "vite test run"
"test": "vp test run"
},
"dependencies": {
"@mlx-node/core": "workspace:*",
Expand Down
Loading
Loading