@nx/web 17.0.1 → 17.1.0-beta.0

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.1",
3
+ "version": "17.1.0-beta.0",
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.1",
38
- "@nx/js": "17.0.1",
39
- "@nrwl/web": "17.0.1"
37
+ "@nx/devkit": "17.1.0-beta.0",
38
+ "@nx/js": "17.1.0-beta.0",
39
+ "@nrwl/web": "17.1.0-beta.0"
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);
@@ -278,7 +278,15 @@
278
278
  #nx-console svg {
279
279
  color: rgba(0, 122, 204, 1);
280
280
  }
281
-
281
+ #nx-console-jetbrains {
282
+ margin-top: 2rem;
283
+ }
284
+ #nx-console-jetbrains:hover {
285
+ background-color: rgba(255, 49, 140, 1);
286
+ }
287
+ #nx-console-jetbrains svg {
288
+ color: rgba(255, 49, 140, 1);
289
+ }
282
290
  #nx-repo:hover {
283
291
  background-color: rgba(24, 23, 23, 1);
284
292
  }
@@ -234,10 +234,44 @@ export class AppElement extends HTMLElement {
234
234
  />
235
235
  </svg>
236
236
  <span>
237
- Install Nx Console
238
- <span>Plugin for VSCode</span>
237
+ Install Nx Console for VSCode
238
+ <span>The official VSCode extension for Nx.</span>
239
239
  </span>
240
240
  </a>
241
+ <a
242
+ id="nx-console-jetbrains"
243
+ class="button-pill rounded shadow"
244
+ href="https://plugins.jetbrains.com/plugin/21060-nx-console"
245
+ target="_blank"
246
+ rel="noreferrer"
247
+ >
248
+ <svg
249
+ height="48"
250
+ width="48"
251
+ viewBox="20 20 60 60"
252
+ xmlns="http://www.w3.org/2000/svg"
253
+ >
254
+ <path d="m22.5 22.5h60v60h-60z" />
255
+ <g fill="#fff">
256
+ <path d="m29.03 71.25h22.5v3.75h-22.5z" />
257
+ <path d="m28.09 38 1.67-1.58a1.88 1.88 0 0 0 1.47.87c.64 0 1.06-.44 1.06-1.31v-5.98h2.58v6a3.48 3.48 0 0 1 -.87 2.6 3.56 3.56 0 0 1 -2.57.95 3.84 3.84 0 0 1 -3.34-1.55z" />
258
+ <path d="m36 30h7.53v2.19h-5v1.44h4.49v2h-4.42v1.49h5v2.21h-7.6z" />
259
+ <path d="m47.23 32.29h-2.8v-2.29h8.21v2.27h-2.81v7.1h-2.6z" />
260
+ <path d="m29.13 43.08h4.42a3.53 3.53 0 0 1 2.55.83 2.09 2.09 0 0 1 .6 1.53 2.16 2.16 0 0 1 -1.44 2.09 2.27 2.27 0 0 1 1.86 2.29c0 1.61-1.31 2.59-3.55 2.59h-4.44zm5 2.89c0-.52-.42-.8-1.18-.8h-1.29v1.64h1.24c.79 0 1.25-.26 1.25-.81zm-.9 2.66h-1.57v1.73h1.62c.8 0 1.24-.31 1.24-.86 0-.5-.4-.87-1.27-.87z" />
261
+ <path d="m38 43.08h4.1a4.19 4.19 0 0 1 3 1 2.93 2.93 0 0 1 .9 2.19 3 3 0 0 1 -1.93 2.89l2.24 3.27h-3l-1.88-2.84h-.87v2.84h-2.56zm4 4.5c.87 0 1.39-.43 1.39-1.11 0-.75-.54-1.12-1.4-1.12h-1.44v2.26z" />
262
+ <path d="m49.59 43h2.5l4 9.44h-2.79l-.67-1.69h-3.63l-.67 1.69h-2.71zm2.27 5.73-1-2.65-1.06 2.65z" />
263
+ <path d="m56.46 43.05h2.6v9.37h-2.6z" />
264
+ <path d="m60.06 43.05h2.42l3.37 5v-5h2.57v9.37h-2.26l-3.53-5.14v5.14h-2.57z" />
265
+ <path d="m68.86 51 1.45-1.73a4.84 4.84 0 0 0 3 1.13c.71 0 1.08-.24 1.08-.65 0-.4-.31-.6-1.59-.91-2-.46-3.53-1-3.53-2.93 0-1.74 1.37-3 3.62-3a5.89 5.89 0 0 1 3.86 1.25l-1.26 1.84a4.63 4.63 0 0 0 -2.62-.92c-.63 0-.94.25-.94.6 0 .42.32.61 1.63.91 2.14.46 3.44 1.16 3.44 2.91 0 1.91-1.51 3-3.79 3a6.58 6.58 0 0 1 -4.35-1.5z" />
266
+ </g>
267
+ </svg>
268
+ <span>
269
+ Install Nx Console for JetBrains
270
+ <span>
271
+ Available for WebStorm, Intellij IDEA Ultimate and more!
272
+ </span>
273
+ </span>
274
+ </a>
241
275
  <div id="nx-cloud" class="rounded shadow">
242
276
  <div>
243
277
  <svg id="nx-cloud-logo" role="img" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" fill="transparent" viewBox="0 0 24 24">
@@ -278,7 +278,15 @@
278
278
  #nx-console svg {
279
279
  color: rgba(0, 122, 204, 1);
280
280
  }
