From ce818c4d6c9c3a2c81b5b2d07768f5f8f8ad176d Mon Sep 17 00:00:00 2001 From: Karyana Yandi Date: Sun, 11 Oct 2026 05:31:05 +0700 Subject: [PATCH 1/2] feat: migrate to viteplus --- .node-version | 1 + .nvmrc | 1 - .prettierignore | 38 - AGENTS.md | 39 + bun.lock | 1020 ------------ eslint.config.mjs | 17 - lefthook.yml | 9 - package.json | 42 +- pnpm-lock.yaml | 3877 +++++++++++++++++++++++++++++++++++++++++++ pnpm-workspace.yaml | 3 + src/index.ts | 2 +- src/lib/utils.ts | 2 +- tsconfig.json | 3 +- vite.config.ts | 212 +++ 14 files changed, 4156 insertions(+), 1110 deletions(-) create mode 100644 .node-version delete mode 100644 .nvmrc delete mode 100644 .prettierignore create mode 100644 AGENTS.md delete mode 100644 bun.lock delete mode 100644 eslint.config.mjs delete mode 100644 lefthook.yml create mode 100644 pnpm-lock.yaml create mode 100644 pnpm-workspace.yaml create mode 100644 vite.config.ts diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +24 diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 2bd5a0a..0000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -22 diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index c44960f..0000000 --- a/.prettierignore +++ /dev/null @@ -1,38 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# Dependencies -node_modules -.pnp -.pnp.js - -# Local env files -.env -.env.local -.env.development.local -.env.test.local -.env.production.local -.dev.vars - -# Testing -coverage - -# Cloudflare -.wrangler -wrangler.jsonc -worker-configuration.d.ts - -# Build Outputs -out/ -build -dist -migrations/ - -# Debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Misc -.DS_Store -*.pem -tsconfig.tsbuildinfo diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..1129fcd --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,39 @@ + + +# 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/. + +## Built-in Commands vs Scripts + +`vp ` runs a built-in command. `vp run ` runs a `package.json` +script or a `vite.config.ts` task. Scripts cannot overwrite built-ins, so +`vp dev` and `vp run dev` may do different things. Check `package.json` and +`vite.config.ts` first, and run `vp run ` when the project defines a +script or task with that name. + +## Tool Versions + +Run `vp toolchain` to show versions and relationships in the active Vite+ +release. Add a tool name to select part of the graph. For example, run +`vp toolchain vite`. Use `--global` to ignore the local `vite-plus` package. Use +`vp why ` to show the package-manager dependency graph. + +## 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