@nx/web 22.7.0-beta.8 → 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 +13 -13
- package/generators.json +22 -22
- package/migrations.json +2 -2
- package/package.json +5 -5
- package/src/executors/file-server/schema.json +102 -102
- package/src/generators/application/files/app-vite/tsconfig.app.json +7 -7
- package/src/generators/application/files/app-webpack/tsconfig.app.json +7 -7
- package/src/generators/application/files/app-webpack/tsconfig.json +8 -8
- package/src/generators/application/schema.json +112 -112
- package/src/generators/init/schema.json +25 -25
- package/src/generators/static-serve/schema.json +26 -26
package/executors.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"builders": {
|
|
3
|
+
"file-server": {
|
|
4
|
+
"implementation": "./src/executors/file-server/compat",
|
|
5
|
+
"schema": "./src/executors/file-server/schema.json",
|
|
6
|
+
"description": "Serve a web application from a folder."
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"executors": {
|
|
10
|
+
"file-server": {
|
|
11
|
+
"implementation": "./src/executors/file-server/file-server.impl",
|
|
12
|
+
"schema": "./src/executors/file-server/schema.json",
|
|
13
|
+
"description": "Serve a web application from a folder."
|
|
14
|
+
}
|
|
7
15
|
}
|
|
8
|
-
},
|
|
9
|
-
"executors": {
|
|
10
|
-
"file-server": {
|
|
11
|
-
"implementation": "./src/executors/file-server/file-server.impl",
|
|
12
|
-
"schema": "./src/executors/file-server/schema.json",
|
|
13
|
-
"description": "Serve a web application from a folder."
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
16
|
}
|
package/generators.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
"name": "nx/web",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"extends": ["@nx/workspace"],
|
|
5
|
+
"generators": {
|
|
6
|
+
"init": {
|
|
7
|
+
"factory": "./src/generators/init/init#webInitGenerator",
|
|
8
|
+
"schema": "./src/generators/init/schema.json",
|
|
9
|
+
"description": "Add `@nrwl/web` to a project.",
|
|
10
|
+
"hidden": true
|
|
11
|
+
},
|
|
12
|
+
"application": {
|
|
13
|
+
"factory": "./src/generators/application/application#applicationGeneratorInternal",
|
|
14
|
+
"schema": "./src/generators/application/schema.json",
|
|
15
|
+
"aliases": ["app"],
|
|
16
|
+
"x-type": "application",
|
|
17
|
+
"description": "Create an web application."
|
|
18
|
+
},
|
|
19
|
+
"static-config": {
|
|
20
|
+
"factory": "./src/generators/static-serve/static-serve-configuration",
|
|
21
|
+
"schema": "./src/generators/static-serve/schema.json",
|
|
22
|
+
"description": "Add a new static-serve target to a project."
|
|
23
|
+
}
|
|
23
24
|
}
|
|
24
|
-
}
|
|
25
25
|
}
|
package/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/web",
|
|
3
|
-
"version": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Web Components contains generators for managing Web Component applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Playwright, Cypress, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"http-server": "^14.1.0",
|
|
37
37
|
"picocolors": "^1.1.0",
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
|
-
"@nx/devkit": "22.7.0-beta.
|
|
40
|
-
"@nx/js": "22.7.0-beta.
|
|
39
|
+
"@nx/devkit": "22.7.0-beta.9",
|
|
40
|
+
"@nx/js": "22.7.0-beta.9"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"nx": "22.7.0-beta.
|
|
44
|
-
"@nx/vitest": "22.7.0-beta.
|
|
43
|
+
"nx": "22.7.0-beta.9",
|
|
44
|
+
"@nx/vitest": "22.7.0-beta.9"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
@@ -1,107 +1,107 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
"port": {
|
|
24
|
-
"type": "number",
|
|
25
|
-
"description": "Port to listen on.",
|
|
26
|
-
"default": 4200
|
|
27
|
-
},
|
|
28
|
-
"host": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Host to listen on.",
|
|
31
|
-
"default": "localhost"
|
|
32
|
-
},
|
|
33
|
-
"ssl": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"description": "Serve using `HTTPS`.",
|
|
36
|
-
"default": false
|
|
37
|
-
},
|
|
38
|
-
"sslKey": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "SSL key to use for serving `HTTPS`."
|
|
41
|
-
},
|
|
42
|
-
"sslCert": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"description": "SSL certificate to use for serving `HTTPS`."
|
|
45
|
-
},
|
|
46
|
-
"proxyUrl": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "URL to proxy unhandled requests to. _Note: If the 'spa' flag is set to true, manually setting this value will override the catch-all redirect functionality from http-server which may lead to unexpected behavior._"
|
|
49
|
-
},
|
|
50
|
-
"proxyOptions": {
|
|
51
|
-
"type": "object",
|
|
52
|
-
"description": "Options for the proxy used by `http-server`.",
|
|
53
|
-
"default": {},
|
|
54
|
-
"properties": {
|
|
55
|
-
"secure": {
|
|
56
|
-
"type": "boolean",
|
|
57
|
-
"default": false
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"additionalProperties": true
|
|
61
|
-
},
|
|
62
|
-
"watch": {
|
|
63
|
-
"type": "boolean",
|
|
64
|
-
"description": "Watch for file changes.",
|
|
65
|
-
"default": true
|
|
66
|
-
},
|
|
67
|
-
"spa": {
|
|
68
|
-
"type": "boolean",
|
|
69
|
-
"description": "Redirect 404 errors to index.html (useful for SPA's)",
|
|
70
|
-
"default": false,
|
|
71
|
-
"x-priority": "important"
|
|
72
|
-
},
|
|
73
|
-
"staticFilePath": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"description": "Path where the build artifacts are located. If not provided then it will be infered from the buildTarget executor options as outputPath"
|
|
76
|
-
},
|
|
77
|
-
"cors": {
|
|
78
|
-
"oneOf": [
|
|
79
|
-
{
|
|
80
|
-
"type": "boolean"
|
|
2
|
+
"version": 2,
|
|
3
|
+
"continuous": true,
|
|
4
|
+
"outputCapture": "direct-nodejs",
|
|
5
|
+
"title": "File Server",
|
|
6
|
+
"description": "Serve a web application from a folder. This executor is a wrapper around the [http-server](https://www.npmjs.com/package/http-server) package.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"cli": "nx",
|
|
9
|
+
"properties": {
|
|
10
|
+
"buildTarget": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Target which builds the application."
|
|
13
|
+
},
|
|
14
|
+
"parallel": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "Build the target in parallel.",
|
|
17
|
+
"default": true
|
|
18
|
+
},
|
|
19
|
+
"maxParallel": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"description": "Max number of parallel jobs."
|
|
81
22
|
},
|
|
82
|
-
{
|
|
83
|
-
|
|
23
|
+
"port": {
|
|
24
|
+
"type": "number",
|
|
25
|
+
"description": "Port to listen on.",
|
|
26
|
+
"default": 4200
|
|
27
|
+
},
|
|
28
|
+
"host": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Host to listen on.",
|
|
31
|
+
"default": "localhost"
|
|
32
|
+
},
|
|
33
|
+
"ssl": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"description": "Serve using `HTTPS`.",
|
|
36
|
+
"default": false
|
|
37
|
+
},
|
|
38
|
+
"sslKey": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "SSL key to use for serving `HTTPS`."
|
|
41
|
+
},
|
|
42
|
+
"sslCert": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "SSL certificate to use for serving `HTTPS`."
|
|
45
|
+
},
|
|
46
|
+
"proxyUrl": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "URL to proxy unhandled requests to. _Note: If the 'spa' flag is set to true, manually setting this value will override the catch-all redirect functionality from http-server which may lead to unexpected behavior._"
|
|
49
|
+
},
|
|
50
|
+
"proxyOptions": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"description": "Options for the proxy used by `http-server`.",
|
|
53
|
+
"default": {},
|
|
54
|
+
"properties": {
|
|
55
|
+
"secure": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": true
|
|
61
|
+
},
|
|
62
|
+
"watch": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"description": "Watch for file changes.",
|
|
65
|
+
"default": true
|
|
66
|
+
},
|
|
67
|
+
"spa": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "Redirect 404 errors to index.html (useful for SPA's)",
|
|
70
|
+
"default": false,
|
|
71
|
+
"x-priority": "important"
|
|
72
|
+
},
|
|
73
|
+
"staticFilePath": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Path where the build artifacts are located. If not provided then it will be infered from the buildTarget executor options as outputPath"
|
|
76
|
+
},
|
|
77
|
+
"cors": {
|
|
78
|
+
"oneOf": [
|
|
79
|
+
{
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"description": "Enable CORS",
|
|
87
|
+
"default": true
|
|
88
|
+
},
|
|
89
|
+
"gzip": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"description": "Enable gzip compression",
|
|
92
|
+
"default": false
|
|
93
|
+
},
|
|
94
|
+
"brotli": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"description": "Enable brotli compression",
|
|
97
|
+
"default": false
|
|
98
|
+
},
|
|
99
|
+
"cacheSeconds": {
|
|
100
|
+
"type": "number",
|
|
101
|
+
"description": "Set cache time (in seconds) for cache-control max-age header. To disable caching, use -1. Caching defaults to disabled.",
|
|
102
|
+
"default": -1
|
|
84
103
|
}
|
|
85
|
-
],
|
|
86
|
-
"description": "Enable CORS",
|
|
87
|
-
"default": true
|
|
88
|
-
},
|
|
89
|
-
"gzip": {
|
|
90
|
-
"type": "boolean",
|
|
91
|
-
"description": "Enable gzip compression",
|
|
92
|
-
"default": false
|
|
93
|
-
},
|
|
94
|
-
"brotli": {
|
|
95
|
-
"type": "boolean",
|
|
96
|
-
"description": "Enable brotli compression",
|
|
97
|
-
"default": false
|
|
98
104
|
},
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
"description": "Set cache time (in seconds) for cache-control max-age header. To disable caching, use -1. Caching defaults to disabled.",
|
|
102
|
-
"default": -1
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"additionalProperties": true,
|
|
106
|
-
"examplesFile": "../../../docs/file-server-examples.md"
|
|
105
|
+
"additionalProperties": true,
|
|
106
|
+
"examplesFile": "../../../docs/file-server-examples.md"
|
|
107
107
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "<%= offsetFromRoot %>dist/out-tsc",
|
|
5
|
+
"types": ["node"]
|
|
6
|
+
},
|
|
7
|
+
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"],
|
|
8
|
+
"include": ["src/**/*.ts"]
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "<%= offsetFromRoot %>dist/out-tsc",
|
|
5
|
+
"types": ["node"]
|
|
6
|
+
},
|
|
7
|
+
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
|
8
|
+
"include": ["src/**/*.ts"]
|
|
9
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"extends": "<%= rootTsConfigPath %>",
|
|
3
|
+
"files": [],
|
|
4
|
+
"include": [],
|
|
5
|
+
"references": [
|
|
6
|
+
{
|
|
7
|
+
"path": "./tsconfig.app.json"
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
10
|
}
|
|
@@ -1,115 +1,115 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "NxWebApp",
|
|
5
|
+
"title": "Create a Web Application for Nx",
|
|
6
|
+
"description": "Create a web application using `swc` or `babel` as compiler.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"directory": {
|
|
10
|
+
"description": "The directory of the new application.",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-prompt": "Which directory do you want to create the application in?"
|
|
17
|
+
},
|
|
18
|
+
"name": {
|
|
19
|
+
"description": "The name of the application.",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
|
|
22
|
+
"x-priority": "important"
|
|
23
|
+
},
|
|
24
|
+
"style": {
|
|
25
|
+
"description": "The file extension to be used for style files.",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": "css",
|
|
28
|
+
"x-prompt": {
|
|
29
|
+
"message": "Which stylesheet format would you like to use?",
|
|
30
|
+
"type": "list",
|
|
31
|
+
"items": [
|
|
32
|
+
{
|
|
33
|
+
"value": "css",
|
|
34
|
+
"label": "CSS"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"value": "scss",
|
|
38
|
+
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": "less",
|
|
42
|
+
"label": "LESS [ https://lesscss.org ]"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"compiler": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "The compiler to use",
|
|
50
|
+
"enum": ["swc", "babel"],
|
|
51
|
+
"default": "swc",
|
|
52
|
+
"x-priority": "important"
|
|
53
|
+
},
|
|
54
|
+
"bundler": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "The bundler to use.",
|
|
57
|
+
"enum": ["vite", "webpack", "none"],
|
|
58
|
+
"default": "vite",
|
|
59
|
+
"x-prompt": "Which bundler do you want to use?",
|
|
60
|
+
"x-priority": "important"
|
|
61
|
+
},
|
|
62
|
+
"linter": {
|
|
63
|
+
"description": "The tool to use for running lint checks.",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": ["eslint", "none"],
|
|
66
|
+
"default": "none",
|
|
67
|
+
"x-prompt": "Which linter would you like to use?"
|
|
68
|
+
},
|
|
69
|
+
"skipFormat": {
|
|
70
|
+
"description": "Skip formatting files",
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"default": false,
|
|
73
|
+
"x-priority": "internal"
|
|
74
|
+
},
|
|
75
|
+
"unitTestRunner": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"enum": ["vitest", "jest", "none"],
|
|
78
|
+
"default": "none",
|
|
79
|
+
"description": "Test runner to use for unit tests. Default value is 'jest' when using 'webpack' or 'none' as the bundler and 'vitest' when using 'vite' as the bundler",
|
|
80
|
+
"x-prompt": "What unit test runner should be used?"
|
|
81
|
+
},
|
|
82
|
+
"inSourceTests": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"default": false,
|
|
85
|
+
"description": "When using Vitest, separate spec files will not be generated and instead will be included within the source files."
|
|
86
|
+
},
|
|
87
|
+
"e2eTestRunner": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": ["playwright", "cypress", "none"],
|
|
90
|
+
"x-prompt": "Which E2E test runner would you like to use?",
|
|
91
|
+
"description": "Test runner to use for end to end (e2e) tests",
|
|
92
|
+
"default": "playwright"
|
|
93
|
+
},
|
|
94
|
+
"tags": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Add tags to the application (used for linting)"
|
|
97
|
+
},
|
|
98
|
+
"setParserOptionsProject": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
101
|
+
"default": false
|
|
102
|
+
},
|
|
103
|
+
"strict": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"description": "Creates an application with strict mode and strict type checking.",
|
|
106
|
+
"default": true
|
|
107
|
+
},
|
|
108
|
+
"useProjectJson": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
111
|
+
}
|
|
17
112
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"type": "string",
|
|
21
|
-
"pattern": "(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$",
|
|
22
|
-
"x-priority": "important"
|
|
23
|
-
},
|
|
24
|
-
"style": {
|
|
25
|
-
"description": "The file extension to be used for style files.",
|
|
26
|
-
"type": "string",
|
|
27
|
-
"default": "css",
|
|
28
|
-
"x-prompt": {
|
|
29
|
-
"message": "Which stylesheet format would you like to use?",
|
|
30
|
-
"type": "list",
|
|
31
|
-
"items": [
|
|
32
|
-
{
|
|
33
|
-
"value": "css",
|
|
34
|
-
"label": "CSS"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"value": "scss",
|
|
38
|
-
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"value": "less",
|
|
42
|
-
"label": "LESS [ https://lesscss.org ]"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"compiler": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"description": "The compiler to use",
|
|
50
|
-
"enum": ["swc", "babel"],
|
|
51
|
-
"default": "swc",
|
|
52
|
-
"x-priority": "important"
|
|
53
|
-
},
|
|
54
|
-
"bundler": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"description": "The bundler to use.",
|
|
57
|
-
"enum": ["vite", "webpack", "none"],
|
|
58
|
-
"default": "vite",
|
|
59
|
-
"x-prompt": "Which bundler do you want to use?",
|
|
60
|
-
"x-priority": "important"
|
|
61
|
-
},
|
|
62
|
-
"linter": {
|
|
63
|
-
"description": "The tool to use for running lint checks.",
|
|
64
|
-
"type": "string",
|
|
65
|
-
"enum": ["eslint", "none"],
|
|
66
|
-
"default": "none",
|
|
67
|
-
"x-prompt": "Which linter would you like to use?"
|
|
68
|
-
},
|
|
69
|
-
"skipFormat": {
|
|
70
|
-
"description": "Skip formatting files",
|
|
71
|
-
"type": "boolean",
|
|
72
|
-
"default": false,
|
|
73
|
-
"x-priority": "internal"
|
|
74
|
-
},
|
|
75
|
-
"unitTestRunner": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"enum": ["vitest", "jest", "none"],
|
|
78
|
-
"default": "none",
|
|
79
|
-
"description": "Test runner to use for unit tests. Default value is 'jest' when using 'webpack' or 'none' as the bundler and 'vitest' when using 'vite' as the bundler",
|
|
80
|
-
"x-prompt": "What unit test runner should be used?"
|
|
81
|
-
},
|
|
82
|
-
"inSourceTests": {
|
|
83
|
-
"type": "boolean",
|
|
84
|
-
"default": false,
|
|
85
|
-
"description": "When using Vitest, separate spec files will not be generated and instead will be included within the source files."
|
|
86
|
-
},
|
|
87
|
-
"e2eTestRunner": {
|
|
88
|
-
"type": "string",
|
|
89
|
-
"enum": ["playwright", "cypress", "none"],
|
|
90
|
-
"x-prompt": "Which E2E test runner would you like to use?",
|
|
91
|
-
"description": "Test runner to use for end to end (e2e) tests",
|
|
92
|
-
"default": "playwright"
|
|
93
|
-
},
|
|
94
|
-
"tags": {
|
|
95
|
-
"type": "string",
|
|
96
|
-
"description": "Add tags to the application (used for linting)"
|
|
97
|
-
},
|
|
98
|
-
"setParserOptionsProject": {
|
|
99
|
-
"type": "boolean",
|
|
100
|
-
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
101
|
-
"default": false
|
|
102
|
-
},
|
|
103
|
-
"strict": {
|
|
104
|
-
"type": "boolean",
|
|
105
|
-
"description": "Creates an application with strict mode and strict type checking.",
|
|
106
|
-
"default": true
|
|
107
|
-
},
|
|
108
|
-
"useProjectJson": {
|
|
109
|
-
"type": "boolean",
|
|
110
|
-
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"required": ["directory"],
|
|
114
|
-
"examplesFile": "../../../docs/application-examples.md"
|
|
113
|
+
"required": ["directory"],
|
|
114
|
+
"examplesFile": "../../../docs/application-examples.md"
|
|
115
115
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxWebInit",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Init Web Plugin",
|
|
6
|
+
"description": "Init Web Plugin.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"skipFormat": {
|
|
10
|
+
"description": "Skip formatting files",
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": false
|
|
13
|
+
},
|
|
14
|
+
"skipPackageJson": {
|
|
15
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": false,
|
|
18
|
+
"x-priority": "internal"
|
|
19
|
+
},
|
|
20
|
+
"keepExistingVersions": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"x-priority": "internal",
|
|
23
|
+
"description": "Keep existing dependencies versions",
|
|
24
|
+
"default": false
|
|
25
|
+
}
|
|
13
26
|
},
|
|
14
|
-
"
|
|
15
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"default": false,
|
|
18
|
-
"x-priority": "internal"
|
|
19
|
-
},
|
|
20
|
-
"keepExistingVersions": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"x-priority": "internal",
|
|
23
|
-
"description": "Keep existing dependencies versions",
|
|
24
|
-
"default": false
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"required": []
|
|
27
|
+
"required": []
|
|
28
28
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxWebStaticServe",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Static Serve Configuration",
|
|
6
|
+
"description": "Add a new serve target to serve a build apps static files. This allows for faster serving of the static build files by reusing the case. Helpful when reserving the app over and over again like in e2e tests.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"buildTarget": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Name of the build target to serve"
|
|
12
|
+
},
|
|
13
|
+
"outputPath": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Path to the directory of the built files. This is only needed if buildTarget doesn't specify an outputPath executor option."
|
|
16
|
+
},
|
|
17
|
+
"targetName": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Name of the serve target to add. Defaults to 'serve-static'.",
|
|
20
|
+
"default": "serve-static"
|
|
21
|
+
},
|
|
22
|
+
"spa": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"description": "Whether to set the 'spa' flag on the generated target.",
|
|
25
|
+
"default": true
|
|
26
|
+
}
|
|
12
27
|
},
|
|
13
|
-
"
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "Path to the directory of the built files. This is only needed if buildTarget doesn't specify an outputPath executor option."
|
|
16
|
-
},
|
|
17
|
-
"targetName": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"description": "Name of the serve target to add. Defaults to 'serve-static'.",
|
|
20
|
-
"default": "serve-static"
|
|
21
|
-
},
|
|
22
|
-
"spa": {
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"description": "Whether to set the 'spa' flag on the generated target.",
|
|
25
|
-
"default": true
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"required": ["buildTarget"]
|
|
28
|
+
"required": ["buildTarget"]
|
|
29
29
|
}
|