@nx/web 17.0.0 → 17.0.2

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": "17.0.0",
3
+ "version": "17.0.2",
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, 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": {
@@ -34,9 +34,9 @@
34
34
  "detect-port": "^1.5.1",
35
35
  "http-server": "^14.1.0",
36
36
  "tslib": "^2.3.0",
37
- "@nx/devkit": "17.0.0",
38
- "@nx/js": "17.0.0",
39
- "@nrwl/web": "17.0.0"
37
+ "@nx/devkit": "17.0.2",
38
+ "@nx/js": "17.0.2",
39
+ "@nrwl/web": "17.0.2"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -188,14 +188,20 @@ async function applicationGeneratorInternal(host, schema) {
188
188
  tasks.push(lintTask);
189
189
  }
190
190
  if (options.e2eTestRunner === 'cypress') {
191
- const { cypressProjectGenerator } = (0, devkit_1.ensurePackage)('@nx/cypress', versions_2.nxVersion);
192
- const cypressTask = await cypressProjectGenerator(host, {
191
+ const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/cypress', versions_2.nxVersion);
192
+ (0, devkit_1.addProjectConfiguration)(host, options.e2eProjectName, {
193
+ root: options.e2eProjectRoot,
194
+ sourceRoot: (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, 'src'),
195
+ projectType: 'application',
196
+ targets: {},
197
+ tags: [],
198
+ implicitDependencies: [options.projectName],
199
+ });
200
+ const cypressTask = await configurationGenerator(host, {
193
201
  ...options,
194
- name: options.e2eProjectName,
195
- directory: options.e2eProjectRoot,
196
- // the name and root are already normalized, instruct the generator to use them as is
197
- projectNameAndRootFormat: 'as-provided',
198
- project: options.projectName,
202
+ project: options.e2eProjectName,
203
+ devServerTarget: `${options.projectName}:serve`,
204
+ directory: 'src',
199
205
  skipFormat: true,
200
206
  });
201
207
  tasks.push(cypressTask);