@nx/angular 19.0.1 → 19.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +8 -8
- package/src/builders/dev-server/schema.json +1 -1
- package/src/builders/webpack-browser/schema.d.ts +1 -1
- package/src/executors/module-federation-dev-server/schema.json +1 -1
- package/src/generators/component/schema.d.ts +3 -3
- package/src/generators/component/schema.json +2 -2
- package/src/generators/directive/schema.d.ts +3 -3
- package/src/generators/directive/schema.json +2 -2
- package/src/generators/host/host.js +11 -0
- package/src/generators/pipe/schema.d.ts +3 -3
- package/src/generators/pipe/schema.json +2 -2
- package/src/generators/scam/schema.d.ts +3 -3
- package/src/generators/scam/schema.json +2 -2
- package/src/generators/scam-directive/schema.d.ts +3 -3
- package/src/generators/scam-directive/schema.json +2 -2
- package/src/generators/scam-pipe/schema.d.ts +3 -3
- package/src/generators/scam-pipe/schema.json +2 -2
- package/src/generators/storybook-configuration/schema.json +3 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "19.0.
|
3
|
+
"version": "19.0.3",
|
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,14 +78,14 @@
|
|
78
78
|
"tslib": "^2.3.0",
|
79
79
|
"webpack": "^5.80.0",
|
80
80
|
"webpack-merge": "^5.8.0",
|
81
|
-
"@nx/devkit": "19.0.
|
82
|
-
"@nx/js": "19.0.
|
83
|
-
"@nx/eslint": "19.0.
|
84
|
-
"@nx/webpack": "19.0.
|
85
|
-
"@nx/web": "19.0.
|
86
|
-
"@nx/workspace": "19.0.
|
81
|
+
"@nx/devkit": "19.0.3",
|
82
|
+
"@nx/js": "19.0.3",
|
83
|
+
"@nx/eslint": "19.0.3",
|
84
|
+
"@nx/webpack": "19.0.3",
|
85
|
+
"@nx/web": "19.0.3",
|
86
|
+
"@nx/workspace": "19.0.3",
|
87
87
|
"piscina": "^4.4.0",
|
88
|
-
"@nrwl/angular": "19.0.
|
88
|
+
"@nrwl/angular": "19.0.3"
|
89
89
|
},
|
90
90
|
"peerDependencies": {
|
91
91
|
"@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"type": "string",
|
18
18
|
"description": "A browser builder target to serve in the format of `project:target[:configuration]`. Ignored if `buildTarget` is set.",
|
19
19
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$",
|
20
|
-
"x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx
|
20
|
+
"x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v20."
|
21
21
|
},
|
22
22
|
"buildTarget": {
|
23
23
|
"type": "string",
|
@@ -7,7 +7,7 @@ export type BrowserBuilderSchema = Schema & {
|
|
7
7
|
indexHtmlTransformer?: string;
|
8
8
|
buildLibsFromSource?: boolean;
|
9
9
|
/**
|
10
|
-
* @deprecated Use `indexHtmlTransformer` instead. It will be removed in Nx
|
10
|
+
* @deprecated Use `indexHtmlTransformer` instead. It will be removed in Nx 20.
|
11
11
|
*/
|
12
12
|
indexFileTransformer?: string;
|
13
13
|
};
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"type": "string",
|
16
16
|
"description": "A browser builder target to serve in the format of `project:target[:configuration]`.",
|
17
17
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$",
|
18
|
-
"x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx
|
18
|
+
"x-deprecated": "Use 'buildTarget' instead. It will be removed in Nx v20."
|
19
19
|
},
|
20
20
|
"buildTarget": {
|
21
21
|
"type": "string",
|
@@ -22,15 +22,15 @@ export interface Schema {
|
|
22
22
|
skipFormat?: boolean;
|
23
23
|
|
24
24
|
/**
|
25
|
-
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
25
|
+
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.
|
26
26
|
*/
|
27
27
|
flat?: boolean;
|
28
28
|
/**
|
29
|
-
* @deprecated Provide the `directory` option instead. It will be removed in Nx
|
29
|
+
* @deprecated Provide the `directory` option instead. It will be removed in Nx v20.
|
30
30
|
*/
|
31
31
|
path?: string;
|
32
32
|
/**
|
33
|
-
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx
|
33
|
+
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20.
|
34
34
|
*/
|
35
35
|
project?: string;
|
36
36
|
}
|
@@ -34,7 +34,7 @@
|
|
34
34
|
"$source": "projectName"
|
35
35
|
},
|
36
36
|
"x-dropdown": "projects",
|
37
|
-
"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
|
37
|
+
"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."
|
38
38
|
},
|
39
39
|
"prefix": {
|
40
40
|
"type": "string",
|
@@ -98,7 +98,7 @@
|
|
98
98
|
"type": "boolean",
|
99
99
|
"description": "Create the new files at the top level of the current project.",
|
100
100
|
"default": false,
|
101
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
101
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
|
102
102
|
},
|
103
103
|
"skipImport": {
|
104
104
|
"type": "boolean",
|
@@ -13,15 +13,15 @@ export interface Schema {
|
|
13
13
|
export?: boolean;
|
14
14
|
skipFormat?: boolean;
|
15
15
|
/**
|
16
|
-
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
16
|
+
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.
|
17
17
|
*/
|
18
18
|
flat?: boolean;
|
19
19
|
/**
|
20
|
-
* @deprecated Provide the `directory` option instead. It will be removed in Nx
|
20
|
+
* @deprecated Provide the `directory` option instead. It will be removed in Nx v20.
|
21
21
|
*/
|
22
22
|
path?: string;
|
23
23
|
/**
|
24
|
-
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx
|
24
|
+
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20.
|
25
25
|
*/
|
26
26
|
project?: string;
|
27
27
|
}
|
@@ -34,7 +34,7 @@
|
|
34
34
|
"$source": "projectName"
|
35
35
|
},
|
36
36
|
"x-dropdown": "projects",
|
37
|
-
"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
|
37
|
+
"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."
|
38
38
|
},
|
39
39
|
"prefix": {
|
40
40
|
"type": "string",
|
@@ -74,7 +74,7 @@
|
|
74
74
|
"type": "boolean",
|
75
75
|
"description": "When true (the default), creates the new files at the top level of the current project.",
|
76
76
|
"default": true,
|
77
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
77
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
|
78
78
|
},
|
79
79
|
"module": {
|
80
80
|
"type": "string",
|
@@ -9,6 +9,7 @@ const remote_1 = require("../remote/remote");
|
|
9
9
|
const setup_mf_1 = require("../setup-mf/setup-mf");
|
10
10
|
const lib_1 = require("./lib");
|
11
11
|
const add_mf_env_to_inputs_1 = require("../utils/add-mf-env-to-inputs");
|
12
|
+
const js_1 = require("@nx/js");
|
12
13
|
async function host(tree, options) {
|
13
14
|
return await hostInternal(tree, {
|
14
15
|
projectNameAndRootFormat: 'derived',
|
@@ -22,6 +23,16 @@ async function hostInternal(tree, schema) {
|
|
22
23
|
const projects = (0, devkit_1.getProjects)(tree);
|
23
24
|
const remotesToGenerate = [];
|
24
25
|
const remotesToIntegrate = [];
|
26
|
+
// Check to see if remotes are provided and also check if --dynamic is provided
|
27
|
+
// if both are check that the remotes are valid names else throw an error.
|
28
|
+
if (options.dynamic && options.remotes?.length > 0) {
|
29
|
+
options.remotes.forEach((remote) => {
|
30
|
+
const isValidRemote = (0, js_1.isValidVariable)(remote);
|
31
|
+
if (!isValidRemote.isValid) {
|
32
|
+
throw new Error(`Invalid remote name provided: ${remote}. ${isValidRemote.message}`);
|
33
|
+
}
|
34
|
+
});
|
35
|
+
}
|
25
36
|
if (options.remotes && options.remotes.length > 0) {
|
26
37
|
options.remotes.forEach((remote) => {
|
27
38
|
if (!projects.has(remote)) {
|
@@ -11,15 +11,15 @@ export interface Schema {
|
|
11
11
|
export?: boolean;
|
12
12
|
skipFormat?: boolean;
|
13
13
|
/**
|
14
|
-
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
14
|
+
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.
|
15
15
|
*/
|
16
16
|
flat?: boolean;
|
17
17
|
/**
|
18
|
-
* @deprecated Provide the `directory` option instead. It will be removed in Nx
|
18
|
+
* @deprecated Provide the `directory` option instead. It will be removed in Nx v20.
|
19
19
|
*/
|
20
20
|
path?: string;
|
21
21
|
/**
|
22
|
-
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx
|
22
|
+
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20.
|
23
23
|
*/
|
24
24
|
project?: string;
|
25
25
|
}
|
@@ -34,13 +34,13 @@
|
|
34
34
|
"$source": "projectName"
|
35
35
|
},
|
36
36
|
"x-dropdown": "projects",
|
37
|
-
"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
|
37
|
+
"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."
|
38
38
|
},
|
39
39
|
"flat": {
|
40
40
|
"type": "boolean",
|
41
41
|
"default": true,
|
42
42
|
"description": "When true (the default) creates files at the top level of the project.",
|
43
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
43
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
|
44
44
|
},
|
45
45
|
"skipTests": {
|
46
46
|
"type": "boolean",
|
@@ -19,15 +19,15 @@ export interface Schema {
|
|
19
19
|
export?: boolean;
|
20
20
|
skipFormat?: boolean;
|
21
21
|
/**
|
22
|
-
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
22
|
+
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.
|
23
23
|
*/
|
24
24
|
flat?: boolean;
|
25
25
|
/**
|
26
|
-
* @deprecated Provide the `directory` option instead. It will be removed in Nx
|
26
|
+
* @deprecated Provide the `directory` option instead. It will be removed in Nx v20.
|
27
27
|
*/
|
28
28
|
path?: string;
|
29
29
|
/**
|
30
|
-
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx
|
30
|
+
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20.
|
31
31
|
*/
|
32
32
|
project?: string;
|
33
33
|
}
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"$source": "projectName"
|
41
41
|
},
|
42
42
|
"x-dropdown": "projects",
|
43
|
-
"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
|
43
|
+
"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."
|
44
44
|
},
|
45
45
|
"displayBlock": {
|
46
46
|
"description": "Specifies if the style will contain `:host { display: block; }`.",
|
@@ -94,7 +94,7 @@
|
|
94
94
|
"type": "boolean",
|
95
95
|
"description": "Create the new files at the top level of the current project.",
|
96
96
|
"default": false,
|
97
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
97
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
|
98
98
|
},
|
99
99
|
"selector": {
|
100
100
|
"type": "string",
|
@@ -11,15 +11,15 @@ export interface Schema {
|
|
11
11
|
export?: boolean;
|
12
12
|
skipFormat?: boolean;
|
13
13
|
/**
|
14
|
-
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
14
|
+
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.
|
15
15
|
*/
|
16
16
|
flat?: boolean;
|
17
17
|
/**
|
18
|
-
* @deprecated Provide the `directory` option instead. It will be removed in Nx
|
18
|
+
* @deprecated Provide the `directory` option instead. It will be removed in Nx v20.
|
19
19
|
*/
|
20
20
|
path?: string;
|
21
21
|
/**
|
22
|
-
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx
|
22
|
+
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20.
|
23
23
|
*/
|
24
24
|
project?: string;
|
25
25
|
}
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"$source": "projectName"
|
42
42
|
},
|
43
43
|
"x-dropdown": "projects",
|
44
|
-
"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
|
44
|
+
"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."
|
45
45
|
},
|
46
46
|
"skipTests": {
|
47
47
|
"type": "boolean",
|
@@ -58,7 +58,7 @@
|
|
58
58
|
"type": "boolean",
|
59
59
|
"description": "Create the new files at the top level of the current project.",
|
60
60
|
"default": true,
|
61
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
61
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
|
62
62
|
},
|
63
63
|
"selector": {
|
64
64
|
"type": "string",
|
@@ -9,15 +9,15 @@ export interface Schema {
|
|
9
9
|
export?: boolean;
|
10
10
|
skipFormat?: boolean;
|
11
11
|
/**
|
12
|
-
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
12
|
+
* @deprecated Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20.
|
13
13
|
*/
|
14
14
|
flat?: boolean;
|
15
15
|
/**
|
16
|
-
* @deprecated Provide the `directory` option instead. It will be removed in Nx
|
16
|
+
* @deprecated Provide the `directory` option instead. It will be removed in Nx v20.
|
17
17
|
*/
|
18
18
|
path?: string;
|
19
19
|
/**
|
20
|
-
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx
|
20
|
+
* @deprecated Provide the `directory` option instead. The project will be determined from the directory provided. It will be removed in Nx v20.
|
21
21
|
*/
|
22
22
|
project?: string;
|
23
23
|
}
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"$source": "projectName"
|
42
42
|
},
|
43
43
|
"x-dropdown": "projects",
|
44
|
-
"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
|
44
|
+
"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."
|
45
45
|
},
|
46
46
|
"skipTests": {
|
47
47
|
"type": "boolean",
|
@@ -58,7 +58,7 @@
|
|
58
58
|
"type": "boolean",
|
59
59
|
"description": "Create the new files at the top level of the current project.",
|
60
60
|
"default": true,
|
61
|
-
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx
|
61
|
+
"x-deprecated": "Provide the `directory` option instead and use the `as-provided` format. It will be removed in Nx v20."
|
62
62
|
},
|
63
63
|
"export": {
|
64
64
|
"type": "boolean",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"configureCypress": {
|
30
30
|
"type": "boolean",
|
31
31
|
"description": "Specifies whether to configure Cypress or not.",
|
32
|
-
"x-deprecated": "Use interactionTests instead. This option will be removed in
|
32
|
+
"x-deprecated": "Use interactionTests instead. This option will be removed in v20."
|
33
33
|
},
|
34
34
|
"generateStories": {
|
35
35
|
"type": "boolean",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"generateCypressSpecs": {
|
42
42
|
"type": "boolean",
|
43
43
|
"description": "Specifies whether to automatically generate test files in the generated Cypress e2e app.",
|
44
|
-
"x-deprecated": "Use interactionTests instead. This option will be removed in
|
44
|
+
"x-deprecated": "Use interactionTests instead. This option will be removed in v20."
|
45
45
|
},
|
46
46
|
"configureStaticServe": {
|
47
47
|
"type": "boolean",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"cypressDirectory": {
|
54
54
|
"type": "string",
|
55
55
|
"description": "A directory where the Cypress project will be placed. Placed at the root by default.",
|
56
|
-
"x-deprecated": "Use interactionTests instead. This option will be removed in
|
56
|
+
"x-deprecated": "Use interactionTests instead. This option will be removed in v20."
|
57
57
|
},
|
58
58
|
"linter": {
|
59
59
|
"description": "The tool to use for running lint checks.",
|