vite-plus 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -29
- package/README.md +3 -3
- package/bin/vp +1 -1
- package/binding/index.cjs +60 -56
- package/binding/index.d.cts +137 -14
- package/dist/{agent-Wqx0MPk0.js → agent-C59HKB4Y.js} +3 -2
- package/dist/bin.js +90 -58
- package/dist/cli-parse-DHE8NrBU.js +13 -0
- package/dist/client/bundledDevClient.mjs +1 -1
- package/dist/client/client.mjs +1 -1
- package/dist/client/env.mjs +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/config/bin.js +83 -55
- package/dist/{constants-Bn-U8o4v.js → constants-IhOditRA.js} +3 -3
- package/dist/create/bin.d.ts +13 -5
- package/dist/create/bin.js +50 -193
- package/dist/{define-config-GXUdVT-0.js → define-config-DAaCa0U_.js} +2 -2
- package/dist/{define-config-DWoAkNdp.d.ts → define-config-DPNEJxPz.d.ts} +5 -9
- package/dist/{define-config-WiVlryJ2.cjs → define-config-DpAPETDf.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/dist-DfmT__Aw.js +619 -0
- package/dist/{editor-CC4DqODz.js → editor-QOIGtmH4.js} +205 -70
- package/dist/hooks/bin.js +9 -114
- package/dist/{hooks-DFqViZqZ.js → hooks-C-4gykWR.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/lint-plugins-dev.d.ts +3 -0
- package/dist/lint-plugins-dev.js +2 -0
- package/dist/lint-plugins.cjs +21 -0
- package/dist/lint-plugins.d.ts +3 -0
- package/dist/lint-plugins.js +2 -0
- package/dist/migration/bin.js +25 -144
- package/dist/migration/compat/worker.js +1 -1
- package/dist/module-runner.d.ts +1 -1
- package/dist/module-runner.js +1 -1
- package/dist/{oxlint-plugin-config-DX5ezKbB.js → oxlint-plugin-config-BU42tr8y.js} +1 -1
- package/dist/oxlint-plugin.d.ts +2 -2
- package/dist/oxlint-plugin.js +93 -32
- package/dist/{pack-PvUg_xpv.d.ts → pack-BK38MLVZ.d.ts} +1 -1
- package/dist/pack-bin.d.ts +2 -3
- package/dist/pack-bin.js +5 -622
- package/dist/pack-client.d.ts +1 -1
- package/dist/pack.d.ts +2 -2
- package/dist/pack.js +1 -1
- package/dist/{package-CBe9EWPY.js → package-BB-Jh_z3.js} +1 -1
- package/dist/{prompts-DF3yU-eU.js → prompts-CujFOJXu.js} +3 -1400
- package/dist/{report-ZNR1Mk6h.js → report-CK5TnTsr.js} +1 -0
- package/dist/resolve-vite-config-6Nox70uP.js +2 -0
- package/dist/{resolve-vite-config-ipGb39Jo.js → resolve-vite-config-CHHjsjKJ.js} +3 -3
- package/dist/semver-CaDAb8vV.js +1400 -0
- package/dist/staged/bin.js +83 -218
- package/dist/sync-versions/bin.d.ts +1 -0
- package/dist/sync-versions/bin.js +3884 -0
- package/dist/sync-versions/bin.mjs +13323 -0
- package/dist/toolchain.js +10 -10
- package/dist/toolchain.json +10 -10
- package/dist/{tsconfig-LD2QhQ0O.js → tsconfig-DCtWfQPA.js} +2 -2
- package/dist/{tsconfig-BVHG3DpR.js → tsconfig-MXktI3SX.js} +1 -1
- package/dist/tsgolint-path.d.ts +3 -4
- package/dist/types/customEvent.d.ts +1 -1
- package/dist/types/hmrPayload.d.ts +1 -1
- package/dist/types/hot.d.ts +1 -1
- package/dist/types/import-meta.d.ts +1 -1
- package/dist/types/importGlob.d.ts +1 -1
- package/dist/types/importMeta.d.ts +1 -1
- package/dist/types/metadata.d.ts +1 -1
- package/dist/version.d.ts +2 -3
- package/dist/version.js +2 -2
- package/dist/versions.js +5 -5
- package/dist/vitest-ecosystem-BiRqcaRI.js +23 -0
- package/docs/config/fmt.md +4 -2
- package/docs/config/lint.md +4 -2
- package/docs/guide/check.md +1 -0
- package/docs/guide/ci.md +42 -2
- package/docs/guide/env.md +148 -52
- package/docs/guide/fmt.md +3 -1
- package/docs/guide/ide-integration.md +14 -2
- package/docs/guide/index.md +1 -1
- package/docs/guide/install.md +4 -1
- package/docs/guide/installer-env-vars.md +45 -1
- package/docs/guide/lint.md +58 -1
- package/docs/guide/migrate-rules.md +95 -2
- package/docs/guide/migrate.md +1 -1
- package/docs/guide/monorepo.md +2 -0
- package/docs/guide/troubleshooting.md +14 -0
- package/package.json +27 -20
- package/templates/generator/README.md +14 -0
- package/templates/generator/bin/index.ts +54 -5
- package/dist/lib-L3DWSRQp.js +0 -75
- package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
package/dist/toolchain.js
CHANGED
|
@@ -4,7 +4,7 @@ export const toolchain = {
|
|
|
4
4
|
{
|
|
5
5
|
"id": "vite-plus",
|
|
6
6
|
"name": "vite-plus",
|
|
7
|
-
"version": "0.3.
|
|
7
|
+
"version": "0.3.2",
|
|
8
8
|
"kind": "package",
|
|
9
9
|
"delivery": [
|
|
10
10
|
"dependency"
|
|
@@ -14,7 +14,7 @@ export const toolchain = {
|
|
|
14
14
|
{
|
|
15
15
|
"id": "vite-plus-core",
|
|
16
16
|
"name": "@voidzero-dev/vite-plus-core",
|
|
17
|
-
"version": "0.3.
|
|
17
|
+
"version": "0.3.2",
|
|
18
18
|
"kind": "package",
|
|
19
19
|
"delivery": [
|
|
20
20
|
"dependency"
|
|
@@ -26,7 +26,7 @@ export const toolchain = {
|
|
|
26
26
|
{
|
|
27
27
|
"id": "vite",
|
|
28
28
|
"name": "vite",
|
|
29
|
-
"version": "8.
|
|
29
|
+
"version": "8.3.0",
|
|
30
30
|
"kind": "tool",
|
|
31
31
|
"delivery": [
|
|
32
32
|
"bundled"
|
|
@@ -36,7 +36,7 @@ export const toolchain = {
|
|
|
36
36
|
{
|
|
37
37
|
"id": "rolldown",
|
|
38
38
|
"name": "rolldown",
|
|
39
|
-
"version": "1.2.
|
|
39
|
+
"version": "1.2.8",
|
|
40
40
|
"kind": "tool",
|
|
41
41
|
"delivery": [
|
|
42
42
|
"bundled",
|
|
@@ -57,7 +57,7 @@ export const toolchain = {
|
|
|
57
57
|
{
|
|
58
58
|
"id": "oxlint",
|
|
59
59
|
"name": "oxlint",
|
|
60
|
-
"version": "1.
|
|
60
|
+
"version": "1.82.0",
|
|
61
61
|
"kind": "tool",
|
|
62
62
|
"delivery": [
|
|
63
63
|
"dependency"
|
|
@@ -67,7 +67,7 @@ export const toolchain = {
|
|
|
67
67
|
{
|
|
68
68
|
"id": "oxfmt",
|
|
69
69
|
"name": "oxfmt",
|
|
70
|
-
"version": "0.
|
|
70
|
+
"version": "0.67.0",
|
|
71
71
|
"kind": "tool",
|
|
72
72
|
"delivery": [
|
|
73
73
|
"dependency"
|
|
@@ -89,7 +89,7 @@ export const toolchain = {
|
|
|
89
89
|
{
|
|
90
90
|
"id": "tsdown",
|
|
91
91
|
"name": "tsdown",
|
|
92
|
-
"version": "0.
|
|
92
|
+
"version": "0.23.0",
|
|
93
93
|
"kind": "tool",
|
|
94
94
|
"delivery": [
|
|
95
95
|
"bundled"
|
|
@@ -100,7 +100,7 @@ export const toolchain = {
|
|
|
100
100
|
"id": "vite-task",
|
|
101
101
|
"name": "vite-task",
|
|
102
102
|
"revision": "d05b1dcdbaabaa69643ee0b89cebe3cd390957e9",
|
|
103
|
-
"builtAt": "2026-
|
|
103
|
+
"builtAt": "2026-09-14T14:39:37Z",
|
|
104
104
|
"kind": "tool",
|
|
105
105
|
"delivery": [
|
|
106
106
|
"compiled"
|
|
@@ -110,7 +110,7 @@ export const toolchain = {
|
|
|
110
110
|
{
|
|
111
111
|
"id": "oxc",
|
|
112
112
|
"name": "oxc",
|
|
113
|
-
"version": "0.
|
|
113
|
+
"version": "0.149.0",
|
|
114
114
|
"kind": "engine",
|
|
115
115
|
"delivery": [
|
|
116
116
|
"compiled"
|
|
@@ -120,7 +120,7 @@ export const toolchain = {
|
|
|
120
120
|
{
|
|
121
121
|
"id": "oxc-resolver",
|
|
122
122
|
"name": "oxc-resolver",
|
|
123
|
-
"version": "11.24.
|
|
123
|
+
"version": "11.24.3",
|
|
124
124
|
"kind": "engine",
|
|
125
125
|
"delivery": [
|
|
126
126
|
"compiled"
|
package/dist/toolchain.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"id": "vite-plus",
|
|
6
6
|
"name": "vite-plus",
|
|
7
|
-
"version": "0.3.
|
|
7
|
+
"version": "0.3.2",
|
|
8
8
|
"kind": "package",
|
|
9
9
|
"delivery": [
|
|
10
10
|
"dependency"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "vite-plus-core",
|
|
16
16
|
"name": "@voidzero-dev/vite-plus-core",
|
|
17
|
-
"version": "0.3.
|
|
17
|
+
"version": "0.3.2",
|
|
18
18
|
"kind": "package",
|
|
19
19
|
"delivery": [
|
|
20
20
|
"dependency"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{
|
|
27
27
|
"id": "vite",
|
|
28
28
|
"name": "vite",
|
|
29
|
-
"version": "8.
|
|
29
|
+
"version": "8.3.0",
|
|
30
30
|
"kind": "tool",
|
|
31
31
|
"delivery": [
|
|
32
32
|
"bundled"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
{
|
|
37
37
|
"id": "rolldown",
|
|
38
38
|
"name": "rolldown",
|
|
39
|
-
"version": "1.2.
|
|
39
|
+
"version": "1.2.8",
|
|
40
40
|
"kind": "tool",
|
|
41
41
|
"delivery": [
|
|
42
42
|
"bundled",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
{
|
|
58
58
|
"id": "oxlint",
|
|
59
59
|
"name": "oxlint",
|
|
60
|
-
"version": "1.
|
|
60
|
+
"version": "1.82.0",
|
|
61
61
|
"kind": "tool",
|
|
62
62
|
"delivery": [
|
|
63
63
|
"dependency"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
{
|
|
68
68
|
"id": "oxfmt",
|
|
69
69
|
"name": "oxfmt",
|
|
70
|
-
"version": "0.
|
|
70
|
+
"version": "0.67.0",
|
|
71
71
|
"kind": "tool",
|
|
72
72
|
"delivery": [
|
|
73
73
|
"dependency"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
{
|
|
90
90
|
"id": "tsdown",
|
|
91
91
|
"name": "tsdown",
|
|
92
|
-
"version": "0.
|
|
92
|
+
"version": "0.23.0",
|
|
93
93
|
"kind": "tool",
|
|
94
94
|
"delivery": [
|
|
95
95
|
"bundled"
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"id": "vite-task",
|
|
101
101
|
"name": "vite-task",
|
|
102
102
|
"revision": "d05b1dcdbaabaa69643ee0b89cebe3cd390957e9",
|
|
103
|
-
"builtAt": "2026-
|
|
103
|
+
"builtAt": "2026-09-14T14:39:37Z",
|
|
104
104
|
"kind": "tool",
|
|
105
105
|
"delivery": [
|
|
106
106
|
"compiled"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
{
|
|
111
111
|
"id": "oxc",
|
|
112
112
|
"name": "oxc",
|
|
113
|
-
"version": "0.
|
|
113
|
+
"version": "0.149.0",
|
|
114
114
|
"kind": "engine",
|
|
115
115
|
"delivery": [
|
|
116
116
|
"compiled"
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
{
|
|
121
121
|
"id": "oxc-resolver",
|
|
122
122
|
"name": "oxc-resolver",
|
|
123
|
-
"version": "11.24.
|
|
123
|
+
"version": "11.24.3",
|
|
124
124
|
"kind": "engine",
|
|
125
125
|
"delivery": [
|
|
126
126
|
"compiled"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as createBaseUrlTsconfigFixArgs, t as BASEURL_TSCONFIG_FIX_PACKAGE } from "./constants-
|
|
2
|
-
import { A as isCancel, C as log, t as cancelAndExit, x as confirm } from "./prompts-DF3yU-eU.js";
|
|
1
|
+
import { p as createBaseUrlTsconfigFixArgs, t as BASEURL_TSCONFIG_FIX_PACKAGE } from "./constants-IhOditRA.js";
|
|
3
2
|
import { c as parse, o as applyEdits, s as modify } from "./json-cULBl7Pi.js";
|
|
3
|
+
import { S as log, b as confirm, k as isCancel, t as cancelAndExit } from "./prompts-CujFOJXu.js";
|
|
4
4
|
import { n as runCommandSilently } from "./command-CguLh2KL.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { styleText } from "node:util";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig } from "./tsconfig-
|
|
1
|
+
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig } from "./tsconfig-DCtWfQPA.js";
|
|
2
2
|
export { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig };
|
package/dist/tsgolint-path.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
//#region src/utils/tsgolint-path.d.ts
|
|
2
|
-
declare function resolveWindowsTsgolintExecutable(pathCandidates: string[], options: {
|
|
2
|
+
export declare function resolveWindowsTsgolintExecutable(pathCandidates: string[], options: {
|
|
3
3
|
exists: (path: string) => boolean;
|
|
4
4
|
getRealpathCandidates?: () => string[];
|
|
5
5
|
}): string;
|
|
6
|
-
declare function resolveTsgolintExecutable(tsgolintBinPath: string, scriptUrl: string): string;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { resolveTsgolintExecutable, resolveWindowsTsgolintExecutable };
|
|
6
|
+
export declare function resolveTsgolintExecutable(tsgolintBinPath: string, scriptUrl: string): string;
|
|
7
|
+
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type * from '
|
|
1
|
+
export type * from 'vite/types/customEvent.d.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type * from '
|
|
1
|
+
export type * from 'vite/types/hmrPayload.d.ts';
|
package/dist/types/hot.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type * from '
|
|
1
|
+
export type * from 'vite/types/hot.d.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type * from '
|
|
1
|
+
export type * from 'vite/types/import-meta.d.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type * from '
|
|
1
|
+
export type * from 'vite/types/importGlob.d.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type * from '
|
|
1
|
+
export type * from 'vite/types/importMeta.d.ts';
|
package/dist/types/metadata.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type * from '
|
|
1
|
+
export type * from 'vite/types/metadata.d.ts';
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as renderCliDoc } from "./help-BmKpeOP9.js";
|
|
2
2
|
import { i as log, o as printHeader, t as accent } from "./terminal-MKGAuy-p.js";
|
|
3
|
-
import { _ as version } from "./constants-
|
|
4
|
-
import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-
|
|
3
|
+
import { _ as version } from "./constants-IhOditRA.js";
|
|
4
|
+
import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-BB-Jh_z3.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
//#region src/version.ts
|
package/dist/versions.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const versions = {
|
|
2
|
-
"vite": "8.
|
|
3
|
-
"rolldown": "1.2.
|
|
2
|
+
"vite": "8.3.0",
|
|
3
|
+
"rolldown": "1.2.8",
|
|
4
4
|
"vitest": "4.1.11",
|
|
5
|
-
"oxfmt": "0.
|
|
6
|
-
"oxlint": "1.
|
|
5
|
+
"oxfmt": "0.67.0",
|
|
6
|
+
"oxlint": "1.82.0",
|
|
7
7
|
"oxlint-tsgolint": "7.0.2001",
|
|
8
|
-
"tsdown": "0.
|
|
8
|
+
"tsdown": "0.23.0"
|
|
9
9
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/utils/package-overrides.ts
|
|
2
|
+
function extractOverrideTargetName(key) {
|
|
3
|
+
let target = key.trim();
|
|
4
|
+
for (let delimiter = target.search(/[^ |@]>/); delimiter !== -1; delimiter = target.search(/[^ |@]>/)) target = target.slice(delimiter + 2).trim();
|
|
5
|
+
if (!target) return target;
|
|
6
|
+
if (target.includes("/")) {
|
|
7
|
+
const segments = target.split("/");
|
|
8
|
+
const last = segments[segments.length - 1];
|
|
9
|
+
const scope = segments[segments.length - 2];
|
|
10
|
+
target = scope?.startsWith("@") ? `${scope}/${last}` : last;
|
|
11
|
+
}
|
|
12
|
+
const nameStart = target.startsWith("@") ? target.indexOf("/") + 1 : 0;
|
|
13
|
+
const versionAt = target.indexOf("@", nameStart);
|
|
14
|
+
return versionAt > 0 ? target.slice(0, versionAt) : target;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/utils/vitest-ecosystem.ts
|
|
18
|
+
const VITEST_ALIGN_EXCLUDED = /* @__PURE__ */ new Set(["@vitest/eslint-plugin", "@vitest/coverage-c8"]);
|
|
19
|
+
function isAlignableVitestEcosystemPackage(name) {
|
|
20
|
+
return name.startsWith("@vitest/") && !VITEST_ALIGN_EXCLUDED.has(name);
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { extractOverrideTargetName as n, isAlignableVitestEcosystemPackage as t };
|
package/docs/config/fmt.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Format Config
|
|
2
2
|
|
|
3
|
-
`vp fmt` and `vp check` read Oxfmt settings from the `fmt` block in `vite.config.ts`. See [Oxfmt's configuration](https://oxc.rs/docs/guide/usage/formatter/config.html) for details.
|
|
3
|
+
`vp fmt` and `vp check` read Oxfmt settings from the `fmt` block in the root `vite.config.ts`. See [Oxfmt's configuration](https://oxc.rs/docs/guide/usage/formatter/config.html) for details.
|
|
4
4
|
|
|
5
5
|
## Example
|
|
6
6
|
|
|
@@ -17,4 +17,6 @@ export default defineConfig({
|
|
|
17
17
|
});
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
For package-specific formatting settings
|
|
20
|
+
For file- or package-specific formatting settings, use [`fmt.overrides`](/guide/monorepo#format-overrides) from the root `vite.config.ts`.
|
|
21
|
+
|
|
22
|
+
Vite+ does not currently support nested format configuration. See [troubleshooting](/guide/troubleshooting#nested-lint-or-format-config-is-not-applied) for details and how to give feedback on future support.
|
package/docs/config/lint.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Lint Config
|
|
2
2
|
|
|
3
|
-
`vp lint` and `vp check` read Oxlint settings from the `lint` block in `vite.config.ts`. See [Oxlint's configuration](https://oxc.rs/docs/guide/usage/linter/config.html) for details.
|
|
3
|
+
`vp lint` and `vp check` read Oxlint settings from the `lint` block in the root `vite.config.ts`. See [Oxlint's configuration](https://oxc.rs/docs/guide/usage/linter/config.html) for details.
|
|
4
4
|
|
|
5
5
|
## Example
|
|
6
6
|
|
|
@@ -23,4 +23,6 @@ export default defineConfig({
|
|
|
23
23
|
|
|
24
24
|
We recommend enabling both `options.typeAware` and `options.typeCheck` so `vp lint` and `vp check` can use the full type-aware path.
|
|
25
25
|
|
|
26
|
-
For package-specific lint rules
|
|
26
|
+
For file- or package-specific lint rules, use [`lint.overrides`](/guide/monorepo#root-config-with-overrides) from the root `vite.config.ts`.
|
|
27
|
+
|
|
28
|
+
Vite+ does not currently support nested lint configuration. See [troubleshooting](/guide/troubleshooting#nested-lint-or-format-config-is-not-applied) for details and how to give feedback on future support.
|
package/docs/guide/check.md
CHANGED
|
@@ -15,6 +15,7 @@ We recommend turning `typeCheck` on so `vp check` becomes the single command for
|
|
|
15
15
|
```bash
|
|
16
16
|
vp check
|
|
17
17
|
vp check --fix # Format and run autofixers.
|
|
18
|
+
vp check --quiet # Hide lint warnings; still report and fail on errors.
|
|
18
19
|
vp check --no-fmt # Skip format; run lint (and type-check if enabled).
|
|
19
20
|
vp check --no-lint # Skip lint rules; keep type-check when enabled.
|
|
20
21
|
vp check --no-fmt --no-lint # Type-check only (requires `typeCheck` enabled).
|
package/docs/guide/ci.md
CHANGED
|
@@ -4,12 +4,17 @@ You can use `voidzero-dev/setup-vp` to use Vite+ in CI environments.
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
[`voidzero-dev/setup-vp`](https://github.com/voidzero-dev/setup-vp) provides integrations for GitHub Actions
|
|
7
|
+
[`voidzero-dev/setup-vp`](https://github.com/voidzero-dev/setup-vp) provides integrations for GitHub Actions, GitLab CI/CD, and Azure Pipelines. All three install Vite+ and can install project dependencies. The GitHub Action and Azure Pipelines template can also set up Node.js and cache package manager data automatically, while the GitLab CI/CD template uses the Node.js runtime and cache configuration provided by the job.
|
|
8
8
|
|
|
9
9
|
## setup-vp Versioning
|
|
10
10
|
|
|
11
11
|
Set `<setup-vp-version>` in each example to an exact version from the [`setup-vp` releases page](https://github.com/voidzero-dev/setup-vp/releases). You can use a commit SHA instead. Do not use the `v1` tag. The `v1` tag no longer receives updates.
|
|
12
12
|
|
|
13
|
+
Run `vp migrate` to replace exact `voidzero-dev/setup-vp@v1` references in
|
|
14
|
+
GitHub Actions workflows and composite actions under `.github` with the latest
|
|
15
|
+
exact release known to your Vite+ version. Existing exact versions and commit
|
|
16
|
+
SHAs remain unchanged.
|
|
17
|
+
|
|
13
18
|
### Automatic Version Updates
|
|
14
19
|
|
|
15
20
|
Dependabot and Renovate can update exact versions in GitHub Actions workflows.
|
|
@@ -35,7 +40,7 @@ When you use a commit SHA, add the exact release tag in a comment. Renovate uses
|
|
|
35
40
|
- uses: voidzero-dev/setup-vp@<commit-sha> # <setup-vp-version>
|
|
36
41
|
```
|
|
37
42
|
|
|
38
|
-
These settings apply only to GitHub Actions workflows. For GitLab CI/CD, update both version values together.
|
|
43
|
+
These settings apply only to GitHub Actions workflows. For GitLab CI/CD and Azure Pipelines, update both version values together.
|
|
39
44
|
|
|
40
45
|
## GitHub Actions
|
|
41
46
|
|
|
@@ -85,6 +90,41 @@ The GitLab CI/CD integration differs from the GitHub Action in a few ways:
|
|
|
85
90
|
|
|
86
91
|
For advanced configuration and the complete input reference, see the [`setup-vp` GitLab CI/CD documentation](https://github.com/voidzero-dev/setup-vp#gitlab-cicd).
|
|
87
92
|
|
|
93
|
+
## Azure Pipelines
|
|
94
|
+
|
|
95
|
+
Use the reusable `setup-vp` step template in your Azure Pipelines configuration. Create a GitHub service connection named `github`, then reference the template from the `setup-vp` repository:
|
|
96
|
+
|
|
97
|
+
```yaml [azure-pipelines.yml]
|
|
98
|
+
resources:
|
|
99
|
+
repositories:
|
|
100
|
+
- repository: setupVp
|
|
101
|
+
type: github
|
|
102
|
+
endpoint: github
|
|
103
|
+
name: voidzero-dev/setup-vp
|
|
104
|
+
ref: refs/tags/<setup-vp-version>
|
|
105
|
+
|
|
106
|
+
pool:
|
|
107
|
+
vmImage: ubuntu-latest
|
|
108
|
+
|
|
109
|
+
steps:
|
|
110
|
+
- checkout: self
|
|
111
|
+
- template: azure/setup-vp.yml@setupVp
|
|
112
|
+
parameters:
|
|
113
|
+
setupRef: '<setup-vp-version>'
|
|
114
|
+
nodeVersion: 24.x
|
|
115
|
+
cache: true
|
|
116
|
+
runInstall: true
|
|
117
|
+
- script: vp check
|
|
118
|
+
- script: vp test
|
|
119
|
+
- script: vp build
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Pin `ref` and `setupRef` to the same tag or commit SHA for strict reproducibility.
|
|
123
|
+
|
|
124
|
+
The Azure Pipelines template supports Microsoft-hosted Linux, macOS, and Windows agents. It uses Azure's native `UseNode@1` and `Cache@2` tasks to set up Node.js and cache package-manager data.
|
|
125
|
+
|
|
126
|
+
For advanced configuration and the complete parameter reference, see the [`setup-vp` Azure Pipelines documentation](https://github.com/voidzero-dev/setup-vp#azure-pipelines).
|
|
127
|
+
|
|
88
128
|
## Simplifying Existing Workflows
|
|
89
129
|
|
|
90
130
|
If you are migrating an existing GitHub Actions workflow, you can often replace large blocks of Node, package-manager, and cache setup with a single `setup-vp` step.
|