@nx/web 19.2.0 → 19.2.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/web",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.1",
|
|
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": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"detect-port": "^1.5.1",
|
|
36
36
|
"http-server": "^14.1.0",
|
|
37
37
|
"tslib": "^2.3.0",
|
|
38
|
-
"@nx/devkit": "19.2.
|
|
39
|
-
"@nx/js": "19.2.
|
|
40
|
-
"@nrwl/web": "19.2.
|
|
38
|
+
"@nx/devkit": "19.2.1",
|
|
39
|
+
"@nx/js": "19.2.1",
|
|
40
|
+
"@nrwl/web": "19.2.1"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -13,32 +13,32 @@ const utils_1 = require("nx/src/tasks-runner/utils");
|
|
|
13
13
|
// platform specific command name
|
|
14
14
|
const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
|
|
15
15
|
function getHttpServerArgs(options) {
|
|
16
|
+
const { buildTarget, parallel, host, proxyUrl, ssl, sslCert, sslKey, proxyOptions, watch, spa, cacheSeconds, ...rest } = options;
|
|
16
17
|
const args = [`-c${options.cacheSeconds}`];
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
for (const [key, value] of Object.entries(rest)) {
|
|
19
|
+
if (typeof value === 'boolean' && value) {
|
|
20
|
+
args.push(`--${key}`);
|
|
21
|
+
}
|
|
22
|
+
else if (typeof value === 'string') {
|
|
23
|
+
args.push(`--${key}=${value}`);
|
|
24
|
+
}
|
|
19
25
|
}
|
|
20
|
-
if (
|
|
21
|
-
args.push(`-a=${
|
|
26
|
+
if (host) {
|
|
27
|
+
args.push(`-a=${host}`);
|
|
22
28
|
}
|
|
23
|
-
if (
|
|
29
|
+
if (ssl) {
|
|
24
30
|
args.push(`-S`);
|
|
25
31
|
}
|
|
26
|
-
if (
|
|
27
|
-
args.push(`-C=${
|
|
28
|
-
}
|
|
29
|
-
if (options.sslKey) {
|
|
30
|
-
args.push(`-K=${options.sslKey}`);
|
|
31
|
-
}
|
|
32
|
-
if (options.proxyUrl) {
|
|
33
|
-
args.push(`-P=${options.proxyUrl}`);
|
|
32
|
+
if (sslCert) {
|
|
33
|
+
args.push(`-C=${sslCert}`);
|
|
34
34
|
}
|
|
35
|
-
if (
|
|
36
|
-
args.push(
|
|
35
|
+
if (sslKey) {
|
|
36
|
+
args.push(`-K=${sslKey}`);
|
|
37
37
|
}
|
|
38
|
-
if (
|
|
39
|
-
args.push(
|
|
38
|
+
if (proxyUrl) {
|
|
39
|
+
args.push(`-P=${proxyUrl}`);
|
|
40
40
|
}
|
|
41
|
-
if (
|
|
41
|
+
if (proxyOptions) {
|
|
42
42
|
Object.keys(options.proxyOptions).forEach((key) => {
|
|
43
43
|
args.push(`--proxy-options.${key}=${options.proxyOptions[key]}`);
|
|
44
44
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 2,
|
|
3
3
|
"outputCapture": "direct-nodejs",
|
|
4
4
|
"title": "File Server",
|
|
5
|
-
"description": "Serve a web application from a folder.",
|
|
5
|
+
"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.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"cli": "nx",
|
|
8
8
|
"properties": {
|
|
@@ -94,5 +94,6 @@
|
|
|
94
94
|
"default": -1
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
|
-
"additionalProperties":
|
|
97
|
+
"additionalProperties": true,
|
|
98
|
+
"examplesFile": "../../../docs/file-server-examples.md"
|
|
98
99
|
}
|