@nx/angular 0.0.0-pr-30913-89a46d1 → 0.0.0-pr-31172-da609d4

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/angular",
3
- "version": "0.0.0-pr-30913-89a46d1",
3
+ "version": "0.0.0-pr-31172-da609d4",
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": {
@@ -67,14 +67,14 @@
67
67
  "semver": "^7.5.3",
68
68
  "tslib": "^2.3.0",
69
69
  "webpack-merge": "^5.8.0",
70
- "@nx/devkit": "0.0.0-pr-30913-89a46d1",
71
- "@nx/js": "0.0.0-pr-30913-89a46d1",
72
- "@nx/eslint": "0.0.0-pr-30913-89a46d1",
73
- "@nx/webpack": "0.0.0-pr-30913-89a46d1",
74
- "@nx/rspack": "0.0.0-pr-30913-89a46d1",
75
- "@nx/module-federation": "0.0.0-pr-30913-89a46d1",
76
- "@nx/web": "0.0.0-pr-30913-89a46d1",
77
- "@nx/workspace": "0.0.0-pr-30913-89a46d1",
70
+ "@nx/devkit": "0.0.0-pr-31172-da609d4",
71
+ "@nx/js": "0.0.0-pr-31172-da609d4",
72
+ "@nx/eslint": "0.0.0-pr-31172-da609d4",
73
+ "@nx/webpack": "0.0.0-pr-31172-da609d4",
74
+ "@nx/rspack": "0.0.0-pr-31172-da609d4",
75
+ "@nx/module-federation": "0.0.0-pr-31172-da609d4",
76
+ "@nx/web": "0.0.0-pr-31172-da609d4",
77
+ "@nx/workspace": "0.0.0-pr-31172-da609d4",
78
78
  "piscina": "^4.4.0"
79
79
  },
80
80
  "peerDependencies": {
@@ -44,7 +44,7 @@ async function createFiles(tree, options, rootOffset) {
44
44
  connectCloudUrl,
45
45
  tutorialUrl: options.standalone
46
46
  ? 'https://nx.dev/getting-started/tutorials/angular-standalone-tutorial?utm_source=nx-project'
47
- : 'https://nx.dev/getting-started/tutorials/angular-monorepo-tutorial?utm_source=nx-project',
47
+ : 'https://nx.dev/tutorials/3-angular-monorepo/1a-introduction/1-welcome?utm_source=nx-project',
48
48
  tpl: '',
49
49
  };
50
50
  const angularAppType = options.standalone ? 'standalone' : 'ng-module';
@@ -1,8 +1,7 @@
1
1
  import type { Meta, StoryObj } from '@storybook/angular';
2
2
  import { <%=componentName%> } from './<%=componentFileName%>';
3
3
  <%_ if ( interactionTests ) { _%>
4
- import { within } from '@storybook/testing-library';
5
- import { expect } from '@storybook/jest';
4
+ import { expect } from 'storybook/jest';
6
5
  <%_ } _%>
7
6
 
8
7
  const meta: Meta<<%= componentName %>> = {
@@ -23,9 +22,8 @@ export const Heading: Story = {
23
22
  args: {<% for (let prop of props) { %>
24
23
  <%= prop.name %>: <%- prop.defaultValue %>,<% } %>
25
24
  },
26
- play: async ({ canvasElement }) => {
27
- const canvas = within(canvasElement);
28
- expect(canvas.getByText(/<%=componentNameSimple%> works!/gi)).toBeTruthy();
25
+ play: async ({ canvas }) => {
26
+ await expect(canvas.getByText(/<%=componentNameSimple%> works!/gi)).toBeTruthy();
29
27
  },
30
28
  };
31
- <%_ } _%>
29
+ <%_ } _%>
@@ -1,4 +1,4 @@
1
- import { GeneratorCallback, Tree } from '@nx/devkit';
1
+ import { Tree } from '@nx/devkit';
2
2
  import type { StoriesGeneratorOptions } from './schema';
3
- export declare function angularStoriesGenerator(tree: Tree, options: StoriesGeneratorOptions): Promise<GeneratorCallback>;
3
+ export declare function angularStoriesGenerator(tree: Tree, options: StoriesGeneratorOptions): Promise<void>;
4
4
  export default angularStoriesGenerator;
@@ -8,7 +8,6 @@ const component_info_1 = require("../utils/storybook-ast/component-info");
8
8
  const entry_point_1 = require("../utils/storybook-ast/entry-point");
9
9
  const module_info_1 = require("../utils/storybook-ast/module-info");
10
10
  const picomatch = require("picomatch");
11
- const versions_1 = require("../../utils/versions");
12
11
  async function angularStoriesGenerator(tree, options) {
13
12
  const entryPoints = (0, entry_point_1.getProjectEntryPoints)(tree, options.name);
14
13
  const componentsInfo = [];
@@ -33,16 +32,8 @@ async function angularStoriesGenerator(tree, options) {
33
32
  skipFormat: true,
34
33
  });
35
34
  }
36
- const tasks = [];
37
- if (options.interactionTests) {
38
- const { interactionTestsDependencies, addInteractionsInAddons } = (0, devkit_1.ensurePackage)('@nx/storybook', versions_1.nxVersion);
39
- const projectConfiguration = (0, devkit_1.readProjectConfiguration)(tree, options.name);
40
- addInteractionsInAddons(tree, projectConfiguration);
41
- tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, interactionTestsDependencies()));
42
- }
43
35
  if (!options.skipFormat) {
44
36
  await (0, devkit_1.formatFiles)(tree);
45
37
  }
46
- return (0, devkit_1.runTasksInSerial)(...tasks);
47
38
  }
48
39
  exports.default = angularStoriesGenerator;