@nx/web 23.0.0-beta.1 → 23.0.0-beta.11

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.1",
3
+ "version": "23.0.0-beta.11",
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.5.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.1",
40
- "@nx/js": "23.0.0-beta.1"
39
+ "@nx/devkit": "23.0.0-beta.11",
40
+ "@nx/js": "23.0.0-beta.11"
41
41
  },
42
42
  "devDependencies": {
43
- "nx": "23.0.0-beta.1",
44
- "@nx/vitest": "23.0.0-beta.1"
43
+ "nx": "23.0.0-beta.11",
44
+ "@nx/vitest": "23.0.0-beta.11"
45
45
  },
46
46
  "peerDependencies": {
47
- "@nx/cypress": "23.0.0-beta.1",
48
- "@nx/eslint": "23.0.0-beta.1",
49
- "@nx/jest": "23.0.0-beta.1",
50
- "@nx/playwright": "23.0.0-beta.1",
51
- "@nx/vite": "23.0.0-beta.1",
52
- "@nx/webpack": "23.0.0-beta.1"
47
+ "@nx/cypress": "23.0.0-beta.11",
48
+ "@nx/eslint": "23.0.0-beta.11",
49
+ "@nx/jest": "23.0.0-beta.11",
50
+ "@nx/playwright": "23.0.0-beta.11",
51
+ "@nx/vite": "23.0.0-beta.11",
52
+ "@nx/webpack": "23.0.0-beta.11"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@nx/cypress": {
@@ -1 +1 @@
1
- {"version":3,"file":"file-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/file-server.impl.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA6IlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAUtC"}
1
+ {"version":3,"file":"file-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/web/src/executors/file-server/file-server.impl.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EAIhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAgJlC,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe;;;;aA4HM,OAAO;YAUtC"}
@@ -12,7 +12,8 @@ const path_1 = require("path");
12
12
  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
- const detectPort = require('detect-port');
15
+ const strip_glob_to_base_dir_1 = require("@nx/js/src/utils/strip-glob-to-base-dir");
16
+ const detect_port_1 = tslib_1.__importDefault(require("detect-port"));
16
17
  // platform specific command name
17
18
  const pmCmd = (0, os_1.platform)() === 'win32' ? `npx.cmd` : 'npx';
18
19
  function getHttpServerArgs(options) {
@@ -80,11 +81,13 @@ function getBuildTargetOutputPath(options, context) {
80
81
  const project = context.projectGraph.nodes[context.projectName];
81
82
  const buildTarget = project.data.targets[target.target];
82
83
  outputPath = buildTarget.outputs?.[0];
83
- if (outputPath)
84
+ if (outputPath) {
84
85
  outputPath = (0, utils_1.interpolate)(outputPath, {
85
86
  projectName: project.data.name,
86
87
  projectRoot: project.data.root,
87
88
  });
89
+ outputPath = (0, strip_glob_to_base_dir_1.stripGlobToBaseDir)(outputPath);
90
+ }
88
91
  }
89
92
  }
90
93
  catch (e) {
@@ -167,7 +170,7 @@ async function* fileServerExecutor(options, context) {
167
170
  // perform initial run
168
171
  run();
169
172
  }
170
- const port = await detectPort(options.port || 8080);
173
+ const port = await (0, detect_port_1.default)(options.port || 8080);
171
174
  const outputPath = getBuildTargetOutputPath(options, context);
172
175
  if (options.spa) {
173
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":"AAAA,OAAO,EAML,iBAAiB,EASjB,IAAI,EAKL,MAAM,YAAY,CAAC;AAkBpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA2PlC,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"}
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, target_defaults_utils_1.addBuildTargetDefaults)(tree, `@nx/js:${options.compiler}`);
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, log_show_project_command_1.logShowProjectCommand)(options.projectName);
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, project_name_and_root_utils_1.ensureRootProjectName)(options, 'application');
449
- const { projectName, projectRoot: appProjectRoot, importPath, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
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,
@@ -25,6 +25,7 @@
25
25
  "description": "The file extension to be used for style files.",
26
26
  "type": "string",
27
27
  "default": "css",
28
+ "enum": ["css", "scss"],
28
29
  "x-prompt": {
29
30
  "message": "Which stylesheet format would you like to use?",
30
31
  "type": "list",
@@ -35,11 +36,7 @@
35
36
  },
36
37
  {
37
38
  "value": "scss",
38
- "label": "SASS(.scss) [ https://sass-lang.com ]"
39
- },
40
- {
41
- "value": "less",
42
- "label": "LESS [ https://lesscss.org ]"
39
+ "label": "SASS(.scss) [ https://sass-lang.com ]"
43
40
  }
44
41
  ]
45
42
  }
@@ -1,5 +1,5 @@
1
1
  export declare const nxVersion: any;
2
2
  export declare const swcLoaderVersion = "0.1.15";
3
- export declare const typesNodeVersion = "20.19.9";
3
+ export declare const typesNodeVersion = "^22.0.0";
4
4
  export declare const tsLibVersion = "^2.3.0";
5
5
  //# sourceMappingURL=versions.d.ts.map
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tsLibVersion = exports.typesNodeVersion = exports.swcLoaderVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
5
  exports.swcLoaderVersion = '0.1.15';
6
- exports.typesNodeVersion = '20.19.9';
6
+ exports.typesNodeVersion = '^22.0.0';
7
7
  exports.tsLibVersion = '^2.3.0';