@nx/angular 20.1.0-canary.20241031-ce05a98 → 20.1.0-canary.20241101-d4f4dac

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "20.1.0-canary.20241031-ce05a98",
3
+ "version": "20.1.0-canary.20241101-d4f4dac",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -80,12 +80,12 @@
80
80
  "webpack-merge": "^5.8.0",
81
81
  "webpack": "^5.88.0",
82
82
  "@module-federation/enhanced": "0.6.9",
83
- "@nx/devkit": "20.1.0-canary.20241031-ce05a98",
84
- "@nx/js": "20.1.0-canary.20241031-ce05a98",
85
- "@nx/eslint": "20.1.0-canary.20241031-ce05a98",
86
- "@nx/webpack": "20.1.0-canary.20241031-ce05a98",
87
- "@nx/web": "20.1.0-canary.20241031-ce05a98",
88
- "@nx/workspace": "20.1.0-canary.20241031-ce05a98",
83
+ "@nx/devkit": "20.1.0-canary.20241101-d4f4dac",
84
+ "@nx/js": "20.1.0-canary.20241101-d4f4dac",
85
+ "@nx/eslint": "20.1.0-canary.20241101-d4f4dac",
86
+ "@nx/webpack": "20.1.0-canary.20241101-d4f4dac",
87
+ "@nx/web": "20.1.0-canary.20241101-d4f4dac",
88
+ "@nx/workspace": "20.1.0-canary.20241101-d4f4dac",
89
89
  "piscina": "^4.4.0"
90
90
  },
91
91
  "peerDependencies": {
@@ -1 +1,8 @@
1
- <% if(minimal) { %><h1>Welcome <%= appName %></h1><% } else { %><<%= nxWelcomeSelector %>></<%= nxWelcomeSelector %>><% } %> <% if(routing) { %><router-outlet></router-outlet><% } %>
1
+ <%_ if(minimal) { _%>
2
+ <h1>Welcome <%= appName %></h1>
3
+ <%_ } else { _%>
4
+ <<%= nxWelcomeSelector %>></<%= nxWelcomeSelector %>>
5
+ <%_ } _%>
6
+ <%_ if(routing) { _%>
7
+ <router-outlet></router-outlet>
8
+ <%_ } _%>
@@ -1 +1,8 @@
1
- <% if(minimal) { %><h1>Welcome <%= appName %></h1><% } else { %><<%= nxWelcomeSelector %>></<%= nxWelcomeSelector %>><% } %> <% if(routing) { %><router-outlet></router-outlet><% } %>
1
+ <%_ if(minimal) { _%>
2
+ <h1>Welcome <%= appName %></h1>
3
+ <%_ } else { _%>
4
+ <<%= nxWelcomeSelector %>></<%= nxWelcomeSelector %>>
5
+ <%_ } _%>
6
+ <%_ if(routing) { _%>
7
+ <router-outlet></router-outlet>
8
+ <%_ } _%>
@@ -2,5 +2,5 @@
2
2
  display: block;
3
3
  }
4
4
  <% } else { %>\:host
5
- display: block;
5
+ display: block
6
6
  <% }} %>
@@ -1,9 +1,9 @@
1
1
  import type { Meta, StoryObj } from '@storybook/angular';
2
2
  import { <%=componentName%> } from './<%=componentFileName%>';
3
- <% if ( interactionTests ) { %>
3
+ <%_ if ( interactionTests ) { _%>
4
4
  import { within } from '@storybook/testing-library';
5
5
  import { expect } from '@storybook/jest';
6
- <% } %>
6
+ <%_ } _%>
7
7
 
8
8
  const meta: Meta<<%= componentName %>> = {
9
9
  component: <%= componentName %>,
@@ -18,7 +18,7 @@ export const Primary: Story = {
18
18
  },
19
19
  };
20
20
 
21
- <% if ( interactionTests ) { %>
21
+ <%_ if ( interactionTests ) { _%>
22
22
  export const Heading: Story = {
23
23
  args: {<% for (let prop of props) { %>
24
24
  <%= prop.name %>: <%- prop.defaultValue %>,<% } %>
@@ -28,4 +28,4 @@ export const Heading: Story = {
28
28
  expect(canvas.getByText(/<%=componentNameSimple%> works!/gi)).toBeTruthy();
29
29
  },
30
30
  };
31
- <% } %>
31
+ <%_ } _%>
@@ -1,9 +1,9 @@
1
1
  # <%= libName %>
2
2
 
3
3
  This library was generated with [Nx](https://nx.dev).
4
- <% if (unitTesting) { %>
4
+ <%_ if (unitTesting) { _%>
5
5
 
6
6
  ## Running unit tests
7
7
 
8
8
  Run `nx test <%= libName %>` to execute the unit tests.
9
- <% } %>
9
+ <%_ } _%>
@@ -24,10 +24,10 @@ async function addJest(tree, options) {
24
24
  const contents = tree.read(setupFile, 'utf-8');
25
25
  tree.write(setupFile, `// @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment
26
26
  globalThis.ngJest = {
27
- testEnvironmentOptions: {
28
- errorOnUnknownElements: true,
29
- errorOnUnknownProperties: true,
30
- },
27
+ testEnvironmentOptions: {
28
+ errorOnUnknownElements: true,
29
+ errorOnUnknownProperties: true,
30
+ },
31
31
  };
32
32
  ${contents}`);
33
33
  }