@nx/vite 22.7.0-beta.7 → 22.7.0-beta.9
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/executors.json +42 -42
- package/generators.json +32 -32
- package/migrations.json +140 -140
- package/package.json +6 -6
- package/src/executors/build/schema.json +75 -75
- package/src/executors/dev-server/schema.json +36 -36
- package/src/executors/preview-server/schema.json +40 -40
- package/src/executors/test/schema.json +33 -33
- package/src/generators/configuration/schema.d.ts +1 -0
- package/src/generators/configuration/schema.json +62 -62
- package/src/generators/convert-to-inferred/schema.json +16 -16
- package/src/generators/init/schema.json +54 -54
- package/src/generators/setup-paths-plugin/schema.json +11 -11
- package/src/generators/vitest/schema.json +62 -62
- package/src/utils/test-files/angular-project.config.json +81 -81
- package/src/utils/test-files/react-lib-non-buildable-jest.json +19 -19
- package/src/utils/test-files/react-lib-non-buildable-vitest.json +19 -19
- package/src/utils/test-files/react-mixed-project.config.json +42 -42
- package/src/utils/test-files/react-vite-project.config.json +49 -49
- package/src/utils/test-files/unknown-project.config.json +64 -64
- package/src/utils/versions.d.ts +7 -7
- package/src/utils/versions.js +4 -4
package/executors.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"builders": {
|
|
3
|
+
"dev-server": {
|
|
4
|
+
"implementation": "./src/executors/dev-server/compat",
|
|
5
|
+
"schema": "./src/executors/dev-server/schema.json",
|
|
6
|
+
"description": "Vite dev server."
|
|
7
|
+
},
|
|
8
|
+
"build": {
|
|
9
|
+
"implementation": "./src/executors/build/compat",
|
|
10
|
+
"schema": "./src/executors/build/schema.json",
|
|
11
|
+
"description": "Build with Vite."
|
|
12
|
+
},
|
|
13
|
+
"test": {
|
|
14
|
+
"implementation": "./src/executors/test/compat",
|
|
15
|
+
"schema": "./src/executors/test/schema.json",
|
|
16
|
+
"description": "Test with Vitest"
|
|
17
|
+
},
|
|
18
|
+
"preview-server": {
|
|
19
|
+
"implementation": "./src/executors/preview-server/compat",
|
|
20
|
+
"schema": "./src/executors/preview-server/schema.json",
|
|
21
|
+
"description": "Vite preview server"
|
|
22
|
+
}
|
|
7
23
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
"build": {
|
|
31
|
-
"implementation": "./src/executors/build/build.impl",
|
|
32
|
-
"schema": "./src/executors/build/schema.json",
|
|
33
|
-
"description": "Build with Vite."
|
|
34
|
-
},
|
|
35
|
-
"test": {
|
|
36
|
-
"implementation": "./src/executors/test/vitest.impl",
|
|
37
|
-
"schema": "./src/executors/test/schema.json",
|
|
38
|
-
"description": "Test with Vitest"
|
|
39
|
-
},
|
|
40
|
-
"preview-server": {
|
|
41
|
-
"implementation": "./src/executors/preview-server/preview-server.impl",
|
|
42
|
-
"schema": "./src/executors/preview-server/schema.json",
|
|
43
|
-
"description": "Vite preview server"
|
|
24
|
+
"executors": {
|
|
25
|
+
"dev-server": {
|
|
26
|
+
"implementation": "./src/executors/dev-server/dev-server.impl",
|
|
27
|
+
"schema": "./src/executors/dev-server/schema.json",
|
|
28
|
+
"description": "Vite dev server."
|
|
29
|
+
},
|
|
30
|
+
"build": {
|
|
31
|
+
"implementation": "./src/executors/build/build.impl",
|
|
32
|
+
"schema": "./src/executors/build/schema.json",
|
|
33
|
+
"description": "Build with Vite."
|
|
34
|
+
},
|
|
35
|
+
"test": {
|
|
36
|
+
"implementation": "./src/executors/test/vitest.impl",
|
|
37
|
+
"schema": "./src/executors/test/schema.json",
|
|
38
|
+
"description": "Test with Vitest"
|
|
39
|
+
},
|
|
40
|
+
"preview-server": {
|
|
41
|
+
"implementation": "./src/executors/preview-server/preview-server.impl",
|
|
42
|
+
"schema": "./src/executors/preview-server/schema.json",
|
|
43
|
+
"description": "Vite preview server"
|
|
44
|
+
}
|
|
44
45
|
}
|
|
45
|
-
}
|
|
46
46
|
}
|
package/generators.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
"name": "Nx Vite",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"generators": {
|
|
5
|
+
"init": {
|
|
6
|
+
"factory": "./src/generators/init/init#initGeneratorInternal",
|
|
7
|
+
"schema": "./src/generators/init/schema.json",
|
|
8
|
+
"description": "Initialize Vite in the workspace.",
|
|
9
|
+
"aliases": ["ng-add"],
|
|
10
|
+
"hidden": true
|
|
11
|
+
},
|
|
12
|
+
"configuration": {
|
|
13
|
+
"factory": "./src/generators/configuration/configuration#viteConfigurationGeneratorInternal",
|
|
14
|
+
"schema": "./src/generators/configuration/schema.json",
|
|
15
|
+
"description": "Add Vite configuration to an application.",
|
|
16
|
+
"aliases": ["config"],
|
|
17
|
+
"hidden": false
|
|
18
|
+
},
|
|
19
|
+
"setup-paths-plugin": {
|
|
20
|
+
"factory": "./src/generators/setup-paths-plugin/setup-paths-plugin",
|
|
21
|
+
"schema": "./src/generators/setup-paths-plugin/schema.json",
|
|
22
|
+
"description": "Sets up the nxViteTsPaths plugin to enable support for workspace libraries."
|
|
23
|
+
},
|
|
24
|
+
"convert-to-inferred": {
|
|
25
|
+
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
26
|
+
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
27
|
+
"description": "Convert existing Vite project(s) using `@nx/vite:*` executors to use `@nx/vite/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target."
|
|
28
|
+
},
|
|
29
|
+
"vitest": {
|
|
30
|
+
"factory": "./src/generators/vitest/vitest-generator",
|
|
31
|
+
"schema": "./src/generators/vitest/schema.json",
|
|
32
|
+
"description": "Generate a vitest configuration."
|
|
33
|
+
}
|
|
33
34
|
}
|
|
34
|
-
}
|
|
35
35
|
}
|
package/migrations.json
CHANGED
|
@@ -1,154 +1,154 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
"update-20-0-6": {
|
|
9
|
-
"version": "20.0.6-beta.0",
|
|
10
|
-
"description": "Add gitignore entry for temporary vite config files and remove previous incorrect glob.",
|
|
11
|
-
"implementation": "./src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore"
|
|
12
|
-
},
|
|
13
|
-
"update-20-5-0-install-jiti": {
|
|
14
|
-
"version": "20.5.0-beta.2",
|
|
15
|
-
"description": "Install jiti as a devDependency to allow vite to parse TS postcss files.",
|
|
16
|
-
"implementation": "./src/migrations/update-20-5-0/install-jiti"
|
|
17
|
-
},
|
|
18
|
-
"update-20-5-0-update-resolve-conditions": {
|
|
19
|
-
"version": "20.5.0-beta.3",
|
|
20
|
-
"description": "Update resolve.conditions to include defaults that are no longer provided by Vite.",
|
|
21
|
-
"implementation": "./src/migrations/update-20-5-0/update-resolve-conditions"
|
|
22
|
-
},
|
|
23
|
-
"eslint-ignore-vite-temp-files": {
|
|
24
|
-
"version": "20.5.0-beta.3",
|
|
25
|
-
"description": "Add vite config temporary files to the ESLint configuration ignore patterns if ESLint is used.",
|
|
26
|
-
"implementation": "./src/migrations/update-20-5-0/eslint-ignore-vite-temp-files"
|
|
27
|
-
},
|
|
28
|
-
"update-22-2-0": {
|
|
29
|
-
"version": "22.2.0-beta.1",
|
|
30
|
-
"requires": {
|
|
31
|
-
"vitest": ">=4.0.0"
|
|
32
|
-
},
|
|
33
|
-
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.",
|
|
34
|
-
"implementation": "./src/migrations/update-22-2-0/create-ai-instructions-for-vitest-4"
|
|
35
|
-
},
|
|
36
|
-
"migrate-vitest-to-vitest-package": {
|
|
37
|
-
"version": "22.2.0-beta.2",
|
|
38
|
-
"description": "Migrate Vitest usage from @nx/vite to @nx/vitest package.",
|
|
39
|
-
"implementation": "./src/migrations/update-22-2-0/migrate-vitest-to-vitest-package"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"packageJsonUpdates": {
|
|
43
|
-
"20.7.1": {
|
|
44
|
-
"version": "20.7.1-beta.0",
|
|
45
|
-
"packages": {
|
|
46
|
-
"@analogjs/vite-plugin-angular": {
|
|
47
|
-
"version": "~1.14.1",
|
|
48
|
-
"alwaysAddToPackageJson": false
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-20-0-4": {
|
|
4
|
+
"version": "20.0.4-beta.0",
|
|
5
|
+
"description": "Add gitignore entry for temporary vite config files.",
|
|
6
|
+
"implementation": "./src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore"
|
|
49
7
|
},
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"20.5.0": {
|
|
57
|
-
"version": "20.5.0-beta.3",
|
|
58
|
-
"packages": {
|
|
59
|
-
"vite": {
|
|
60
|
-
"version": "^6.0.0",
|
|
61
|
-
"alwaysAddToPackageJson": false
|
|
8
|
+
"update-20-0-6": {
|
|
9
|
+
"version": "20.0.6-beta.0",
|
|
10
|
+
"description": "Add gitignore entry for temporary vite config files and remove previous incorrect glob.",
|
|
11
|
+
"implementation": "./src/migrations/update-20-0-4/add-vite-temp-files-to-git-ignore"
|
|
62
12
|
},
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"21.1.2": {
|
|
70
|
-
"version": "21.1.2-beta.0",
|
|
71
|
-
"packages": {
|
|
72
|
-
"@analogjs/vitest-angular": {
|
|
73
|
-
"version": "~1.16.1",
|
|
74
|
-
"alwaysAddToPackageJson": false
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"21.2.0": {
|
|
79
|
-
"version": "21.2.0-beta.3",
|
|
80
|
-
"packages": {
|
|
81
|
-
"@analogjs/vite-plugin-angular": {
|
|
82
|
-
"version": "~1.17.1",
|
|
83
|
-
"alwaysAddToPackageJson": false
|
|
13
|
+
"update-20-5-0-install-jiti": {
|
|
14
|
+
"version": "20.5.0-beta.2",
|
|
15
|
+
"description": "Install jiti as a devDependency to allow vite to parse TS postcss files.",
|
|
16
|
+
"implementation": "./src/migrations/update-20-5-0/install-jiti"
|
|
84
17
|
},
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"21.3.0": {
|
|
92
|
-
"version": "21.3.0-beta.3",
|
|
93
|
-
"packages": {
|
|
94
|
-
"@analogjs/vite-plugin-angular": {
|
|
95
|
-
"version": "~1.19.1",
|
|
96
|
-
"alwaysAddToPackageJson": false
|
|
18
|
+
"update-20-5-0-update-resolve-conditions": {
|
|
19
|
+
"version": "20.5.0-beta.3",
|
|
20
|
+
"description": "Update resolve.conditions to include defaults that are no longer provided by Vite.",
|
|
21
|
+
"implementation": "./src/migrations/update-20-5-0/update-resolve-conditions"
|
|
97
22
|
},
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
23
|
+
"eslint-ignore-vite-temp-files": {
|
|
24
|
+
"version": "20.5.0-beta.3",
|
|
25
|
+
"description": "Add vite config temporary files to the ESLint configuration ignore patterns if ESLint is used.",
|
|
26
|
+
"implementation": "./src/migrations/update-20-5-0/eslint-ignore-vite-temp-files"
|
|
27
|
+
},
|
|
28
|
+
"update-22-2-0": {
|
|
29
|
+
"version": "22.2.0-beta.1",
|
|
30
|
+
"requires": {
|
|
31
|
+
"vitest": ">=4.0.0"
|
|
32
|
+
},
|
|
33
|
+
"description": "Create AI Instructions to help migrate users workspaces past breaking changes for Vitest 4.",
|
|
34
|
+
"implementation": "./src/migrations/update-22-2-0/create-ai-instructions-for-vitest-4"
|
|
35
|
+
},
|
|
36
|
+
"migrate-vitest-to-vitest-package": {
|
|
37
|
+
"version": "22.2.0-beta.2",
|
|
38
|
+
"description": "Migrate Vitest usage from @nx/vite to @nx/vitest package.",
|
|
39
|
+
"implementation": "./src/migrations/update-22-2-0/migrate-vitest-to-vitest-package"
|
|
110
40
|
}
|
|
111
|
-
},
|
|
112
|
-
"incompatibleWith": {
|
|
113
|
-
"@remix-run/dev": "*"
|
|
114
|
-
}
|
|
115
41
|
},
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
42
|
+
"packageJsonUpdates": {
|
|
43
|
+
"20.7.1": {
|
|
44
|
+
"version": "20.7.1-beta.0",
|
|
45
|
+
"packages": {
|
|
46
|
+
"@analogjs/vite-plugin-angular": {
|
|
47
|
+
"version": "~1.14.1",
|
|
48
|
+
"alwaysAddToPackageJson": false
|
|
49
|
+
},
|
|
50
|
+
"@analogjs/vitest-angular": {
|
|
51
|
+
"version": "~1.14.1",
|
|
52
|
+
"alwaysAddToPackageJson": false
|
|
53
|
+
}
|
|
54
|
+
}
|
|
125
55
|
},
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
56
|
+
"20.5.0": {
|
|
57
|
+
"version": "20.5.0-beta.3",
|
|
58
|
+
"packages": {
|
|
59
|
+
"vite": {
|
|
60
|
+
"version": "^6.0.0",
|
|
61
|
+
"alwaysAddToPackageJson": false
|
|
62
|
+
},
|
|
63
|
+
"vite-plugin-dts": {
|
|
64
|
+
"version": "~4.5.0",
|
|
65
|
+
"alwaysAddToPackageJson": false
|
|
66
|
+
}
|
|
67
|
+
}
|
|
129
68
|
},
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
69
|
+
"21.1.2": {
|
|
70
|
+
"version": "21.1.2-beta.0",
|
|
71
|
+
"packages": {
|
|
72
|
+
"@analogjs/vitest-angular": {
|
|
73
|
+
"version": "~1.16.1",
|
|
74
|
+
"alwaysAddToPackageJson": false
|
|
75
|
+
}
|
|
76
|
+
}
|
|
133
77
|
},
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
78
|
+
"21.2.0": {
|
|
79
|
+
"version": "21.2.0-beta.3",
|
|
80
|
+
"packages": {
|
|
81
|
+
"@analogjs/vite-plugin-angular": {
|
|
82
|
+
"version": "~1.17.1",
|
|
83
|
+
"alwaysAddToPackageJson": false
|
|
84
|
+
},
|
|
85
|
+
"@analogjs/vitest-angular": {
|
|
86
|
+
"version": "~1.17.1",
|
|
87
|
+
"alwaysAddToPackageJson": false
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"21.3.0": {
|
|
92
|
+
"version": "21.3.0-beta.3",
|
|
93
|
+
"packages": {
|
|
94
|
+
"@analogjs/vite-plugin-angular": {
|
|
95
|
+
"version": "~1.19.1",
|
|
96
|
+
"alwaysAddToPackageJson": false
|
|
97
|
+
},
|
|
98
|
+
"@analogjs/vitest-angular": {
|
|
99
|
+
"version": "~1.19.1",
|
|
100
|
+
"alwaysAddToPackageJson": false
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"21.5.0": {
|
|
105
|
+
"version": "21.5.0-beta.0",
|
|
106
|
+
"packages": {
|
|
107
|
+
"vite": {
|
|
108
|
+
"version": "^7.1.3",
|
|
109
|
+
"alwaysAddToPackageJson": false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"incompatibleWith": {
|
|
113
|
+
"@remix-run/dev": "*"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"22.2.0": {
|
|
117
|
+
"version": "22.2.0-beta.1",
|
|
118
|
+
"requires": {
|
|
119
|
+
"vitest": ">=3.0.0"
|
|
120
|
+
},
|
|
121
|
+
"packages": {
|
|
122
|
+
"vitest": {
|
|
123
|
+
"version": "^4.0.0",
|
|
124
|
+
"alwaysAddToPackageJson": false
|
|
125
|
+
},
|
|
126
|
+
"@vitest/coverage-v8": {
|
|
127
|
+
"version": "^4.0.0",
|
|
128
|
+
"alwaysAddToPackageJson": false
|
|
129
|
+
},
|
|
130
|
+
"@vitest/coverage-istanbul": {
|
|
131
|
+
"version": "^4.0.0",
|
|
132
|
+
"alwaysAddToPackageJson": false
|
|
133
|
+
},
|
|
134
|
+
"@vitest/ui": {
|
|
135
|
+
"version": "^4.0.0",
|
|
136
|
+
"alwaysAddToPackageJson": false
|
|
137
|
+
}
|
|
138
|
+
}
|
|
146
139
|
},
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
"22.2.0-analog": {
|
|
141
|
+
"version": "22.2.0-beta.3",
|
|
142
|
+
"packages": {
|
|
143
|
+
"@analogjs/vite-plugin-angular": {
|
|
144
|
+
"version": "~2.1.2",
|
|
145
|
+
"alwaysAddToPackageJson": false
|
|
146
|
+
},
|
|
147
|
+
"@analogjs/vitest-angular": {
|
|
148
|
+
"version": "~2.1.2",
|
|
149
|
+
"alwaysAddToPackageJson": false
|
|
150
|
+
}
|
|
151
|
+
}
|
|
150
152
|
}
|
|
151
|
-
}
|
|
152
153
|
}
|
|
153
|
-
}
|
|
154
154
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vite",
|
|
3
|
-
"version": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for building and testing applications using Vite",
|
|
6
6
|
"repository": {
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"migrations": "./migrations.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@nx/devkit": "22.7.0-beta.
|
|
34
|
+
"@nx/devkit": "22.7.0-beta.9",
|
|
35
35
|
"@phenomnomnominal/tsquery": "~6.1.4",
|
|
36
36
|
"enquirer": "~2.3.6",
|
|
37
|
-
"@nx/js": "22.7.0-beta.
|
|
38
|
-
"@nx/vitest": "22.7.0-beta.
|
|
39
|
-
"picomatch": "4.0.
|
|
37
|
+
"@nx/js": "22.7.0-beta.9",
|
|
38
|
+
"@nx/vitest": "22.7.0-beta.9",
|
|
39
|
+
"picomatch": "4.0.4",
|
|
40
40
|
"tsconfig-paths": "^4.1.2",
|
|
41
41
|
"semver": "^7.6.3",
|
|
42
42
|
"tslib": "^2.3.0",
|
|
43
43
|
"ajv": "^8.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"nx": "22.7.0-beta.
|
|
46
|
+
"nx": "22.7.0-beta.9"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
|
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"name": "Default minimum setup",
|
|
11
|
-
"keys": []
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"properties": {
|
|
15
|
-
"outputPath": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "The output path of the generated files.",
|
|
18
|
-
"x-completion-type": "directory",
|
|
19
|
-
"x-priority": "important"
|
|
20
|
-
},
|
|
21
|
-
"buildLibsFromSource": {
|
|
22
|
-
"type": "boolean",
|
|
23
|
-
"description": "Read buildable libraries from source instead of building them separately.",
|
|
24
|
-
"default": true
|
|
25
|
-
},
|
|
26
|
-
"skipTypeCheck": {
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"description": "Skip type-checking via TypeScript. Skipping type-checking speeds up the build but type errors are not caught.",
|
|
29
|
-
"default": false
|
|
30
|
-
},
|
|
31
|
-
"tsConfig": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"description": "The path to custom tsconfig file for type-checking when skipTypeCheck is false. Required when tsconfig file is not at the projectRoot level.",
|
|
34
|
-
"x-completion-type": "file",
|
|
35
|
-
"x-completion-glob": "tsconfig.*.json"
|
|
36
|
-
},
|
|
37
|
-
"configFile": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"description": "The name of the Vite configuration file.",
|
|
40
|
-
"x-completion-type": "file",
|
|
41
|
-
"x-completion-glob": "vite.config.@(js|ts)"
|
|
42
|
-
},
|
|
43
|
-
"watch": {
|
|
44
|
-
"description": "Enable re-building when files change.",
|
|
45
|
-
"oneOf": [
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "Vite Prod Builder",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"description": "Builds a Vite application for production.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"presets": [
|
|
46
9
|
{
|
|
47
|
-
|
|
10
|
+
"name": "Default minimum setup",
|
|
11
|
+
"keys": []
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"outputPath": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The output path of the generated files.",
|
|
18
|
+
"x-completion-type": "directory",
|
|
19
|
+
"x-priority": "important"
|
|
48
20
|
},
|
|
49
|
-
{
|
|
50
|
-
|
|
21
|
+
"buildLibsFromSource": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "Read buildable libraries from source instead of building them separately.",
|
|
24
|
+
"default": true
|
|
25
|
+
},
|
|
26
|
+
"skipTypeCheck": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Skip type-checking via TypeScript. Skipping type-checking speeds up the build but type errors are not caught.",
|
|
29
|
+
"default": false
|
|
30
|
+
},
|
|
31
|
+
"tsConfig": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The path to custom tsconfig file for type-checking when skipTypeCheck is false. Required when tsconfig file is not at the projectRoot level.",
|
|
34
|
+
"x-completion-type": "file",
|
|
35
|
+
"x-completion-glob": "tsconfig.*.json"
|
|
36
|
+
},
|
|
37
|
+
"configFile": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "The name of the Vite configuration file.",
|
|
40
|
+
"x-completion-type": "file",
|
|
41
|
+
"x-completion-glob": "vite.config.@(js|ts)"
|
|
42
|
+
},
|
|
43
|
+
"watch": {
|
|
44
|
+
"description": "Enable re-building when files change.",
|
|
45
|
+
"oneOf": [
|
|
46
|
+
{
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "object"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"default": false
|
|
54
|
+
},
|
|
55
|
+
"generatePackageJson": {
|
|
56
|
+
"description": "Generate a package.json for the build output.",
|
|
57
|
+
"type": "boolean"
|
|
58
|
+
},
|
|
59
|
+
"includeDevDependenciesInPackageJson": {
|
|
60
|
+
"description": "Include devDependencies in the generated package.json.",
|
|
61
|
+
"type": "boolean"
|
|
62
|
+
},
|
|
63
|
+
"skipOverrides": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "Do not add a `overrides` and `resolutions` entries to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
66
|
+
},
|
|
67
|
+
"skipPackageManager": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "Do not add a `packageManager` entry to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
70
|
+
},
|
|
71
|
+
"useEnvironmentsApi": {
|
|
72
|
+
"alias": "app",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"description": "Use the new Environments API for building multiple environments at once. Only works with Vite 6.0.0 or higher.",
|
|
75
|
+
"default": false
|
|
51
76
|
}
|
|
52
|
-
],
|
|
53
|
-
"default": false
|
|
54
|
-
},
|
|
55
|
-
"generatePackageJson": {
|
|
56
|
-
"description": "Generate a package.json for the build output.",
|
|
57
|
-
"type": "boolean"
|
|
58
|
-
},
|
|
59
|
-
"includeDevDependenciesInPackageJson": {
|
|
60
|
-
"description": "Include devDependencies in the generated package.json.",
|
|
61
|
-
"type": "boolean"
|
|
62
|
-
},
|
|
63
|
-
"skipOverrides": {
|
|
64
|
-
"type": "boolean",
|
|
65
|
-
"description": "Do not add a `overrides` and `resolutions` entries to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
66
|
-
},
|
|
67
|
-
"skipPackageManager": {
|
|
68
|
-
"type": "boolean",
|
|
69
|
-
"description": "Do not add a `packageManager` entry to the generated package.json file. Only works in conjunction with `generatePackageJson` option."
|
|
70
77
|
},
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"description": "Use the new Environments API for building multiple environments at once. Only works with Vite 6.0.0 or higher.",
|
|
75
|
-
"default": false
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"definitions": {},
|
|
79
|
-
"required": [],
|
|
80
|
-
"examplesFile": "../../../docs/build-examples.md"
|
|
78
|
+
"definitions": {},
|
|
79
|
+
"required": [],
|
|
80
|
+
"examplesFile": "../../../docs/build-examples.md"
|
|
81
81
|
}
|