diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index baf5914..b7f2098 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,12 @@ jobs: cargo clippy --all-targets --all-features -- -D warnings RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items + - uses: voidzero-dev/setup-vp@40646972e9ea5e33609c1bb31ac6a27fb01b641e # v1.10.0 + with: + node-version-file: .node-version + + - run: vp fmt --check + - uses: crate-ci/typos@5374cbf686e897b15713110e233094e2874de7ef # v1.46.1 with: files: . diff --git a/.github/workflows/update-builtins.yml b/.github/workflows/update-builtins.yml index 6a6ed80..28d74e4 100644 --- a/.github/workflows/update-builtins.yml +++ b/.github/workflows/update-builtins.yml @@ -33,7 +33,10 @@ jobs: persist-credentials: true token: ${{ steps.app-token.outputs.token }} - - uses: oxc-project/setup-node@ab97f03642370d79a7e96dd286bd02a1be40e0ba # v1.3.0 + - uses: voidzero-dev/setup-vp@40646972e9ea5e33609c1bb31ac6a27fb01b641e # v1.10.0 + with: + node-version-file: .node-version + run-install: false - uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16 with: diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index cb2c84d..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -pnpm lint-staged diff --git a/.vite-hooks/pre-commit b/.vite-hooks/pre-commit new file mode 100755 index 0000000..85fb65b --- /dev/null +++ b/.vite-hooks/pre-commit @@ -0,0 +1 @@ +vp staged diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..ef04176 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,15 @@ + + +# 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 --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