@nx/angular 17.0.2 → 17.0.3
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": "17.0.
|
|
3
|
+
"version": "17.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, 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- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -79,15 +79,15 @@
|
|
|
79
79
|
"webpack": "^5.80.0",
|
|
80
80
|
"webpack-merge": "^5.8.0",
|
|
81
81
|
"enquirer": "^2.3.6",
|
|
82
|
-
"@nx/devkit": "17.0.
|
|
83
|
-
"@nx/cypress": "17.0.
|
|
84
|
-
"@nx/jest": "17.0.
|
|
85
|
-
"@nx/js": "17.0.
|
|
86
|
-
"@nx/eslint": "17.0.
|
|
87
|
-
"@nx/webpack": "17.0.
|
|
88
|
-
"@nx/web": "17.0.
|
|
89
|
-
"@nx/workspace": "17.0.
|
|
90
|
-
"@nrwl/angular": "17.0.
|
|
82
|
+
"@nx/devkit": "17.0.3",
|
|
83
|
+
"@nx/cypress": "17.0.3",
|
|
84
|
+
"@nx/jest": "17.0.3",
|
|
85
|
+
"@nx/js": "17.0.3",
|
|
86
|
+
"@nx/eslint": "17.0.3",
|
|
87
|
+
"@nx/webpack": "17.0.3",
|
|
88
|
+
"@nx/web": "17.0.3",
|
|
89
|
+
"@nx/workspace": "17.0.3",
|
|
90
|
+
"@nrwl/angular": "17.0.3"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@angular-devkit/build-angular": ">= 14.0.0 < 17.0.0",
|
|
@@ -23,6 +23,7 @@ async function addE2e(tree, options) {
|
|
|
23
23
|
skipPackageJson: options.skipPackageJson,
|
|
24
24
|
skipFormat: true,
|
|
25
25
|
devServerTarget: `${options.name}:serve:development`,
|
|
26
|
+
rootProject: options.rootProject,
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
else if (options.e2eTestRunner === 'playwright') {
|
|
@@ -44,6 +45,7 @@ async function addE2e(tree, options) {
|
|
|
44
45
|
setParserOptionsProject: options.setParserOptionsProject,
|
|
45
46
|
webServerCommand: `${(0, devkit_1.getPackageManagerCommand)().exec} nx serve ${options.name}`,
|
|
46
47
|
webServerAddress: `http://localhost:${options.port ?? 4200}`,
|
|
48
|
+
rootProject: options.rootProject,
|
|
47
49
|
});
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -12,22 +12,22 @@
|
|
|
12
12
|
],
|
|
13
13
|
"type": "object",
|
|
14
14
|
"properties": {
|
|
15
|
-
"
|
|
16
|
-
"description": "The name of the module.",
|
|
15
|
+
"path": {
|
|
17
16
|
"type": "string",
|
|
18
17
|
"$default": {
|
|
19
18
|
"$source": "argv",
|
|
20
19
|
"index": 0
|
|
21
20
|
},
|
|
21
|
+
"description": "The path to locate the federated module.",
|
|
22
|
+
"x-prompt": "What is the path to the module to be federated?"
|
|
23
|
+
},
|
|
24
|
+
"name": {
|
|
25
|
+
"description": "The name of the module.",
|
|
26
|
+
"type": "string",
|
|
22
27
|
"x-prompt": "What name would you like to use for the module?",
|
|
23
28
|
"pattern": "^[a-zA-Z][^:]*$",
|
|
24
29
|
"x-priority": "important"
|
|
25
30
|
},
|
|
26
|
-
"path": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"description": "The path to locate the federated module.",
|
|
29
|
-
"x-prompt": "What is the path to the module to be federated?"
|
|
30
|
-
},
|
|
31
31
|
"remote": {
|
|
32
32
|
"type": "string",
|
|
33
33
|
"description": "The name of the remote.",
|
|
@@ -6,11 +6,11 @@ const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope");
|
|
|
6
6
|
function normalizeNewProjectPrefix(prefix, npmScope, fallbackPrefix) {
|
|
7
7
|
// Prefix needs to be a valid html selector, if npmScope it's not valid, we don't default
|
|
8
8
|
// to it and let it fall through to the Angular schematic to handle it
|
|
9
|
-
// https://github.com/angular/angular-cli/blob/
|
|
10
|
-
const htmlSelectorRegex = /^[a-zA-Z][.0-9a-zA-Z]*(:?-[a-zA-Z][.0-9a-zA-Z]*)
|
|
9
|
+
// https://github.com/angular/angular-cli/blob/aa9f0528f174e856a4923cb24861fdf6e6f96b48/packages/schematics/angular/component/index.ts#L64
|
|
10
|
+
const htmlSelectorRegex = /^[a-zA-Z][.0-9a-zA-Z]*((:?-[0-9]+)*|(:?-[a-zA-Z][.0-9a-zA-Z]*(:?-[0-9]+)*)*)$/;
|
|
11
11
|
if (prefix) {
|
|
12
12
|
if (!htmlSelectorRegex.test(prefix)) {
|
|
13
|
-
throw new Error('The provided "prefix" is invalid. The prefix must start with a letter, and must contain only alphanumeric characters or dashes.
|
|
13
|
+
throw new Error('The provided "prefix" is invalid. The prefix must start with a letter, and must contain only alphanumeric characters or dashes.');
|
|
14
14
|
}
|
|
15
15
|
return prefix;
|
|
16
16
|
}
|
|
@@ -23,7 +23,7 @@ There are two options that can be followed to resolve this issue:
|
|
|
23
23
|
|
|
24
24
|
If you encountered this error when creating a new Nx Workspace, the workspace name or "npmScope" is invalid to use as the selector prefix for the application being generated.
|
|
25
25
|
|
|
26
|
-
Valid selector prefixes must start with a letter, and must contain only alphanumeric characters or dashes
|
|
26
|
+
Valid selector prefixes must start with a letter, and must contain only alphanumeric characters or dashes.`);
|
|
27
27
|
}
|
|
28
28
|
return npmScope || fallbackPrefix;
|
|
29
29
|
}
|