@nx/angular 20.2.0-canary.20241128-8eb6159 → 20.2.0-canary.20241129-2cb58b9

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": "20.2.0-canary.20241128-8eb6159",
3
+ "version": "20.2.0-canary.20241129-2cb58b9",
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": {
@@ -78,13 +78,13 @@
78
78
  "semver": "^7.5.3",
79
79
  "tslib": "^2.3.0",
80
80
  "webpack-merge": "^5.8.0",
81
- "@nx/devkit": "20.2.0-canary.20241128-8eb6159",
82
- "@nx/js": "20.2.0-canary.20241128-8eb6159",
83
- "@nx/eslint": "20.2.0-canary.20241128-8eb6159",
84
- "@nx/webpack": "20.2.0-canary.20241128-8eb6159",
85
- "@nx/module-federation": "20.2.0-canary.20241128-8eb6159",
86
- "@nx/web": "20.2.0-canary.20241128-8eb6159",
87
- "@nx/workspace": "20.2.0-canary.20241128-8eb6159",
81
+ "@nx/devkit": "20.2.0-canary.20241129-2cb58b9",
82
+ "@nx/js": "20.2.0-canary.20241129-2cb58b9",
83
+ "@nx/eslint": "20.2.0-canary.20241129-2cb58b9",
84
+ "@nx/webpack": "20.2.0-canary.20241129-2cb58b9",
85
+ "@nx/module-federation": "20.2.0-canary.20241129-2cb58b9",
86
+ "@nx/web": "20.2.0-canary.20241129-2cb58b9",
87
+ "@nx/workspace": "20.2.0-canary.20241129-2cb58b9",
88
88
  "piscina": "^4.4.0"
89
89
  },
