@nx/angular 20.3.0-canary.20241207-de8b189 → 20.3.0-canary.20241210-ecba861
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 +8 -8
- package/src/generators/component/lib/normalize-options.js +2 -0
- package/src/generators/component/schema.json +1 -1
- package/src/generators/directive/lib/normalize-options.js +2 -0
- package/src/generators/directive/schema.json +5 -1
- package/src/generators/pipe/lib/normalize-options.js +2 -0
- package/src/generators/pipe/schema.json +5 -1
- package/src/generators/scam/lib/normalize-options.js +2 -0
- package/src/generators/scam/schema.json +5 -1
- package/src/generators/scam-directive/lib/normalize-options.js +2 -0
- package/src/generators/scam-directive/schema.json +5 -1
- package/src/generators/scam-pipe/lib/normalize-options.js +2 -0
- package/src/generators/scam-pipe/schema.json +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "20.3.0-canary.
|
|
3
|
+
"version": "20.3.0-canary.20241210-ecba861",
|
|
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": {
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"semver": "^7.5.3",
|
|
72
72
|
"tslib": "^2.3.0",
|
|
73
73
|
"webpack-merge": "^5.8.0",
|
|
74
|
-
"@nx/devkit": "20.3.0-canary.
|
|
75
|
-
"@nx/js": "20.3.0-canary.
|
|
76
|
-
"@nx/eslint": "20.3.0-canary.
|
|
77
|
-
"@nx/webpack": "20.3.0-canary.
|
|
78
|
-
"@nx/module-federation": "20.3.0-canary.
|
|
79
|
-
"@nx/web": "20.3.0-canary.
|
|
80
|
-
"@nx/workspace": "20.3.0-canary.
|
|
74
|
+
"@nx/devkit": "20.3.0-canary.20241210-ecba861",
|
|
75
|
+
"@nx/js": "20.3.0-canary.20241210-ecba861",
|
|
76
|
+
"@nx/eslint": "20.3.0-canary.20241210-ecba861",
|
|
77
|
+
"@nx/webpack": "20.3.0-canary.20241210-ecba861",
|
|
78
|
+
"@nx/module-federation": "20.3.0-canary.20241210-ecba861",
|
|
79
|
+
"@nx/web": "20.3.0-canary.20241210-ecba861",
|
|
80
|
+
"@nx/workspace": "20.3.0-canary.20241210-ecba861",
|
|
81
81
|
"piscina": "^4.4.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
@@ -11,6 +11,8 @@ async function normalizeOptions(tree, options) {
|
|
|
11
11
|
name: options.name,
|
|
12
12
|
path: options.path,
|
|
13
13
|
suffix: options.type ?? 'component',
|
|
14
|
+
allowedFileExtensions: ['ts'],
|
|
15
|
+
fileExtension: 'ts',
|
|
14
16
|
});
|
|
15
17
|
const { className } = (0, devkit_1.names)(name);
|
|
16
18
|
const { className: suffixClassName } = (0, devkit_1.names)(options.type);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"properties": {
|
|
10
10
|
"path": {
|
|
11
11
|
"type": "string",
|
|
12
|
-
"description": "The file path to the component
|
|
12
|
+
"description": "The file path to the component. Relative to the current working directory.",
|
|
13
13
|
"$default": {
|
|
14
14
|
"$source": "argv",
|
|
15
15
|
"index": 0
|
|
@@ -10,6 +10,8 @@ async function normalizeOptions(tree, options) {
|
|
|
10
10
|
name: options.name,
|
|
11
11
|
path: options.path,
|
|
12
12
|
suffix: 'directive',
|
|
13
|
+
allowedFileExtensions: ['ts'],
|
|
14
|
+
fileExtension: 'ts',
|
|
13
15
|
});
|
|
14
16
|
const { className } = (0, devkit_1.names)(name);
|
|
15
17
|
const { className: suffixClassName } = (0, devkit_1.names)('directive');
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"examples": [
|
|
10
10
|
{
|
|
11
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.directive.ts"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"description": "Generate a directive without providing the file extension. It results in the directive `FooDirective` at `mylib/src/lib/foo.directive.ts`",
|
|
12
16
|
"command": "nx g @nx/angular:directive mylib/src/lib/foo"
|
|
13
17
|
},
|
|
14
18
|
{
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
"properties": {
|
|
20
24
|
"path": {
|
|
21
25
|
"type": "string",
|
|
22
|
-
"description": "The file path to the directive
|
|
26
|
+
"description": "The file path to the directive. Relative to the current working directory.",
|
|
23
27
|
"$default": {
|
|
24
28
|
"$source": "argv",
|
|
25
29
|
"index": 0
|
|
@@ -9,6 +9,8 @@ async function normalizeOptions(tree, options) {
|
|
|
9
9
|
name: options.name,
|
|
10
10
|
path: options.path,
|
|
11
11
|
suffix: 'pipe',
|
|
12
|
+
allowedFileExtensions: ['ts'],
|
|
13
|
+
fileExtension: 'ts',
|
|
12
14
|
});
|
|
13
15
|
const { className } = (0, devkit_1.names)(name);
|
|
14
16
|
const { className: suffixClassName } = (0, devkit_1.names)('pipe');
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"examples": [
|
|
10
10
|
{
|
|
11
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.pipe.ts"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"description": "Generate a pipe without providing the file extension. It results in the pipe `FooPipe` at `mylib/src/lib/foo.pipe.ts`",
|
|
12
16
|
"command": "nx g @nx/angular:pipe mylib/src/lib/foo"
|
|
13
17
|
},
|
|
14
18
|
{
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
"properties": {
|
|
20
24
|
"path": {
|
|
21
25
|
"type": "string",
|
|
22
|
-
"description": "The file path to the pipe
|
|
26
|
+
"description": "The file path to the pipe. Relative to the current working directory.",
|
|
23
27
|
"$default": {
|
|
24
28
|
"$source": "argv",
|
|
25
29
|
"index": 0
|
|
@@ -10,6 +10,8 @@ async function normalizeOptions(tree, options) {
|
|
|
10
10
|
name: options.name,
|
|
11
11
|
path: options.path,
|
|
12
12
|
suffix: options.type ?? 'component',
|
|
13
|
+
allowedFileExtensions: ['ts'],
|
|
14
|
+
fileExtension: 'ts',
|
|
13
15
|
});
|
|
14
16
|
const { className } = (0, devkit_1.names)(name);
|
|
15
17
|
const { className: suffixClassName } = (0, devkit_1.names)(options.type);
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
"examples": [
|
|
8
8
|
{
|
|
9
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.component.ts"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"description": "Generate a component without providing the file extension. It results in the component `FooComponent` at `mylib/src/lib/foo.component.ts`",
|
|
10
14
|
"command": "nx g @nx/angular:scam mylib/src/lib/foo"
|
|
11
15
|
},
|
|
12
16
|
{
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
"properties": {
|
|
20
24
|
"path": {
|
|
21
25
|
"type": "string",
|
|
22
|
-
"description": "The file path to the SCAM
|
|
26
|
+
"description": "The file path to the SCAM. Relative to the current working directory.",
|
|
23
27
|
"$default": {
|
|
24
28
|
"$source": "argv",
|
|
25
29
|
"index": 0
|
|
@@ -9,6 +9,8 @@ async function normalizeOptions(tree, options) {
|
|
|
9
9
|
name: options.name,
|
|
10
10
|
path: options.path,
|
|
11
11
|
suffix: 'directive',
|
|
12
|
+
allowedFileExtensions: ['ts'],
|
|
13
|
+
fileExtension: 'ts',
|
|
12
14
|
});
|
|
13
15
|
const { className } = (0, devkit_1.names)(name);
|
|
14
16
|
const { className: suffixClassName } = (0, devkit_1.names)('directive');
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
"examples": [
|
|
8
8
|
{
|
|
9
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.directive.ts"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"description": "Generate a directive without providing the file extension. It results in the directive `FooDirective` at `mylib/src/lib/foo.directive.ts`",
|
|
10
14
|
"command": "nx g @nx/angular:scam-directive mylib/src/lib/foo"
|
|
11
15
|
},
|
|
12
16
|
{
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
"properties": {
|
|
20
24
|
"path": {
|
|
21
25
|
"type": "string",
|
|
22
|
-
"description": "The file path to the SCAM directive
|
|
26
|
+
"description": "The file path to the SCAM directive. Relative to the current working directory.",
|
|
23
27
|
"$default": {
|
|
24
28
|
"$source": "argv",
|
|
25
29
|
"index": 0
|
|
@@ -9,6 +9,8 @@ async function normalizeOptions(tree, options) {
|
|
|
9
9
|
name: options.name,
|
|
10
10
|
path: options.path,
|
|
11
11
|
suffix: 'pipe',
|
|
12
|
+
allowedFileExtensions: ['ts'],
|
|
13
|
+
fileExtension: 'ts',
|
|
12
14
|
});
|
|
13
15
|
const { className } = (0, devkit_1.names)(name);
|
|
14
16
|
const { className: suffixClassName } = (0, devkit_1.names)('pipe');
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
"examples": [
|
|
8
8
|
{
|
|
9
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.pipe.ts"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"description": "Generate a pipe without providing the file extension. It results in the pipe `FooPipe` at `mylib/src/lib/foo.pipe.ts`",
|
|
10
14
|
"command": "nx g @nx/angular:scam-pipe mylib/src/lib/foo"
|
|
11
15
|
},
|
|
12
16
|
{
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
"properties": {
|
|
20
24
|
"path": {
|
|
21
25
|
"type": "string",
|
|
22
|
-
"description": "The file path to the SCAM pipe
|
|
26
|
+
"description": "The file path to the SCAM pipe. Relative to the current working directory.",
|
|
23
27
|
"$default": {
|
|
24
28
|
"$source": "argv",
|
|
25
29
|
"index": 0
|