@nx/web 19.4.3 → 19.5.0-beta.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 +4 -4
- package/src/executors/file-server/file-server.impl.js +7 -3
- package/src/generators/application/application.js +2 -3
- package/src/generators/init/init.js +1 -2
- package/src/generators/static-serve/static-serve-configuration.js +1 -2
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +1 -1
- package/src/migrations/update-16-0-0-update-executors/update-16-0-0-update-executors.js +1 -1
- package/src/utils/has-webpack-plugin.js +1 -2
- package/src/utils/wait-for-port-open.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/web",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.5.0-beta.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.
|
|
39
|
-
"@nx/js": "19.
|
|
40
|
-
"@nrwl/web": "19.
|
|
38
|
+
"@nx/devkit": "19.5.0-beta.1",
|
|
39
|
+
"@nx/js": "19.5.0-beta.1",
|
|
40
|
+
"@nrwl/web": "19.5.0-beta.1"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = fileServerExecutor;
|
|
3
4
|
const child_process_1 = require("child_process");
|
|
4
5
|
const chalk = require("chalk");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -145,8 +146,12 @@ async function* fileServerExecutor(options, context) {
|
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
};
|
|
148
|
-
if (options.watch) {
|
|
149
|
-
|
|
149
|
+
if (!client_1.daemonClient.enabled() && options.watch) {
|
|
150
|
+
devkit_1.output.warn({
|
|
151
|
+
title: 'Nx Daemon is not enabled. Static server is not watching for changes.',
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
if (client_1.daemonClient.enabled() && options.watch) {
|
|
150
155
|
disposeWatch = await createFileWatcher(context.projectName, run);
|
|
151
156
|
}
|
|
152
157
|
// perform initial run
|
|
@@ -212,4 +217,3 @@ async function* fileServerExecutor(options, context) {
|
|
|
212
217
|
});
|
|
213
218
|
});
|
|
214
219
|
}
|
|
215
|
-
exports.default = fileServerExecutor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.applicationGenerator = applicationGenerator;
|
|
4
|
+
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
6
7
|
const js_1 = require("@nx/js");
|
|
@@ -157,7 +158,6 @@ async function applicationGenerator(host, schema) {
|
|
|
157
158
|
...schema,
|
|
158
159
|
});
|
|
159
160
|
}
|
|
160
|
-
exports.applicationGenerator = applicationGenerator;
|
|
161
161
|
async function applicationGeneratorInternal(host, schema) {
|
|
162
162
|
const options = await normalizeOptions(host, schema);
|
|
163
163
|
const tasks = [];
|
|
@@ -320,7 +320,6 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
320
320
|
});
|
|
321
321
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
322
322
|
}
|
|
323
|
-
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
324
323
|
async function normalizeOptions(host, options) {
|
|
325
324
|
const { projectName: appProjectName, projectRoot: appProjectRoot, projectNameAndRootFormat, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
|
|
326
325
|
name: options.name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webInitGenerator =
|
|
3
|
+
exports.webInitGenerator = webInitGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("../../utils/versions");
|
|
6
6
|
function updateDependencies(tree, schema) {
|
|
@@ -19,5 +19,4 @@ async function webInitGenerator(tree, schema) {
|
|
|
19
19
|
}
|
|
20
20
|
return installTask;
|
|
21
21
|
}
|
|
22
|
-
exports.webInitGenerator = webInitGenerator;
|
|
23
22
|
exports.default = webInitGenerator;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webStaticServeGenerator =
|
|
3
|
+
exports.webStaticServeGenerator = webStaticServeGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
async function webStaticServeGenerator(tree, options) {
|
|
6
6
|
const opts = await normalizeOptions(tree, options);
|
|
7
7
|
addStaticConfig(tree, opts);
|
|
8
8
|
}
|
|
9
|
-
exports.webStaticServeGenerator = webStaticServeGenerator;
|
|
10
9
|
async function normalizeOptions(tree, options) {
|
|
11
10
|
let projectGraph;
|
|
12
11
|
try {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replacePackage;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const replace_package_1 = require("@nx/devkit/src/utils/replace-package");
|
|
5
6
|
async function replacePackage(tree) {
|
|
6
7
|
await (0, replace_package_1.replaceNrwlPackageWithNxPackage)(tree, '@nrwl/web', '@nx/web');
|
|
7
8
|
await (0, devkit_1.formatFiles)(tree);
|
|
8
9
|
}
|
|
9
|
-
exports.default = replacePackage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const versions_1 = require("../../utils/versions");
|
|
5
6
|
async function update(host) {
|
|
@@ -31,4 +32,3 @@ async function update(host) {
|
|
|
31
32
|
await (0, devkit_1.formatFiles)(host);
|
|
32
33
|
return (0, devkit_1.addDependenciesToPackageJson)(host, {}, deps);
|
|
33
34
|
}
|
|
34
|
-
exports.default = update;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hasWebpackPlugin =
|
|
3
|
+
exports.hasWebpackPlugin = hasWebpackPlugin;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
function hasWebpackPlugin(tree) {
|
|
6
6
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
@@ -8,4 +8,3 @@ function hasWebpackPlugin(tree) {
|
|
|
8
8
|
? p === '@nx/webpack/plugin'
|
|
9
9
|
: p.plugin === '@nx/webpack/plugin');
|
|
10
10
|
}
|
|
11
|
-
exports.hasWebpackPlugin = hasWebpackPlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waitForPortOpen =
|
|
3
|
+
exports.waitForPortOpen = waitForPortOpen;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const net = require("net");
|
|
6
6
|
function waitForPortOpen(port, options = {}) {
|
|
@@ -42,4 +42,3 @@ function waitForPortOpen(port, options = {}) {
|
|
|
42
42
|
checkPort();
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
exports.waitForPortOpen = waitForPortOpen;
|