@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.
@@ -1,39 +1,39 @@
1
1
  {
2
- "version": 2,
3
- "continuous": true,
4
- "outputCapture": "direct-nodejs",
5
- "title": "Vite Dev Server",
6
- "cli": "nx",
7
- "description": "Starts a dev server using Vite.",
8
- "type": "object",
9
- "presets": [
10
- {
11
- "name": "Default minimum setup",
12
- "keys": ["buildTarget"]
2
+ "version": 2,
3
+ "continuous": true,
4
+ "outputCapture": "direct-nodejs",
5
+ "title": "Vite Dev Server",
6
+ "cli": "nx",
7
+ "description": "Starts a dev server using Vite.",
8
+ "type": "object",
9
+ "presets": [
10
+ {
11
+ "name": "Default minimum setup",
12
+ "keys": ["buildTarget"]
13
+ },
14
+ {
15
+ "name": "Using a Different Port",
16
+ "keys": ["buildTarget", "port"]
17
+ }
18
+ ],
19
+ "properties": {
20
+ "buildTarget": {
21
+ "type": "string",
22
+ "description": "Target which builds the application. Only used to retrieve the configuration as the dev-server does not build the code.",
23
+ "x-priority": "important"
24
+ },
25
+ "buildLibsFromSource": {
26
+ "type": "boolean",
27
+ "description": "Read buildable libraries from source instead of building them separately.",
28
+ "default": true
29
+ },
30
+ "proxyConfig": {
31
+ "type": "string",
32
+ "description": "Path to the proxy configuration file.",
33
+ "x-completion-type": "file"
34
+ }
13
35
  },
14
- {
15
- "name": "Using a Different Port",
16
- "keys": ["buildTarget", "port"]
17
- }
18
- ],
19
- "properties": {
20
- "buildTarget": {
21
- "type": "string",
22
- "description": "Target which builds the application. Only used to retrieve the configuration as the dev-server does not build the code.",
23
- "x-priority": "important"
24
- },
25
- "buildLibsFromSource": {
26
- "type": "boolean",
27
- "description": "Read buildable libraries from source instead of building them separately.",
28
- "default": true
29
- },
30
- "proxyConfig": {
31
- "type": "string",
32
- "description": "Path to the proxy configuration file.",
33
- "x-completion-type": "file"
34
- }
35
- },
36
- "definitions": {},
37
- "required": ["buildTarget"],
38
- "examplesFile": "../../../docs/dev-server-examples.md"
36
+ "definitions": {},
37
+ "required": ["buildTarget"],
38
+ "examplesFile": "../../../docs/dev-server-examples.md"
39
39
  }
@@ -1,43 +1,43 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "cli": "nx",
5
- "title": "Vite Preview Server",
6
- "description": "Preview Server for Vite.",
7
- "continuous": true,
8
- "type": "object",
9
- "presets": [
10
- {
11
- "name": "Default minimum setup",
12
- "keys": ["buildTarget"]
2
+ "$schema": "https://json-schema.org/schema",
3
+ "version": 2,
4
+ "cli": "nx",
5
+ "title": "Vite Preview Server",
6
+ "description": "Preview Server for Vite.",
7
+ "continuous": true,
8
+ "type": "object",
9
+ "presets": [
10
+ {
11
+ "name": "Default minimum setup",
12
+ "keys": ["buildTarget"]
13
+ },
14
+ {
15
+ "name": "Using a Different Port",
16
+ "keys": ["buildTarget", "port"]
17
+ }
18
+ ],
19
+ "properties": {
20
+ "buildTarget": {
21
+ "type": "string",
22
+ "description": "Target which builds the application."
23
+ },
24
+ "proxyConfig": {
25
+ "type": "string",
26
+ "description": "Path to the proxy configuration file.",
27
+ "x-completion-type": "file"
28
+ },
29
+ "staticFilePath": {
30
+ "type": "string",
31
+ "description": "Path where the build artifacts are located. If not provided then it will be infered from the buildTarget executor options as outputPath",
32
+ "x-completion-type": "directory"
33
+ },
34
+ "watch": {
35
+ "type": "boolean",
36
+ "description": "Enable re-building when files change. If not specified, watch mode will be enabled by default.",
37
+ "default": true
38
+ }
13
39
  },
14
- {
15
- "name": "Using a Different Port",
16
- "keys": ["buildTarget", "port"]
17
- }
18
- ],
19
- "properties": {
20
- "buildTarget": {
21
- "type": "string",
22
- "description": "Target which builds the application."
23
- },
24
- "proxyConfig": {
25
- "type": "string",
26
- "description": "Path to the proxy configuration file.",
27
- "x-completion-type": "file"
28
- },
29
- "staticFilePath": {
30
- "type": "string",
31
- "description": "Path where the build artifacts are located. If not provided then it will be infered from the buildTarget executor options as outputPath",
32
- "x-completion-type": "directory"
33
- },
34
- "watch": {
35
- "type": "boolean",
36
- "description": "Enable re-building when files change. If not specified, watch mode will be enabled by default.",
37
- "default": true
38
- }
39
- },
40
- "definitions": {},
41
- "required": ["buildTarget"],
42
- "examplesFile": "../../../docs/preview-server-examples.md"
40
+ "definitions": {},
41
+ "required": ["buildTarget"],
42
+ "examplesFile": "../../../docs/preview-server-examples.md"
43
43
  }
@@ -1,36 +1,36 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "cli": "nx",
5
- "title": "Vitest executor",
6
- "description": "Test using Vitest.",
7
- "type": "object",
8
- "properties": {
9
- "configFile": {
10
- "type": "string",
11
- "description": "The path to the local vitest config, relative to the workspace root.",
12
- "x-completion-type": "file",
13
- "x-completion-glob": "@(vitest|vite).config@(.js|.ts)",
14
- "aliases": ["config"]
2
+ "$schema": "https://json-schema.org/schema",
3
+ "version": 2,
4
+ "cli": "nx",
5
+ "title": "Vitest executor",
6
+ "description": "Test using Vitest.",
7
+ "type": "object",
8
+ "properties": {
9
+ "configFile": {
10
+ "type": "string",
11
+ "description": "The path to the local vitest config, relative to the workspace root.",
12
+ "x-completion-type": "file",
13
+ "x-completion-glob": "@(vitest|vite).config@(.js|.ts)",
14
+ "aliases": ["config"]
15
+ },
16
+ "reportsDirectory": {
17
+ "type": "string",
18
+ "description": "Directory to write coverage report to."
19
+ },
20
+ "mode": {
21
+ "type": "string",
22
+ "description": "Mode for Vite."
23
+ },
24
+ "testFiles": {
25
+ "aliases": ["testFile"],
26
+ "type": "array",
27
+ "items": { "type": "string" }
28
+ },
29
+ "watch": {
30
+ "description": "Watch files for changes and rerun tests related to changed files.",
31
+ "type": "boolean"
32
+ }
15
33
  },
16
- "reportsDirectory": {
17
- "type": "string",
18
- "description": "Directory to write coverage report to."
19
- },
20
- "mode": {
21
- "type": "string",
22
- "description": "Mode for Vite."
23
- },
24
- "testFiles": {
25
- "aliases": ["testFile"],
26
- "type": "array",
27
- "items": { "type": "string" }
28
- },
29
- "watch": {
30
- "description": "Watch files for changes and rerun tests related to changed files.",
31
- "type": "boolean"
32
- }
33
- },
34
- "required": [],
35
- "examplesFile": "../../../docs/test-examples.md"
34
+ "required": [],
35
+ "examplesFile": "../../../docs/test-examples.md"
36
36
  }
@@ -13,4 +13,5 @@ export interface ViteConfigurationGeneratorSchema {
13
13
  addPlugin?: boolean;
14
14
  projectType?: 'application' | 'library';
15
15
  previewPort?: number;
16
+ useViteV7?: boolean;
16
17
  }
@@ -1,65 +1,65 @@
1
1
  {
2
- "cli": "nx",
3
- "title": "Configure a project to use Vite.",
4
- "description": "Configure a project to use Vite.",
5
- "$id": "configure-vite-project",
6
- "type": "object",
7
- "properties": {
8
- "project": {
9
- "type": "string",
10
- "description": "The name of the project.",
11
- "$default": {
12
- "$source": "argv",
13
- "index": 0
14
- },
15
- "aliases": ["name", "projectName"],
16
- "x-dropdown": "project",
17
- "x-prompt": "What is the name of the project to set up Vite for?"
2
+ "cli": "nx",
3
+ "title": "Configure a project to use Vite.",
4
+ "description": "Configure a project to use Vite.",
5
+ "$id": "configure-vite-project",
6
+ "type": "object",
7
+ "properties": {
8
+ "project": {
9
+ "type": "string",
10
+ "description": "The name of the project.",
11
+ "$default": {
12
+ "$source": "argv",
13
+ "index": 0
14
+ },
15
+ "aliases": ["name", "projectName"],
16
+ "x-dropdown": "project",
17
+ "x-prompt": "What is the name of the project to set up Vite for?"
18
+ },
19
+ "includeLib": {
20
+ "type": "boolean",
21
+ "description": "Add a library build option and skip the server option.",
22
+ "hidden": true
23
+ },
24
+ "includeVitest": {
25
+ "type": "boolean",
26
+ "description": "Use vitest for the test suite."
27
+ },
28
+ "uiFramework": {
29
+ "type": "string",
30
+ "description": "UI Framework to use for Vite.",
31
+ "enum": ["react", "none"],
32
+ "default": "none",
33
+ "x-prompt": "What UI framework plugin should Vite use?"
34
+ },
35
+ "compiler": {
36
+ "type": "string",
37
+ "description": "Compiler to use for Vite when UI Framework is React.",
38
+ "enum": ["babel", "swc"],
39
+ "default": "babel"
40
+ },
41
+ "newProject": {
42
+ "type": "boolean",
43
+ "description": "Is this a new project?",
44
+ "default": false,
45
+ "hidden": true
46
+ },
47
+ "skipFormat": {
48
+ "description": "Skip formatting files.",
49
+ "type": "boolean",
50
+ "default": false,
51
+ "x-priority": "internal"
52
+ },
53
+ "testEnvironment": {
54
+ "description": "The vitest environment to use. See https://vitest.dev/config/#environment.",
55
+ "type": "string",
56
+ "enum": ["node", "jsdom", "happy-dom", "edge-runtime"],
57
+ "default": "jsdom"
58
+ },
59
+ "port": {
60
+ "type": "number",
61
+ "description": "The port to use for the development server"
62
+ }
18
63
  },
19
- "includeLib": {
20
- "type": "boolean",
21
- "description": "Add a library build option and skip the server option.",
22
- "hidden": true
23
- },
24
- "includeVitest": {
25
- "type": "boolean",
26
- "description": "Use vitest for the test suite."
27
- },
28
- "uiFramework": {
29
- "type": "string",
30
- "description": "UI Framework to use for Vite.",
31
- "enum": ["react", "none"],
32
- "default": "none",
33
- "x-prompt": "What UI framework plugin should Vite use?"
34
- },
35
- "compiler": {
36
- "type": "string",
37
- "description": "Compiler to use for Vite when UI Framework is React.",
38
- "enum": ["babel", "swc"],
39
- "default": "babel"
40
- },
41
- "newProject": {
42
- "type": "boolean",
43
- "description": "Is this a new project?",
44
- "default": false,
45
- "hidden": true
46
- },
47
- "skipFormat": {
48
- "description": "Skip formatting files.",
49
- "type": "boolean",
50
- "default": false,
51
- "x-priority": "internal"
52
- },
53
- "testEnvironment": {
54
- "description": "The vitest environment to use. See https://vitest.dev/config/#environment.",
55
- "type": "string",
56
- "enum": ["node", "jsdom", "happy-dom", "edge-runtime"],
57
- "default": "jsdom"
58
- },
59
- "port": {
60
- "type": "number",
61
- "description": "The port to use for the development server"
62
- }
63
- },
64
- "examplesFile": "../../../docs/configuration-examples.md"
64
+ "examplesFile": "../../../docs/configuration-examples.md"
65
65
  }
@@ -1,19 +1,19 @@
1
1
  {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "NxViteConvertToInferred",
4
- "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.",
5
- "title": "Convert Vite project from executor to plugin",
6
- "type": "object",
7
- "properties": {
8
- "project": {
9
- "type": "string",
10
- "description": "The project to convert from using the `@nx/vite:*` executors to use `@nx/vite/plugin`.",
11
- "x-priority": "important"
12
- },
13
- "skipFormat": {
14
- "type": "boolean",
15
- "description": "Whether to format files at the end of the migration.",
16
- "default": false
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "NxViteConvertToInferred",
4
+ "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.",
5
+ "title": "Convert Vite project from executor to plugin",
6
+ "type": "object",
7
+ "properties": {
8
+ "project": {
9
+ "type": "string",
10
+ "description": "The project to convert from using the `@nx/vite:*` executors to use `@nx/vite/plugin`.",
11
+ "x-priority": "important"
12
+ },
13
+ "skipFormat": {
14
+ "type": "boolean",
15
+ "description": "Whether to format files at the end of the migration.",
16
+ "default": false
17
+ }
17
18
  }
18
- }
19
19
  }
@@ -1,57 +1,57 @@
1
1
  {
2
- "cli": "nx",
3
- "title": "Initialize Vite in the workspace.",
4
- "description": "Initialize Vite in the workspace.",
5
- "$id": "init-vite-plugin",
6
- "type": "object",
7
- "properties": {
8
- "skipFormat": {
9
- "description": "Skip formatting files.",
10
- "type": "boolean",
11
- "default": false
12
- },
13
- "skipPackageJson": {
14
- "description": "Do not add dependencies to `package.json`.",
15
- "type": "boolean",
16
- "default": false
17
- },
18
- "setupPathsPlugin": {
19
- "type": "boolean",
20
- "description": "Updates vite config files to enable support for workspace libraries via the nxViteTsPaths plugin.",
21
- "default": false
22
- },
23
- "keepExistingVersions": {
24
- "type": "boolean",
25
- "x-priority": "internal",
26
- "description": "Keep existing dependencies versions",
27
- "default": false
28
- },
29
- "updatePackageScripts": {
30
- "type": "boolean",
31
- "x-priority": "internal",
32
- "description": "Update `package.json` scripts with inferred targets",
33
- "default": false
34
- },
35
- "useViteV5": {
36
- "type": "boolean",
37
- "description": "Use Vite v5",
38
- "default": false,
39
- "x-priority": "internal",
40
- "hidden": true
41
- },
42
- "useViteV6": {
43
- "type": "boolean",
44
- "description": "Use Vite v6",
45
- "default": false,
46
- "x-priority": "internal",
47
- "hidden": true
48
- },
49
- "useViteV7": {
50
- "type": "boolean",
51
- "description": "Use Vite v7",
52
- "default": false,
53
- "x-priority": "internal",
54
- "hidden": true
2
+ "cli": "nx",
3
+ "title": "Initialize Vite in the workspace.",
4
+ "description": "Initialize Vite in the workspace.",
5
+ "$id": "init-vite-plugin",
6
+ "type": "object",
7
+ "properties": {
8
+ "skipFormat": {
9
+ "description": "Skip formatting files.",
10
+ "type": "boolean",
11
+ "default": false
12
+ },
13
+ "skipPackageJson": {
14
+ "description": "Do not add dependencies to `package.json`.",
15
+ "type": "boolean",
16
+ "default": false
17
+ },
18
+ "setupPathsPlugin": {
19
+ "type": "boolean",
20
+ "description": "Updates vite config files to enable support for workspace libraries via the nxViteTsPaths plugin.",
21
+ "default": false
22
+ },
23
+ "keepExistingVersions": {
24
+ "type": "boolean",
25
+ "x-priority": "internal",
26
+ "description": "Keep existing dependencies versions",
27
+ "default": false
28
+ },
29
+ "updatePackageScripts": {
30
+ "type": "boolean",
31
+ "x-priority": "internal",
32
+ "description": "Update `package.json` scripts with inferred targets",
33
+ "default": false
34
+ },
35
+ "useViteV5": {
36
+ "type": "boolean",
37
+ "description": "Use Vite v5",
38
+ "default": false,
39
+ "x-priority": "internal",
40
+ "hidden": true
41
+ },
42
+ "useViteV6": {
43
+ "type": "boolean",
44
+ "description": "Use Vite v6",
45
+ "default": false,
46
+ "x-priority": "internal",
47
+ "hidden": true
48
+ },
49
+ "useViteV7": {
50
+ "type": "boolean",
51
+ "description": "Use Vite v7",
52
+ "default": false,
53
+ "x-priority": "internal",
54
+ "hidden": true
55
+ }
55
56
  }
56
- }
57
57
  }
@@ -1,14 +1,14 @@
1
1
  {
2
- "cli": "nx",
3
- "title": "Sets up the nxViteTsPaths plugin.",
4
- "description": "Updates vite config files to enable support for workspace libraries via the nxViteTsPaths plugin.",
5
- "$id": "setup-paths-plugin-vite-plugin",
6
- "type": "object",
7
- "properties": {
8
- "skipFormat": {
9
- "description": "Skip formatting files.",
10
- "type": "boolean",
11
- "default": false
2
+ "cli": "nx",
3
+ "title": "Sets up the nxViteTsPaths plugin.",
4
+ "description": "Updates vite config files to enable support for workspace libraries via the nxViteTsPaths plugin.",
5
+ "$id": "setup-paths-plugin-vite-plugin",
6
+ "type": "object",
7
+ "properties": {
8
+ "skipFormat": {
9
+ "description": "Skip formatting files.",
10
+ "type": "boolean",
11
+ "default": false
12
+ }
12
13
  }
13
- }
14
14
  }