From 7a0cb31710c212800d515ebf9a59fa1d6ba98ea4 Mon Sep 17 00:00:00 2001 From: MK Date: Mon, 29 Jun 2026 20:07:16 +0800 Subject: [PATCH] vp migrate beta test --- .npmrc | 2 + .vscode/settings.json | 12 + AGENTS.md | 17 + package-lock.json | 472 +++++++++--------- package.json | 8 +- .../src/App/__tests__/coverage.ui.test.tsx | 2 +- .../src/App/__tests__/index.ui.test.tsx | 2 +- .../src/Blank/__tests__/index.ui.test.tsx | 2 +- .../src/Config/__tests__/index.ui.test.tsx | 2 +- .../src/Description/__tests__/base.test.tsx | 2 +- .../__tests__/coverage.ui.test.tsx | 2 +- .../Description/__tests__/extend.ui.test.tsx | 2 +- .../Description/__tests__/faas.ui.test.tsx | 2 +- .../Description/__tests__/items.ui.test.tsx | 2 +- .../ErrorBoundary/__tests__/index.ui.test.tsx | 2 +- .../__tests__/base.ui.test.tsx | 2 +- .../src/Form/__tests__/base.ui.test.tsx | 2 +- .../src/Form/__tests__/extend.ui.test.tsx | 2 +- .../src/Form/__tests__/items.ui.test.tsx | 2 +- .../src/Form/__tests__/submit.ui.test.tsx | 2 +- .../src/FormItem/__tests__/base.ui.test.tsx | 2 +- .../FormItem/__tests__/coverage.ui.test.tsx | 2 +- .../src/FormItem/__tests__/list.ui.test.tsx | 2 +- .../src/FormItem/__tests__/object.ui.test.tsx | 2 +- .../src/FormItem/__tests__/scalar.ui.test.tsx | 2 +- .../src/Loading/__tests__/index.ui.test.tsx | 2 +- .../src/Table/__tests__/ajax.ui.test.tsx | 2 +- .../src/Table/__tests__/base.test.tsx | 2 +- .../src/Table/__tests__/coverage.ui.test.tsx | 2 +- .../src/Table/__tests__/extend.ui.test.tsx | 2 +- .../src/Table/__tests__/faas.ui.test.tsx | 2 +- .../src/Table/__tests__/items.ui.test.tsx | 2 +- .../src/Table/__tests__/logic.ui.test.tsx | 2 +- .../src/Tabs/__tests__/index.ui.test.tsx | 2 +- .../src/Title/__tests__/index.ui.test.tsx | 2 +- .../src/__tests__/dialog-hook-cases.tsx | 2 +- .../src/data/__tests__/data.test.ts | 2 +- .../src/index/__tests__/index.test.ts | 2 +- .../useApp/__tests__/use-app.types.test.ts | 2 +- .../__tests__/use-theme-token.ui.test.tsx | 2 +- .../define-api/__tests__/define-api.test.ts | 2 +- .../__tests__/define-api.types.test.ts | 2 +- .../core/src/func/__tests__/coverage.test.ts | 2 +- packages/core/src/func/__tests__/fp.test.ts | 2 +- .../core/src/func/__tests__/handler.test.ts | 2 +- .../core/src/func/__tests__/lifecycle.test.ts | 2 +- .../core/src/func/__tests__/logger.test.ts | 2 +- .../core/src/func/__tests__/plugins.test.ts | 2 +- .../src/index/__tests__/types.types.test.ts | 2 +- .../src/middleware/__tests__/index.test.ts | 2 +- .../src/middleware/__tests__/static.test.ts | 2 +- .../src/plugins/http/__tests__/cookie.test.ts | 2 +- .../plugins/http/__tests__/coverage.test.ts | 2 +- .../plugins/http/__tests__/headers.test.ts | 2 +- .../src/plugins/http/__tests__/http.test.ts | 2 +- .../src/plugins/http/__tests__/params.test.ts | 2 +- .../plugins/http/__tests__/session.test.ts | 2 +- .../plugins/http/__tests__/set-body.test.ts | 2 +- .../http/__tests__/set-content-type.test.ts | 2 +- .../plugins/http/__tests__/set-header.test.ts | 2 +- .../http/__tests__/set-status-code.test.ts | 2 +- .../src/plugins/http/__tests__/stream.test.ts | 2 +- .../run-handler/__tests__/index.test.ts | 2 +- .../request-url/__tests__/request-url.test.ts | 2 +- .../core/src/server/__tests__/env.test.ts | 2 +- .../core/src/server/__tests__/headers.test.ts | 2 +- .../core/src/server/__tests__/hooks.test.ts | 2 +- .../core/src/server/__tests__/index.test.ts | 2 +- .../src/server/__tests__/middleware.test.ts | 2 +- .../server/__tests__/mocks.coverage.test.ts | 2 +- .../src/server/__tests__/response.test.ts | 2 +- .../core/src/server/__tests__/routes.test.ts | 2 +- .../src/utils/__tests__/name-func.test.ts | 2 +- .../parse-api-filename-from-stack.test.ts | 2 +- .../action/__tests__/action.coverage.test.ts | 2 +- .../src/action/__tests__/action.test.ts | 2 +- .../src/index/__tests__/index.test.ts | 2 +- .../features/auth/api/__tests__/me.test.ts | 2 +- .../users/api/__tests__/create.test.ts | 2 +- .../users/api/__tests__/detail.test.ts | 2 +- .../features/users/api/__tests__/list.test.ts | 2 +- .../users/api/__tests__/update.test.ts | 2 +- .../features/home/api/__tests__/hello.test.ts | 2 +- packages/dev/package.json | 5 +- packages/dev/src/cli/__tests__/index.test.ts | 2 +- .../cli/commands/run/__tests__/index.test.ts | 2 +- .../commands/types/__tests__/types.test.ts | 2 +- .../src/cli/utils/__tests__/shared.test.ts | 2 +- .../dev/src/index/__tests__/index.test.ts | 2 +- .../dev/src/testing/__tests__/basic.test.ts | 2 +- .../dev/src/testing/__tests__/http.test.ts | 2 +- .../src/testing/__tests__/init-by-api.test.ts | 2 +- .../dev/src/testing/__tests__/session.test.ts | 2 +- .../dev/src/testing/__tests__/use.test.ts | 2 +- .../dev/src/typegen/__tests__/typegen.test.ts | 2 +- .../src/utils/__tests__/server-config.test.ts | 2 +- .../dev/src/vite/__tests__/configs.test.ts | 2 +- .../src/vite/__tests__/vite-typegen.test.ts | 4 +- packages/dev/src/vite/__tests__/vite.test.ts | 4 +- packages/dev/src/vite/server.ts | 2 +- packages/jobs/src/cron.test.ts | 2 +- .../define-job/__tests__/define-job.test.ts | 2 +- .../jobs/src/index/__tests__/jobs.test.ts | 2 +- .../jobs/src/index/__tests__/runtime.test.ts | 2 +- .../src/types/__tests__/index.types.test.ts | 2 +- .../src/color/__tests__/color.test.ts | 2 +- .../src/format/__tests__/format.test.ts | 2 +- .../src/index/__tests__/index.test.ts | 2 +- .../__tests__/is-path-inside-root.test.ts | 2 +- .../__tests__/load-package.resolve.test.ts | 2 +- .../__tests__/load-package.test.ts | 2 +- .../src/logger/__tests__/logger.test.ts | 2 +- .../__tests__/register-hooks.test.ts | 2 +- .../__tests__/load-api-handler.test.ts | 2 +- .../__tests__/load-config.test.ts | 2 +- .../__tests__/load-plugins.test.ts | 2 +- .../src/schema/__tests__/schema.test.ts | 2 +- .../src/transport/__tests__/transport.test.ts | 2 +- packages/pg-dev/package.json | 3 +- .../published-package.integration.test.ts | 2 +- .../pglite/__tests__/pglite-config.test.ts | 2 +- .../src/pglite/__tests__/pglite.test.ts | 2 +- .../fixtures/create-vitest-config.ts | 2 +- .../shared.ts | 2 +- .../plugin.case.ts | 2 +- .../faasjs-pg-vitest-plugin/plugin.case.ts | 2 +- .../__tests__/plugin.integration.test.ts | 2 +- .../src/plugin/__tests__/plugin.test.ts | 2 +- packages/pg-dev/src/plugin/index.ts | 2 +- .../src/postgres/__tests__/postgres.test.ts | 2 +- .../__tests__/setup-helper.test.ts | 2 +- packages/pg-dev/src/testing-setup.ts | 2 +- .../src/testing/__tests__/testing.test.ts | 2 +- .../__tests__/vitest-worker-count.test.ts | 2 +- .../pg-dev/src/vitest-worker-count/index.ts | 2 +- packages/pg/src/cli/__tests__/index.test.ts | 2 +- packages/pg/src/cli/__tests__/main.test.ts | 2 +- .../pg/src/client/__tests__/client.test.ts | 2 +- .../client/__tests__/create-client.test.ts | 2 +- packages/pg/src/index/__tests__/index.test.ts | 2 +- .../pg/src/migrator/__tests__/index.test.ts | 2 +- .../query-builder/__tests__/mutation.test.ts | 2 +- .../src/query-builder/__tests__/query.test.ts | 2 +- .../schema-builder/__tests__/index.test.ts | 2 +- .../__tests__/table-builder.test.ts | 2 +- .../src/types/__tests__/types.types.test.ts | 2 +- packages/pg/src/utils/__tests__/utils.test.ts | 2 +- .../__tests__/error-boundary.ui.test.tsx | 2 +- .../__tests__/faas-data-wrapper.ui.test.tsx | 2 +- .../__tests__/optional-wrapper.ui.test.tsx | 2 +- .../browser/__tests__/client.types.test.ts | 2 +- .../src/browser/__tests__/client.ui.test.ts | 2 +- .../src/browser/__tests__/mock.ui.test.ts | 2 +- .../src/browser/__tests__/stream.ui.test.ts | 2 +- .../constants/__tests__/constant.ui.test.tsx | 2 +- .../create-window-states.ui.test.tsx | 2 +- .../src/equal/__tests__/equal.ui.test.ts | 2 +- .../react/src/faas/__tests__/faas.test.ts | 2 +- .../react/src/index/__tests__/index.test.ts | 2 +- .../__tests__/splitting-context.ui.test.tsx | 2 +- .../useFaas/__tests__/use-faas.ui.test.tsx | 2 +- .../__tests__/use-faas-stream.ui.test.tsx | 2 +- .../__tests__/use-previous.ui.test.ts | 2 +- .../__tests__/use-states.ui.test.tsx | 2 +- .../types/src/index/__tests__/index.test.ts | 2 +- packages/utils/src/__tests__/index.test.ts | 2 +- .../deep-merge/__tests__/deep-merge.test.ts | 2 +- .../utils/src/error/__tests__/index.test.ts | 2 +- .../generate-id/__tests__/generate-id.test.ts | 2 +- .../utils/src/json/__tests__/index.test.ts | 2 +- .../utils/src/stream/__tests__/stream.test.ts | 2 +- .../src/yaml/__tests__/parse-yaml.test.ts | 2 +- .../utils/src/zod/__tests__/index.test.ts | 2 +- .../workflow/src/__tests__/workflow.test.ts | 2 +- .../src/__tests__/workflow.types.test.ts | 2 +- templates/hello-api/package.json | 3 +- templates/params-and-errors/package.json | 3 +- templates/routing-fallback/package.json | 3 +- 178 files changed, 448 insertions(+), 420 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..36a0b827e --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +# pkg.pr.new registry bridge (added by test-pkg-pr-new-migrate.sh) +registry=https://pkg-pr-registry-bridge.void.app/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 671a32bb3..6450452c1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -37,5 +37,17 @@ "editor.formatOnSaveMode": "file", "[json]": { "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" } } diff --git a/AGENTS.md b/AGENTS.md index 774b1f75e..8060cbf53 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,3 +1,20 @@ # Agent Guide See [CONTRIBUTING](./CONTRIBUTING.md) for the main contributor guide that applies to both human contributors and agents. + + + +# 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