@nx/web 23.0.0-beta.5 → 23.0.0-beta.6
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": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.6",
|
|
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": {
|
|
@@ -32,24 +32,24 @@
|
|
|
32
32
|
"migrations": "./migrations.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"detect-port": "^1.
|
|
35
|
+
"detect-port": "^2.1.0",
|
|
36
36
|
"http-server": "^14.1.0",
|
|
37
37
|
"picocolors": "^1.1.0",
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
|
-
"@nx/devkit": "23.0.0-beta.
|
|
40
|
-
"@nx/js": "23.0.0-beta.
|
|
39
|
+
"@nx/devkit": "23.0.0-beta.6",
|
|
40
|
+
"@nx/js": "23.0.0-beta.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"nx": "23.0.0-beta.
|
|
44
|
-
"@nx/vitest": "23.0.0-beta.
|
|
43
|
+
"nx": "23.0.0-beta.6",
|
|
44
|
+
"@nx/vitest": "23.0.0-beta.6"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@nx/cypress": "23.0.0-beta.
|
|
48
|
-
"@nx/eslint": "23.0.0-beta.
|
|
49
|
-
"@nx/jest": "23.0.0-beta.
|
|
50
|
-
"@nx/playwright": "23.0.0-beta.
|
|
51
|
-
"@nx/vite": "23.0.0-beta.
|
|
52
|
-
"@nx/webpack": "23.0.0-beta.
|
|
47
|
+
"@nx/cypress": "23.0.0-beta.6",
|
|
48
|
+
"@nx/eslint": "23.0.0-beta.6",
|
|
49
|
+
"@nx/jest": "23.0.0-beta.6",
|
|
50
|
+
"@nx/playwright": "23.0.0-beta.6",
|
|
51
|
+
"@nx/vite": "23.0.0-beta.6",
|
|
52
|
+
"@nx/webpack": "23.0.0-beta.6"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@nx/cypress": {
|
|
@@ -13,7 +13,7 @@ const package_json_1 = require("nx/src/utils/package-json");
|
|
|
13
13
|
const client_1 = require("nx/src/daemon/client/client");
|
|
14
14
|
const utils_1 = require("nx/src/tasks-runner/utils");
|
|
15
15
|
const strip_glob_to_base_dir_1 = require("@nx/js/src/utils/strip-glob-to-base-dir");
|
|
16
|
-
const
|
|
16
|
+
const detect_port_1 = tslib_1.__importDefault(require("detect-port"));
|
|
17
17
|
// platform specific command name
|
|
18
18
|
const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
|
|
19
19
|
function getHttpServerArgs(options) {
|
|
@@ -170,7 +170,7 @@ async function* fileServerExecutor(options, context) {
|
|
|
170
170
|
// perform initial run
|
|
171
171
|
run();
|
|
172
172
|
}
|
|
173
|
-
const port = await
|
|
173
|
+
const port = await (0, detect_port_1.default)(options.port || 8080);
|
|
174
174
|
const outputPath = getBuildTargetOutputPath(options, context);
|
|
175
175
|
if (options.spa) {
|
|
176
176
|
const src = (0, path_1.join)(outputPath, 'index.html');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/generators/application/application.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/generators/application/application.ts"],"names":[],"mappings":"AAOA,OAAO,EAML,iBAAiB,EASjB,IAAI,EAKL,MAAM,YAAY,CAAC;AAcpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAwPlC,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAKpE;AAED,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAqW5E;AA0DD,eAAe,oBAAoB,CAAC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.applicationGenerator = applicationGenerator;
|
|
4
4
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
7
|
const devkit_1 = require("@nx/devkit");
|
|
7
|
-
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
8
8
|
const js_1 = require("@nx/js");
|
|
9
9
|
const versions_1 = require("@nx/js/src/utils/versions");
|
|
10
10
|
const path_1 = require("path");
|
|
@@ -12,8 +12,6 @@ const versions_2 = require("../../utils/versions");
|
|
|
12
12
|
const init_1 = require("../init/init");
|
|
13
13
|
const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
|
|
14
14
|
const has_webpack_plugin_1 = require("../../utils/has-webpack-plugin");
|
|
15
|
-
const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
|
16
|
-
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
17
15
|
const static_serve_configuration_1 = tslib_1.__importDefault(require("../static-serve/static-serve-configuration"));
|
|
18
16
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
19
17
|
function createApplicationFiles(tree, options) {
|
|
@@ -132,7 +130,7 @@ async function setupBundler(tree, options) {
|
|
|
132
130
|
}
|
|
133
131
|
else if (options.bundler === 'none') {
|
|
134
132
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
|
|
135
|
-
(0,
|
|
133
|
+
(0, internal_1.addBuildTargetDefaults)(tree, `@nx/js:${options.compiler}`);
|
|
136
134
|
project.targets ??= {};
|
|
137
135
|
project.targets.build = {
|
|
138
136
|
executor: `@nx/js:${options.compiler}`,
|
|
@@ -440,13 +438,13 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
440
438
|
await (0, devkit_1.formatFiles)(host);
|
|
441
439
|
}
|
|
442
440
|
tasks.push(() => {
|
|
443
|
-
(0,
|
|
441
|
+
(0, internal_1.logShowProjectCommand)(options.projectName);
|
|
444
442
|
});
|
|
445
443
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
446
444
|
}
|
|
447
445
|
async function normalizeOptions(host, options) {
|
|
448
|
-
await (0,
|
|
449
|
-
const { projectName, projectRoot: appProjectRoot, importPath, } = await (0,
|
|
446
|
+
await (0, internal_1.ensureRootProjectName)(options, 'application');
|
|
447
|
+
const { projectName, projectRoot: appProjectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
|
|
450
448
|
name: options.name,
|
|
451
449
|
projectType: 'application',
|
|
452
450
|
directory: options.directory,
|