90
90
  "peerDependencies": {
@@ -9,17 +9,16 @@
9
9
  "properties": {
10
10
  "path": {
11
11
  "type": "string",
12
- "description": "The path at which to create the component file, relative to the workspace root. By default, it is set to the root of the project.",
12
+ "description": "The file path to the component without the file extension and suffix. Relative to the current working directory.",
13
13
  "$default": {
14
14
  "$source": "argv",
15
15
  "index": 0
16
16
  },
17
- "x-prompt": "Where to create the component?"
17
+ "x-prompt": "What is the component file path?"
18
18
  },
19
19
  "name": {
20
20
  "type": "string",
21
- "description": "The name of the component.",
22
- "x-prompt": "What name would you like to use for the component?"
21
+ "description": "The component symbol name. Defaults to the last segment of the file path."
23
22
  },
24
23
  "prefix": {
25
24
  "type": "string",
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface Schema {
4
2
  path: string;
5
3
  name?: string;
@@ -6,20 +6,29 @@
6
6
  "type": "object",
7
7
  "description": "Creates a new Angular directive.",
8
8
  "additionalProperties": false,
9
+ "examples": [
10
+ {
11
+ "description": "Generate a directive with the exported symbol matching the file name. It results in the directive `FooDirective` at `mylib/src/lib/foo.directive.ts`",
12
+ "command": "nx g @nx/angular:directive mylib/src/lib/foo"
13
+ },
14
+ {
15
+ "description": "Generate a directive with the exported symbol different from the file name. It results in the directive `CustomDirective` at `mylib/src/lib/foo.directive.ts`",
16
+ "command": "nx g @nx/angular:directive mylib/src/lib/foo --name=custom"
17
+ }
18
+ ],
9
19
  "properties": {
10
20
  "path": {
11
21
  "type": "string",
12
- "description": "The path at which to create the directive file.",
13
- "x-prompt": "Where to put the directive?",
22
+ "description": "The file path to the directive without the file extension and suffix. Relative to the current working directory.",
14
23
  "$default": {
15
24
  "$source": "argv",
16
25
  "index": 0
17
- }
26
+ },
27
+ "x-prompt": "What is the directive file path?"
18
28
  },
19
29
  "name": {
20
30
  "type": "string",
21
- "description": "The name of the new directive.",
22
- "x-prompt": "What name would you like to use for the directive?"
31
+ "description": "The directive symbol name. Defaults to the last segment of the file path."
23
32
  },
24
33
  "prefix": {
25
34
  "type": "string",
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface Schema {
4
2
  path: string;
5
3
  name?: string;
@@ -6,20 +6,29 @@
6
6
  "cli": "nx",
7
7
  "additionalProperties": false,
8
8
  "description": "Creates an Angular pipe.",
9
+ "examples": [
10
+ {
11
+ "description": "Generate a pipe with the exported symbol matching the file name. It results in the pipe `FooPipe` at `mylib/src/lib/foo.pipe.ts`",
12
+ "command": "nx g @nx/angular:pipe mylib/src/lib/foo"
13
+ },
14
+ {
15
+ "description": "Generate a pipe with the exported symbol different from the file name. It results in the pipe `CustomPipe` at `mylib/src/lib/foo.pipe.ts`",
16
+ "command": "nx g @nx/angular:pipe mylib/src/lib/foo --name=custom"
17
+ }
18
+ ],
9
19
  "properties": {
10
20
  "path": {
11
21
  "type": "string",
12
- "description": "The path at which to create the pipe file, relative to the workspace root.",
22
+ "description": "The file path to the pipe without the file extension and suffix. Relative to the current working directory.",
13
23
  "$default": {
14
24
  "$source": "argv",
15
25
  "index": 0
16
26
  },
17
- "x-prompt": "What is the path of the new pipe?"
27
+ "x-prompt": "What is the pipe file path?"
18
28
  },
19
29
  "name": {
20
30
  "type": "string",
21
- "description": "The name of the pipe.",
22
- "x-prompt": "What name would you like to use for the pipe?"
31
+ "description": "The pipe symbol name. Defaults to the last segment of the file path."
23
32
  },
24
33
  "skipTests": {
25
34
  "type": "boolean",
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface Schema {
4
2
  path: string;
5
3
  name?: string;
@@ -6,8 +6,12 @@
6
6
  "type": "object",
7
7
  "examples": [
8
8
  {
9
- "command": "nx g @nx/angular:scam my-lib/src/lib/my-sample/my-sample",
10
- "description": "Generate a `MySampleComponent` component in the `my-lib` library."
9
+ "description": "Generate a component with the exported symbol matching the file name. It results in the component `FooComponent` at `mylib/src/lib/foo.component.ts`",
10
+ "command": "nx g @nx/angular:scam mylib/src/lib/foo"
11
+ },
12
+ {
13
+ "description": "Generate a component with the exported symbol different from the file name. It results in the component `CustomComponent` at `mylib/src/lib/foo.component.ts`",
14
+ "command": "nx g @nx/angular:scam mylib/src/lib/foo --name=custom"
11
15
  }
12
16
  ],
13
17
  "description": "Creates a new Angular SCAM.",
@@ -15,17 +19,16 @@
15
19
  "properties": {
16
20
  "path": {
17
21
  "type": "string",
18
- "description": "The path at which to create the SCAM file, relative to the workspace root.",
22
+ "description": "The file path to the SCAM without the file extension and suffix. Relative to the current working directory.",
19
23
  "$default": {
20
24
  "$source": "argv",
21
25
  "index": 0
22
26
  },
23
- "x-prompt": "What is the path of the new SCAM?"
27
+ "x-prompt": "What is the SCAM file path?"
24
28
  },
25
29
  "name": {
26
30
  "type": "string",
27
- "description": "The name of the component.",
28
- "x-prompt": "What name would you like to use for the component?"
31
+ "description": "The component symbol name. Defaults to the last segment of the file path."
29
32
  },
30
33
  "displayBlock": {
31
34
  "description": "Specifies if the style will contain `:host { display: block; }`.",
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface Schema {
4
2
  path: string;
5
3
  name?: string;
@@ -6,8 +6,12 @@
6
6
  "type": "object",
7
7
  "examples": [
8
8
  {
9
- "command": "nx g @nx/angular:scam-directive my-sample --directory=my-lib/src/lib/my-sample",
10
- "description": "Generate a `MySampleDirective` directive in a `my-sample` folder in the `my-lib` library"
9
+ "description": "Generate a directive with the exported symbol matching the file name. It results in the directive `FooDirective` at `mylib/src/lib/foo.directive.ts`",
10
+ "command": "nx g @nx/angular:scam-directive mylib/src/lib/foo"
11
+ },
12
+ {
13
+ "description": "Generate a directive with the exported symbol different from the file name. It results in the directive `CustomDirective` at `mylib/src/lib/foo.directive.ts`",
14
+ "command": "nx g @nx/angular:scam-directive mylib/src/lib/foo --name=custom"
11
15
  }
12
16
  ],
13
17
  "description": "Creates a new, generic Angular directive definition in the given or default project.",
@@ -15,38 +19,16 @@
15
19
  "properties": {
16
20
  "path": {
17
21
  "type": "string",
18
- "description": "The path at which to create the SCAM Directive files, relative to the workspace root.",
22
+ "description": "The file path to the SCAM directive without the file extension and suffix. Relative to the current working directory.",
19
23
  "$default": {
20
24
  "$source": "argv",
21
25
  "index": 0
22
26
  },
23
- "x-prompt": "What is the path of the new directive?"
27
+ "x-prompt": "What is the SCAM directive file path?"
24
28
  },
25
29
  "name": {
26
30
  "type": "string",
27
- "description": "The name of the directive.",
28
- "x-prompt": "What name would you like to use for the directive?",
29
- "x-priority": "important"
30
- },
31
- "directory": {
32
- "type": "string",
33
- "description": "The directory at which to create the SCAM Directive files. When `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. Otherwise, it will be relative to the workspace root.",
34
- "aliases": ["dir", "path"],
35
- "x-priority": "important"
36
- },
37
- "nameAndDirectoryFormat": {
38
- "description": "Whether to generate the component in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).",
39
- "type": "string",
40
- "enum": ["as-provided", "derived"]
41
- },
42
- "project": {
43
- "type": "string",
44
- "description": "The name of the project.",
45
- "$default": {
46
- "$source": "projectName"
47
- },
48
- "x-dropdown": "projects",
49
- "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. The project will be determined from the directory provided. It will be removed in Nx v20."
31
+ "description": "The directive symbol name. Defaults to the last segment of the file path."
50
32
  },
51
33
  "skipTests": {
52
34
  "type": "boolean",
@@ -59,12 +41,6 @@
59
41
  "default": true,
60
42
  "x-priority": "important"
61
43
  },
62
- "flat": {
63
- "type": "boolean",
64
- "description": "Create the new files at the top level of the current project.",
65
- "default": true,
66
- "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
67
- },
68
44
  "selector": {
69
45
  "type": "string",
70
46
  "format": "html-selector",
@@ -1,5 +1,3 @@
1
- import { NameAndDirectoryFormat } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
-
3
1
  export interface Schema {
4
2
  path: string;
5
3
  name?: string;
@@ -6,8 +6,12 @@
6
6
  "type": "object",
7
7
  "examples": [
8
8
  {
9
- "command": "nx g @nx/angular:scam-pipe mylib/src/lib/my-transformation/my-transformation",
10
- "description": "Generates a `MyTransformationPipe` in a `my-transformation` folder in the `my-lib` project"
9
+ "description": "Generate a pipe with the exported symbol matching the file name. It results in the pipe `FooPipe` at `mylib/src/lib/foo.pipe.ts`",
10
+ "command": "nx g @nx/angular:scam-pipe mylib/src/lib/foo"
11
+ },
12
+ {
13
+ "description": "Generate a pipe with the exported symbol different from the file name. It results in the pipe `CustomPipe` at `mylib/src/lib/foo.pipe.ts`",
14
+ "command": "nx g @nx/angular:scam-pipe mylib/src/lib/foo --name=custom"
11
15
  }
12
16
  ],
13
17
  "description": "Creates a new, generic Angular pipe definition in the given or default project.",
@@ -15,18 +19,16 @@
15
19
  "properties": {
16
20
  "path": {
17
21
  "type": "string",
18
- "description": "The path at which to create the pipe file, relative to the workspace root.",
22
+ "description": "The file path to the SCAM pipe without the file extension and suffix. Relative to the current working directory.",
19
23
  "$default": {
20
24
  "$source": "argv",
21
25
  "index": 0
22
26
  },
23
- "x-prompt": "What is the path of the new pipe?"
27
+ "x-prompt": "What is the SCAM pipe file path?"
24
28
  },
25
29
  "name": {
26
30
  "type": "string",
27
- "description": "The name of the pipe.",
28
- "x-prompt": "What name would you like to use for the pipe?",
29
- "x-priority": "important"
31
+ "description": "The pipe symbol name. Defaults to the last segment of the file path."
30
32
  },
31
33
  "skipTests": {
32
34
  "type": "boolean",
@@ -39,12 +41,6 @@
39
41
  "default": true,
40
42
  "x-priority": "important"
41
43
  },
42
- "flat": {
43
- "type": "boolean",
44
- "description": "Create the new files at the top level of the current project.",
45
- "default": true,
46
- "x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
47
- },
48
44
  "export": {
49
45
  "type": "boolean",
50
46
  "description": "Specifies if the SCAM should be exported from the project's entry point (normally `index.ts`). It only applies to libraries.",