281
-
281
+ #nx-console-jetbrains {
282
+ margin-top: 2rem;
283
+ }
284
+ #nx-console-jetbrains:hover {
285
+ background-color: rgba(255, 49, 140, 1);
286
+ }
287
+ #nx-console-jetbrains svg {
288
+ color: rgba(255, 49, 140, 1);
289
+ }
282
290
  #nx-repo:hover {
283
291
  background-color: rgba(24, 23, 23, 1);
284
292
  }
@@ -234,10 +234,44 @@ export class AppElement extends HTMLElement {
234
234
  />
235
235
  </svg>
236
236
  <span>
237
- Install Nx Console
238
- <span>Plugin for VSCode</span>
237
+ Install Nx Console for VSCode
238
+ <span>The official VSCode extension for Nx.</span>
239
239
  </span>
240
240
  </a>
241
+ <a
242
+ id="nx-console-jetbrains"
243
+ class="button-pill rounded shadow"
244
+ href="https://plugins.jetbrains.com/plugin/21060-nx-console"
245
+ target="_blank"
246
+ rel="noreferrer"
247
+ >
248
+ <svg
249
+ height="48"
250
+ width="48"
251
+ viewBox="20 20 60 60"
252
+ xmlns="http://www.w3.org/2000/svg"
253
+ >
254
+ <path d="m22.5 22.5h60v60h-60z" />
255
+ <g fill="#fff">
256
+ <path d="m29.03 71.25h22.5v3.75h-22.5z" />
257
+ <path d="m28.09 38 1.67-1.58a1.88 1.88 0 0 0 1.47.87c.64 0 1.06-.44 1.06-1.31v-5.98h2.58v6a3.48 3.48 0 0 1 -.87 2.6 3.56 3.56 0 0 1 -2.57.95 3.84 3.84 0 0 1 -3.34-1.55z" />
258
+ <path d="m36 30h7.53v2.19h-5v1.44h4.49v2h-4.42v1.49h5v2.21h-7.6z" />
259
+ <path d="m47.23 32.29h-2.8v-2.29h8.21v2.27h-2.81v7.1h-2.6z" />
260
+ <path d="m29.13 43.08h4.42a3.53 3.53 0 0 1 2.55.83 2.09 2.09 0 0 1 .6 1.53 2.16 2.16 0 0 1 -1.44 2.09 2.27 2.27 0 0 1 1.86 2.29c0 1.61-1.31 2.59-3.55 2.59h-4.44zm5 2.89c0-.52-.42-.8-1.18-.8h-1.29v1.64h1.24c.79 0 1.25-.26 1.25-.81zm-.9 2.66h-1.57v1.73h1.62c.8 0 1.24-.31 1.24-.86 0-.5-.4-.87-1.27-.87z" />
261
+ <path d="m38 43.08h4.1a4.19 4.19 0 0 1 3 1 2.93 2.93 0 0 1 .9 2.19 3 3 0 0 1 -1.93 2.89l2.24 3.27h-3l-1.88-2.84h-.87v2.84h-2.56zm4 4.5c.87 0 1.39-.43 1.39-1.11 0-.75-.54-1.12-1.4-1.12h-1.44v2.26z" />
262
+ <path d="m49.59 43h2.5l4 9.44h-2.79l-.67-1.69h-3.63l-.67 1.69h-2.71zm2.27 5.73-1-2.65-1.06 2.65z" />
263
+ <path d="m56.46 43.05h2.6v9.37h-2.6z" />
264
+ <path d="m60.06 43.05h2.42l3.37 5v-5h2.57v9.37h-2.26l-3.53-5.14v5.14h-2.57z" />
265
+ <path d="m68.86 51 1.45-1.73a4.84 4.84 0 0 0 3 1.13c.71 0 1.08-.24 1.08-.65 0-.4-.31-.6-1.59-.91-2-.46-3.53-1-3.53-2.93 0-1.74 1.37-3 3.62-3a5.89 5.89 0 0 1 3.86 1.25l-1.26 1.84a4.63 4.63 0 0 0 -2.62-.92c-.63 0-.94.25-.94.6 0 .42.32.61 1.63.91 2.14.46 3.44 1.16 3.44 2.91 0 1.91-1.51 3-3.79 3a6.58 6.58 0 0 1 -4.35-1.5z" />
266
+ </g>
267
+ </svg>
268
+ <span>
269
+ Install Nx Console for JetBrains
270
+ <span>
271
+ Available for WebStorm, Intellij IDEA Ultimate and more!
272
+ </span>
273
+ </span>
274
+ </a>
241
275
  <div id="nx-cloud" class="rounded shadow">
242
276
  <div>
243
277
  <svg id="nx-cloud-logo" role="img" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" fill="transparent" viewBox="0 0 24 24">