@nx/angular 24.0.0-canary.20261020-e7ffd79 → 24.0.0-rc.0
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/dist/src/generators/add-linting/add-linting.js +1 -1
- package/dist/src/generators/add-linting/schema.d.ts +0 -4
- package/dist/src/generators/add-linting/schema.json +0 -6
- package/dist/src/generators/application/lib/add-e2e.js +1 -2
- package/dist/src/generators/application/lib/add-linting.js +1 -2
- package/dist/src/generators/application/schema.d.ts +0 -4
- package/dist/src/generators/application/schema.json +0 -6
- package/dist/src/generators/library/lib/normalized-schema.d.ts +0 -4
- package/dist/src/generators/library/library.js +3 -4
- package/dist/src/generators/library/schema.d.ts +0 -4
- package/dist/src/generators/library/schema.json +0 -6
- package/package.json +11 -11
|
@@ -24,7 +24,7 @@ async function addLintingGenerator(tree, options) {
|
|
|
24
24
|
(0, devkit_1.joinPathFragments)(options.projectRoot, 'tsconfig.app.json'),
|
|
25
25
|
],
|
|
26
26
|
unitTestRunner: options.unitTestRunner,
|
|
27
|
-
enableTypedLinting:
|
|
27
|
+
enableTypedLinting: options.enableTypedLinting,
|
|
28
28
|
rootProject: rootProject,
|
|
29
29
|
skipPackageJson: options.skipPackageJson,
|
|
30
30
|
}));
|
|
@@ -6,10 +6,6 @@ export interface AddLintingGeneratorSchema {
|
|
|
6
6
|
projectRoot: string;
|
|
7
7
|
prefix: string;
|
|
8
8
|
enableTypedLinting?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
11
|
-
*/
|
|
12
|
-
setParserOptionsProject?: boolean;
|
|
13
9
|
skipFormat?: boolean;
|
|
14
10
|
skipPackageJson?: boolean;
|
|
15
11
|
unitTestRunner?: string;
|
|
@@ -38,12 +38,6 @@
|
|
|
38
38
|
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
39
39
|
"default": false
|
|
40
40
|
},
|
|
41
|
-
"setParserOptionsProject": {
|
|
42
|
-
"type": "boolean",
|
|
43
|
-
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
44
|
-
"default": false,
|
|
45
|
-
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
46
|
-
},
|
|
47
41
|
"skipFormat": {
|
|
48
42
|
"type": "boolean",
|
|
49
43
|
"description": "Skip formatting files.",
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addE2e = addE2e;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
-
const internal_2 = require("@nx/eslint/internal");
|
|
7
6
|
const versions_1 = require("../../../utils/versions");
|
|
8
7
|
async function addE2e(tree, options) {
|
|
9
8
|
const e2eWebServerInfo = getAngularE2EWebServerInfo(tree, options.name, options.port);
|
|
@@ -50,7 +49,7 @@ async function addE2e(tree, options) {
|
|
|
50
49
|
directory: 'src',
|
|
51
50
|
js: false,
|
|
52
51
|
linter: options.linter,
|
|
53
|
-
enableTypedLinting:
|
|
52
|
+
enableTypedLinting: options.enableTypedLinting,
|
|
54
53
|
webServerCommand: e2eWebServerInfo.e2eWebServerCommand,
|
|
55
54
|
webServerAddress: e2eWebServerInfo.e2eWebServerAddress,
|
|
56
55
|
ciWebServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addLinting = addLinting;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const internal_1 = require("@nx/eslint/internal");
|
|
6
5
|
const add_linting_1 = tslib_1.__importDefault(require("../../add-linting/add-linting"));
|
|
7
6
|
async function addLinting(host, options) {
|
|
8
7
|
if (options.linter === 'none') {
|
|
@@ -13,7 +12,7 @@ async function addLinting(host, options) {
|
|
|
13
12
|
projectName: options.name,
|
|
14
13
|
projectRoot: options.appProjectRoot,
|
|
15
14
|
prefix: options.prefix,
|
|
16
|
-
enableTypedLinting:
|
|
15
|
+
enableTypedLinting: options.enableTypedLinting,
|
|
17
16
|
skipPackageJson: options.skipPackageJson,
|
|
18
17
|
unitTestRunner: options.unitTestRunner,
|
|
19
18
|
skipFormat: true,
|
|
@@ -21,10 +21,6 @@ export interface Schema {
|
|
|
21
21
|
strict?: boolean;
|
|
22
22
|
port?: number;
|
|
23
23
|
enableTypedLinting?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
26
|
-
*/
|
|
27
|
-
setParserOptionsProject?: boolean;
|
|
28
24
|
skipPackageJson?: boolean;
|
|
29
25
|
standalone?: boolean;
|
|
30
26
|
rootProject?: boolean;
|
|
@@ -137,12 +137,6 @@
|
|
|
137
137
|
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
138
138
|
"default": false
|
|
139
139
|
},
|
|
140
|
-
"setParserOptionsProject": {
|
|
141
|
-
"type": "boolean",
|
|
142
|
-
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
143
|
-
"default": false,
|
|
144
|
-
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
145
|
-
},
|
|
146
140
|
"standalone": {
|
|
147
141
|
"description": "Generate an application that is setup to use standalone components.",
|
|
148
142
|
"type": "boolean",
|
|
@@ -19,10 +19,6 @@ export interface NormalizedSchema {
|
|
|
19
19
|
strict?: boolean;
|
|
20
20
|
compilationMode?: 'full' | 'partial';
|
|
21
21
|
enableTypedLinting?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
24
|
-
*/
|
|
25
|
-
setParserOptionsProject?: boolean;
|
|
26
22
|
skipModule?: boolean;
|
|
27
23
|
skipPackageJson?: boolean;
|
|
28
24
|
skipPostInstall?: boolean;
|
|
@@ -3,10 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.libraryGenerator = libraryGenerator;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
-
const internal_2 = require("@nx/eslint/internal");
|
|
7
6
|
const devkit_1 = require("@nx/devkit");
|
|
8
7
|
const js_1 = require("@nx/js");
|
|
9
|
-
const
|
|
8
|
+
const internal_2 = require("@nx/js/internal");
|
|
10
9
|
const init_1 = tslib_1.__importDefault(require("../../generators/init/init"));
|
|
11
10
|
const assert_supported_angular_version_1 = require("../../utils/assert-supported-angular-version");
|
|
12
11
|
const test_runners_1 = require("../../utils/test-runners");
|
|
@@ -74,7 +73,7 @@ async function libraryGenerator(tree, schema) {
|
|
|
74
73
|
() => (0, devkit_1.installPackagesTask)(tree),
|
|
75
74
|
];
|
|
76
75
|
if (libraryOptions.publishable) {
|
|
77
|
-
tasks.push(await (0,
|
|
76
|
+
tasks.push(await (0, internal_2.releaseTasks)(tree));
|
|
78
77
|
}
|
|
79
78
|
tasks.push(() => (0, internal_1.logShowProjectCommand)(libraryOptions.name));
|
|
80
79
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
@@ -127,7 +126,7 @@ async function addLinting(host, options) {
|
|
|
127
126
|
projectRoot: options.projectRoot,
|
|
128
127
|
prefix: options.prefix,
|
|
129
128
|
unitTestRunner: options.unitTestRunner,
|
|
130
|
-
enableTypedLinting:
|
|
129
|
+
enableTypedLinting: options.enableTypedLinting,
|
|
131
130
|
skipFormat: true,
|
|
132
131
|
skipPackageJson: options.skipPackageJson,
|
|
133
132
|
});
|
|
@@ -23,10 +23,6 @@ export interface Schema {
|
|
|
23
23
|
unitTestRunner?: UnitTestRunner;
|
|
24
24
|
compilationMode?: 'full' | 'partial';
|
|
25
25
|
enableTypedLinting?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
28
|
-
*/
|
|
29
|
-
setParserOptionsProject?: boolean;
|
|
30
26
|
skipModule?: boolean;
|
|
31
27
|
skipPackageJson?: boolean;
|
|
32
28
|
standalone?: boolean;
|
|
@@ -111,12 +111,6 @@
|
|
|
111
111
|
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
112
112
|
"default": false
|
|
113
113
|
},
|
|
114
|
-
"setParserOptionsProject": {
|
|
115
|
-
"type": "boolean",
|
|
116
|
-
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
117
|
-
"default": false,
|
|
118
|
-
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
119
|
-
},
|
|
120
114
|
"skipModule": {
|
|
121
115
|
"type": "boolean",
|
|
122
116
|
"description": "Whether to skip the creation of a default module when generating the library.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"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, 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- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"supportsOptionalMigrations": true
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@nx/devkit": "24.0.0-
|
|
72
|
-
"@nx/eslint": "24.0.0-
|
|
73
|
-
"@nx/js": "24.0.0-
|
|
71
|
+
"@nx/devkit": "24.0.0-rc.0",
|
|
72
|
+
"@nx/eslint": "24.0.0-rc.0",
|
|
73
|
+
"@nx/js": "24.0.0-rc.0",
|
|
74
74
|
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
75
75
|
"@typescript-eslint/type-utils": "^8.0.0",
|
|
76
76
|
"jsonc-parser": "^3.2.0",
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
"tslib": "^2.3.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@nx/storybook": "24.0.0-
|
|
85
|
-
"@nx/vitest": "24.0.0-
|
|
86
|
-
"nx": "24.0.0-
|
|
84
|
+
"@nx/storybook": "24.0.0-rc.0",
|
|
85
|
+
"@nx/vitest": "24.0.0-rc.0",
|
|
86
|
+
"nx": "24.0.0-rc.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@angular/build": ">= 20.0.0 < 23.0.0",
|
|
90
90
|
"@angular-devkit/build-angular": ">= 20.0.0 < 23.0.0",
|
|
91
91
|
"@angular-devkit/core": ">= 20.0.0 < 23.0.0",
|
|
92
92
|
"@angular-devkit/schematics": ">= 20.0.0 < 23.0.0",
|
|
93
|
-
"@nx/cypress": "24.0.0-
|
|
94
|
-
"@nx/playwright": "24.0.0-
|
|
93
|
+
"@nx/cypress": "24.0.0-rc.0",
|
|
94
|
+
"@nx/playwright": "24.0.0-rc.0",
|
|
95
95
|
"@schematics/angular": ">= 20.0.0 < 23.0.0",
|
|
96
|
-
"@nx/rspack": "24.0.0-
|
|
97
|
-
"@nx/webpack": "24.0.0-
|
|
96
|
+
"@nx/rspack": "24.0.0-rc.0",
|
|
97
|
+
"@nx/webpack": "24.0.0-rc.0",
|
|
98
98
|
"ng-packagr": ">= 20.0.0 < 23.0.0",
|
|
99
99
|
"rxjs": "^6.5.3 || ^7.5.0",
|
|
100
100
|
"webpack-merge": "^5.8.0"
|