@nrwl/angular 15.5.1 → 15.5.2
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/CHANGELOG.md +1 -1
- package/migrations.json +13 -0
- package/package.json +18 -10
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.js +15 -19
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-package.transform.js.map +1 -1
- package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.js +27 -4
- package/src/executors/package/ng-packagr-adjustments/ts/cache-compiler-host.js.map +1 -1
- package/src/executors/utilities/angular-version-utils.d.ts +3 -2
- package/src/executors/utilities/angular-version-utils.js +7 -3
- package/src/executors/utilities/angular-version-utils.js.map +1 -1
- package/src/generators/add-linting/angular-v14/lib/add-angular-eslint-dependencies.js +4 -4
- package/src/generators/add-linting/angular-v14/lib/add-angular-eslint-dependencies.js.map +1 -1
- package/src/generators/add-linting/schema.json +10 -5
- package/src/generators/application/application.js +6 -0
- package/src/generators/application/application.js.map +1 -1
- package/src/generators/application/schema.json +13 -7
- package/src/generators/change-storybook-targets/schema.json +2 -1
- package/src/generators/component/schema.json +6 -3
- package/src/generators/component-cypress-spec/schema.json +12 -6
- package/src/generators/component-story/schema.json +10 -5
- package/src/generators/component-test/schema.json +10 -5
- package/src/generators/convert-to-with-mf/schema.json +2 -1
- package/src/generators/convert-tslint-to-eslint/schema.json +4 -2
- package/src/generators/cypress-component-configuration/schema.json +6 -3
- package/src/generators/downgrade-module/schema.json +8 -4
- package/src/generators/host/schema.json +10 -5
- package/src/generators/init/angular-v14/init.js +24 -23
- package/src/generators/init/angular-v14/init.js.map +1 -1
- package/src/generators/init/schema.json +12 -6
- package/src/generators/karma/angular-v14/karma.js +10 -10
- package/src/generators/karma/angular-v14/karma.js.map +1 -1
- package/src/generators/karma/schema.json +2 -1
- package/src/generators/karma-project/schema.json +6 -3
- package/src/generators/library/library.js +5 -8
- package/src/generators/library/library.js.map +1 -1
- package/src/generators/library/schema.json +18 -9
- package/src/generators/library-secondary-entry-point/schema.json +4 -2
- package/src/generators/move/schema.json +6 -3
- package/src/generators/ng-add/schema.json +14 -7
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.actions.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.effects.spec.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.effects.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.facade.spec.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.facade.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.models.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.reducer.spec.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.reducer.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.selectors.spec.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/{__directory__ → latest/__directory__}/__fileName__.selectors.ts__tmpl__ +0 -0
- package/src/generators/ngrx/files/no-inject/__directory__/__fileName__.effects.ts__tmpl__ +22 -0
- package/src/generators/ngrx/files/no-inject/__directory__/__fileName__.facade.ts__tmpl__ +27 -0
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js +12 -8
- package/src/generators/ngrx/lib/add-ngrx-to-package-json.js.map +1 -1
- package/src/generators/ngrx/lib/generate-files.js +7 -1
- package/src/generators/ngrx/lib/generate-files.js.map +1 -1
- package/src/generators/ngrx/lib/index.d.ts +1 -0
- package/src/generators/ngrx/lib/index.js +3 -1
- package/src/generators/ngrx/lib/index.js.map +1 -1
- package/src/generators/ngrx/lib/validate-options.d.ts +3 -0
- package/src/generators/ngrx/lib/validate-options.js +36 -0
- package/src/generators/ngrx/lib/validate-options.js.map +1 -0
- package/src/generators/ngrx/ngrx.js +1 -9
- package/src/generators/ngrx/ngrx.js.map +1 -1
- package/src/generators/ngrx/schema.json +12 -7
- package/src/generators/remote/schema.json +6 -3
- package/src/generators/scam/schema.json +6 -3
- package/src/generators/scam-directive/schema.json +8 -4
- package/src/generators/scam-pipe/schema.json +8 -4
- package/src/generators/scam-to-standalone/scam-to-standalone.js +7 -0
- package/src/generators/scam-to-standalone/scam-to-standalone.js.map +1 -1
- package/src/generators/scam-to-standalone/schema.json +7 -4
- package/src/generators/setup-mf/schema.json +6 -3
- package/src/generators/setup-ssr/schema.json +2 -1
- package/src/generators/setup-ssr/setup-ssr.js +6 -13
- package/src/generators/setup-ssr/setup-ssr.js.map +1 -1
- package/src/generators/setup-tailwind/schema.json +4 -2
- package/src/generators/stories/schema.json +6 -3
- package/src/generators/storybook-configuration/schema.json +2 -1
- package/src/generators/upgrade-module/schema.json +10 -5
- package/src/generators/web-worker/schema.json +6 -3
- package/src/utils/backward-compatible-versions.d.ts +6 -0
- package/src/utils/backward-compatible-versions.js +41 -0
- package/src/utils/backward-compatible-versions.js.map +1 -0
- package/src/utils/version-utils.d.ts +3 -0
- package/src/utils/version-utils.js +22 -0
- package/src/utils/version-utils.js.map +1 -0
- package/src/utils/versions.d.ts +1 -38
- package/src/utils/versions.js +2 -39
- package/src/utils/versions.js.map +1 -1
|
@@ -9,30 +9,35 @@
|
|
|
9
9
|
"type": "string",
|
|
10
10
|
"description": "The name of the project where the component is located.",
|
|
11
11
|
"x-dropdown": "projects",
|
|
12
|
-
"x-prompt": "What project is the component located in?"
|
|
12
|
+
"x-prompt": "What project is the component located in?",
|
|
13
|
+
"x-priority": "important"
|
|
13
14
|
},
|
|
14
15
|
"componentName": {
|
|
15
16
|
"type": "string",
|
|
16
17
|
"description": "Class name of the component to create a test for.",
|
|
17
18
|
"examples": ["MyFancyButtonComponent"],
|
|
18
|
-
"x-prompt": "What is the class name of the component to create a test for?"
|
|
19
|
+
"x-prompt": "What is the class name of the component to create a test for?",
|
|
20
|
+
"x-priority": "important"
|
|
19
21
|
},
|
|
20
22
|
"componentDir": {
|
|
21
23
|
"type": "string",
|
|
22
24
|
"description": "Relative path to the folder that contains the component from the project root.",
|
|
23
25
|
"examples": ["src/lib/my-fancy-button"],
|
|
24
|
-
"x-prompt": "What is the path to the component directory from the project root?"
|
|
26
|
+
"x-prompt": "What is the path to the component directory from the project root?",
|
|
27
|
+
"x-priority": "important"
|
|
25
28
|
},
|
|
26
29
|
"componentFileName": {
|
|
27
30
|
"type": "string",
|
|
28
31
|
"description": "File name that contains the component without the `.ts` extension.",
|
|
29
32
|
"examples": ["my-fancy-button.component"],
|
|
30
|
-
"x-prompt": "What is the file name that contains the component?"
|
|
33
|
+
"x-prompt": "What is the file name that contains the component?",
|
|
34
|
+
"x-priority": "important"
|
|
31
35
|
},
|
|
32
36
|
"skipFormat": {
|
|
33
37
|
"description": "Skip formatting files.",
|
|
34
38
|
"type": "boolean",
|
|
35
|
-
"default": false
|
|
39
|
+
"default": false,
|
|
40
|
+
"x-priority": "internal"
|
|
36
41
|
}
|
|
37
42
|
},
|
|
38
43
|
"additionalProperties": false,
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"$source": "argv",
|
|
28
28
|
"index": 0
|
|
29
29
|
},
|
|
30
|
-
"x-prompt": "Which Angular project would you like to convert from TSLint to ESLint?"
|
|
30
|
+
"x-prompt": "Which Angular project would you like to convert from TSLint to ESLint?",
|
|
31
|
+
"x-priority": "important"
|
|
31
32
|
},
|
|
32
33
|
"ignoreExistingTslintConfig": {
|
|
33
34
|
"type": "boolean",
|
|
@@ -44,7 +45,8 @@
|
|
|
44
45
|
"skipFormat": {
|
|
45
46
|
"type": "boolean",
|
|
46
47
|
"description": "Skip formatting files.",
|
|
47
|
-
"default": false
|
|
48
|
+
"default": false,
|
|
49
|
+
"x-priority": "internal"
|
|
48
50
|
}
|
|
49
51
|
},
|
|
50
52
|
"additionalProperties": false,
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"type": "string",
|
|
11
11
|
"description": "The name of the project to add cypress component testing configuration to",
|
|
12
12
|
"x-dropdown": "projects",
|
|
13
|
-
"x-prompt": "What project should we add Cypress component testing to?"
|
|
13
|
+
"x-prompt": "What project should we add Cypress component testing to?",
|
|
14
|
+
"x-priority": "important"
|
|
14
15
|
},
|
|
15
16
|
"generateTests": {
|
|
16
17
|
"type": "boolean",
|
|
@@ -21,12 +22,14 @@
|
|
|
21
22
|
"buildTarget": {
|
|
22
23
|
"type": "string",
|
|
23
24
|
"description": "A build target used to configure Cypress component testing in the format of `project:target[:configuration]`. The build target should be an angular app. If not provided we will try to infer it from your projects usage.",
|
|
24
|
-
"pattern": "^[^:\\s]+:[^:\\s]+(:\\S+)?$"
|
|
25
|
+
"pattern": "^[^:\\s]+:[^:\\s]+(:\\S+)?$",
|
|
26
|
+
"x-priority": "important"
|
|
25
27
|
},
|
|
26
28
|
"skipFormat": {
|
|
27
29
|
"type": "boolean",
|
|
28
30
|
"description": "Skip formatting files",
|
|
29
|
-
"default": false
|
|
31
|
+
"default": false,
|
|
32
|
+
"x-priority": "internal"
|
|
30
33
|
}
|
|
31
34
|
},
|
|
32
35
|
"required": ["project"],
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"properties": {
|
|
9
9
|
"project": {
|
|
10
10
|
"type": "string",
|
|
11
|
-
"description": "The name of the project."
|
|
11
|
+
"description": "The name of the project.",
|
|
12
|
+
"x-priority": "important"
|
|
12
13
|
},
|
|
13
14
|
"name": {
|
|
14
15
|
"type": "string",
|
|
@@ -16,7 +17,8 @@
|
|
|
16
17
|
"$default": {
|
|
17
18
|
"$source": "argv",
|
|
18
19
|
"index": 0
|
|
19
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"x-priority": "important"
|
|
20
22
|
},
|
|
21
23
|
"angularJsImport": {
|
|
22
24
|
"type": "string",
|
|
@@ -25,12 +27,14 @@
|
|
|
25
27
|
"skipFormat": {
|
|
26
28
|
"type": "boolean",
|
|
27
29
|
"description": "Skip formatting files.",
|
|
28
|
-
"default": false
|
|
30
|
+
"default": false,
|
|
31
|
+
"x-priority": "internal"
|
|
29
32
|
},
|
|
30
33
|
"skipPackageJson": {
|
|
31
34
|
"type": "boolean",
|
|
32
35
|
"description": "Do not add `@angular/upgrade` to `package.json` (e.g., `--skipPackageJson`).",
|
|
33
|
-
"default": false
|
|
36
|
+
"default": false,
|
|
37
|
+
"x-priority": "internal"
|
|
34
38
|
}
|
|
35
39
|
},
|
|
36
40
|
"additionalProperties": false,
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"remotes": {
|
|
24
24
|
"type": "array",
|
|
25
|
-
"description": "The names of the remote applications to add to the host."
|
|
25
|
+
"description": "The names of the remote applications to add to the host.",
|
|
26
|
+
"x-priority": "important"
|
|
26
27
|
},
|
|
27
28
|
"dynamic": {
|
|
28
29
|
"type": "boolean",
|
|
@@ -93,12 +94,14 @@
|
|
|
93
94
|
"skipPackageJson": {
|
|
94
95
|
"type": "boolean",
|
|
95
96
|
"default": false,
|
|
96
|
-
"description": "Do not add dependencies to `package.json`."
|
|
97
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
98
|
+
"x-priority": "internal"
|
|
97
99
|
},
|
|
98
100
|
"skipPostInstall": {
|
|
99
101
|
"type": "boolean",
|
|
100
102
|
"default": false,
|
|
101
|
-
"description": "Do not add or append `ngcc` to the `postinstall` script in `package.json`."
|
|
103
|
+
"description": "Do not add or append `ngcc` to the `postinstall` script in `package.json`.",
|
|
104
|
+
"x-priority": "internal"
|
|
102
105
|
},
|
|
103
106
|
"unitTestRunner": {
|
|
104
107
|
"type": "string",
|
|
@@ -148,7 +151,8 @@
|
|
|
148
151
|
"skipFormat": {
|
|
149
152
|
"description": "Skip formatting files.",
|
|
150
153
|
"type": "boolean",
|
|
151
|
-
"default": false
|
|
154
|
+
"default": false,
|
|
155
|
+
"x-priority": "internal"
|
|
152
156
|
},
|
|
153
157
|
"standalone": {
|
|
154
158
|
"type": "boolean",
|
|
@@ -158,7 +162,8 @@
|
|
|
158
162
|
"ssr": {
|
|
159
163
|
"description": "Whether to configure SSR for the host application",
|
|
160
164
|
"type": "boolean",
|
|
161
|
-
"default": false
|
|
165
|
+
"default": false,
|
|
166
|
+
"x-priority": "important"
|
|
162
167
|
}
|
|
163
168
|
},
|
|
164
169
|
"additionalProperties": false,
|
|
@@ -7,9 +7,9 @@ const devkit_1 = require("@nrwl/devkit");
|
|
|
7
7
|
const jest_1 = require("@nrwl/jest");
|
|
8
8
|
const linter_1 = require("@nrwl/linter");
|
|
9
9
|
const run_tasks_in_serial_1 = require("@nrwl/workspace/src/utilities/run-tasks-in-serial");
|
|
10
|
+
const backward_compatible_versions_1 = require("../../../utils/backward-compatible-versions");
|
|
10
11
|
const test_runners_1 = require("../../../utils/test-runners");
|
|
11
12
|
const karma_1 = require("../../karma/karma");
|
|
12
|
-
const versions_1 = require("../../../utils/versions");
|
|
13
13
|
function angularInitGenerator(host, rawOptions) {
|
|
14
14
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
const options = normalizeOptions(rawOptions);
|
|
@@ -49,22 +49,22 @@ function setDefaults(host, options) {
|
|
|
49
49
|
}
|
|
50
50
|
function updateDependencies(host) {
|
|
51
51
|
return (0, devkit_1.addDependenciesToPackageJson)(host, {
|
|
52
|
-
'@angular/animations':
|
|
53
|
-
'@angular/common':
|
|
54
|
-
'@angular/compiler':
|
|
55
|
-
'@angular/core':
|
|
56
|
-
'@angular/forms':
|
|
57
|
-
'@angular/platform-browser':
|
|
58
|
-
'@angular/platform-browser-dynamic':
|
|
59
|
-
'@angular/router':
|
|
60
|
-
rxjs:
|
|
61
|
-
tslib:
|
|
62
|
-
'zone.js':
|
|
52
|
+
'@angular/animations': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
53
|
+
'@angular/common': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
54
|
+
'@angular/compiler': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
55
|
+
'@angular/core': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
56
|
+
'@angular/forms': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
57
|
+
'@angular/platform-browser': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
58
|
+
'@angular/platform-browser-dynamic': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
59
|
+
'@angular/router': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
60
|
+
rxjs: backward_compatible_versions_1.backwardCompatibleVersions.angularV14.rxjsVersion,
|
|
61
|
+
tslib: backward_compatible_versions_1.backwardCompatibleVersions.angularV14.tsLibVersion,
|
|
62
|
+
'zone.js': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.zoneJsVersion,
|
|
63
63
|
}, {
|
|
64
|
-
'@angular/cli':
|
|
65
|
-
'@angular/compiler-cli':
|
|
66
|
-
'@angular/language-service':
|
|
67
|
-
'@angular-devkit/build-angular':
|
|
64
|
+
'@angular/cli': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularDevkitVersion,
|
|
65
|
+
'@angular/compiler-cli': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
66
|
+
'@angular/language-service': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularVersion,
|
|
67
|
+
'@angular-devkit/build-angular': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.angularDevkitVersion,
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
function addUnitTestRunner(host, options) {
|
|
@@ -77,7 +77,7 @@ function addUnitTestRunner(host, options) {
|
|
|
77
77
|
case test_runners_1.UnitTestRunner.Jest:
|
|
78
78
|
if (!options.skipPackageJson) {
|
|
79
79
|
(0, devkit_1.addDependenciesToPackageJson)(host, {}, {
|
|
80
|
-
'jest-preset-angular':
|
|
80
|
+
'jest-preset-angular': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.jestPresetAngularVersion,
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
return (0, jest_1.jestInitGenerator)(host, {
|
|
@@ -93,12 +93,13 @@ function addE2ETestRunner(host, options) {
|
|
|
93
93
|
case test_runners_1.E2eTestRunner.Protractor:
|
|
94
94
|
return !options.skipPackageJson
|
|
95
95
|
? (0, devkit_1.addDependenciesToPackageJson)(host, {}, {
|
|
96
|
-
protractor:
|
|
97
|
-
'jasmine-core':
|
|
98
|
-
'jasmine-spec-reporter':
|
|
99
|
-
|
|
100
|
-
'
|
|
101
|
-
'@types/
|
|
96
|
+
protractor: backward_compatible_versions_1.backwardCompatibleVersions.angularV14.protractorVersion,
|
|
97
|
+
'jasmine-core': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.jasmineCoreVersion,
|
|
98
|
+
'jasmine-spec-reporter': backward_compatible_versions_1.backwardCompatibleVersions.angularV14
|
|
99
|
+
.jasmineSpecReporterVersion,
|
|
100
|
+
'ts-node': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.tsNodeVersion,
|
|
101
|
+
'@types/jasmine': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.typesJasmineVersion,
|
|
102
|
+
'@types/jasminewd2': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.typesJasminewd2Version,
|
|
102
103
|
})
|
|
103
104
|
: () => { };
|
|
104
105
|
case test_runners_1.E2eTestRunner.Cypress:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/init/angular-v14/init.ts"],"names":[],"mappings":";;;;AAAA,2CAAqD;AACrD,yCAQsB;AACtB,qCAA+C;AAC/C,yCAAsC;AACtC,2FAAqF;AACrF,8DAA4E;AAC5E,6CAAmD;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/init/angular-v14/init.ts"],"names":[],"mappings":";;;;AAAA,2CAAqD;AACrD,yCAQsB;AACtB,qCAA+C;AAC/C,yCAAsC;AACtC,2FAAqF;AACrF,8FAAyF;AACzF,8DAA4E;AAC5E,6CAAmD;AAGnD,SAAsB,oBAAoB,CACxC,IAAU,EACV,UAAkB;;QAElB,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAC7C,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE3B,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,eAAe;YACvC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC;YAC1B,CAAC,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC;QACb,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAChD,iBAAiB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAEpC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,sCAAgB,EAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAnBD,oDAmBC;AAED,SAAS,gBAAgB,CAAC,OAAe;;IACvC,OAAO;QACL,aAAa,EAAE,MAAA,OAAO,CAAC,aAAa,mCAAI,4BAAa,CAAC,OAAO;QAC7D,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,eAAM,CAAC,MAAM;QACvC,UAAU,EAAE,MAAA,OAAO,CAAC,UAAU,mCAAI,KAAK;QACvC,WAAW,EAAE,MAAA,OAAO,CAAC,WAAW,mCAAI,KAAK;QACzC,eAAe,EAAE,MAAA,OAAO,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E,OAAO,CAAC,CAAC;KACnC;SAAM;QACL,eAAM,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;KACxD;AACH,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -16,29 +16,34 @@
|
|
|
16
16
|
"type": "string",
|
|
17
17
|
"enum": ["karma", "jest", "none"],
|
|
18
18
|
"description": "Test runner to use for unit tests.",
|
|
19
|
-
"default": "jest"
|
|
19
|
+
"default": "jest",
|
|
20
|
+
"x-priority": "important"
|
|
20
21
|
},
|
|
21
22
|
"e2eTestRunner": {
|
|
22
23
|
"type": "string",
|
|
23
24
|
"enum": ["protractor", "cypress", "none"],
|
|
24
25
|
"description": "Test runner to use for end to end (e2e) tests.",
|
|
25
|
-
"default": "cypress"
|
|
26
|
+
"default": "cypress",
|
|
27
|
+
"x-priority": "important"
|
|
26
28
|
},
|
|
27
29
|
"skipInstall": {
|
|
28
30
|
"type": "boolean",
|
|
29
31
|
"description": "Skip installing after adding `@nrwl/workspace`.",
|
|
30
|
-
"default": false
|
|
32
|
+
"default": false,
|
|
33
|
+
"x-priority": "internal"
|
|
31
34
|
},
|
|
32
35
|
"skipFormat": {
|
|
33
36
|
"description": "Skip formatting files.",
|
|
34
37
|
"type": "boolean",
|
|
35
|
-
"default": false
|
|
38
|
+
"default": false,
|
|
39
|
+
"x-priority": "internal"
|
|
36
40
|
},
|
|
37
41
|
"linter": {
|
|
38
42
|
"description": "The tool to use for running lint checks.",
|
|
39
43
|
"type": "string",
|
|
40
44
|
"enum": ["eslint", "none"],
|
|
41
|
-
"default": "eslint"
|
|
45
|
+
"default": "eslint",
|
|
46
|
+
"x-priority": "important"
|
|
42
47
|
},
|
|
43
48
|
"style": {
|
|
44
49
|
"description": "The file extension to be used for style files.",
|
|
@@ -71,7 +76,8 @@
|
|
|
71
76
|
"skipPackageJson": {
|
|
72
77
|
"type": "boolean",
|
|
73
78
|
"default": false,
|
|
74
|
-
"description": "Do not add dependencies to `package.json`."
|
|
79
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
80
|
+
"x-priority": "internal"
|
|
75
81
|
}
|
|
76
82
|
},
|
|
77
83
|
"additionalProperties": false
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.karmaGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
const
|
|
5
|
+
const backward_compatible_versions_1 = require("../../../utils/backward-compatible-versions");
|
|
6
6
|
function addTestInputs(tree) {
|
|
7
7
|
var _a, _b, _c, _d;
|
|
8
8
|
var _e, _f;
|
|
@@ -41,15 +41,15 @@ function karmaGenerator(tree, options) {
|
|
|
41
41
|
return () => { };
|
|
42
42
|
}
|
|
43
43
|
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
44
|
-
karma:
|
|
45
|
-
'karma-chrome-launcher':
|
|
46
|
-
'karma-coverage':
|
|
47
|
-
'karma-jasmine':
|
|
48
|
-
'karma-jasmine-html-reporter':
|
|
49
|
-
'jasmine-core':
|
|
50
|
-
'jasmine-spec-reporter':
|
|
51
|
-
'@types/jasmine':
|
|
52
|
-
'@types/node':
|
|
44
|
+
karma: backward_compatible_versions_1.backwardCompatibleVersions.angularV14.karmaVersion,
|
|
45
|
+
'karma-chrome-launcher': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.karmaChromeLauncherVersion,
|
|
46
|
+
'karma-coverage': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.karmaCoverageVersion,
|
|
47
|
+
'karma-jasmine': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.karmaJasmineVersion,
|
|
48
|
+
'karma-jasmine-html-reporter': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.karmaJasmineHtmlReporterVersion,
|
|
49
|
+
'jasmine-core': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.jasmineCoreVersion,
|
|
50
|
+
'jasmine-spec-reporter': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.jasmineSpecReporterVersion,
|
|
51
|
+
'@types/jasmine': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.typesJasmineVersion,
|
|
52
|
+
'@types/node': backward_compatible_versions_1.backwardCompatibleVersions.angularV14.typesNodeVersion,
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
exports.karmaGenerator = karmaGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"karma.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/karma/angular-v14/karma.ts"],"names":[],"mappings":";;;AACA,yCAOsB;AACtB,
|
|
1
|
+
{"version":3,"file":"karma.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/karma/angular-v14/karma.ts"],"names":[],"mappings":";;;AACA,yCAOsB;AACtB,8FAAyF;AAGzF,SAAS,aAAa,CAAC,IAAU;;;IAC/B,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;IAEhC,MAAM,iBAAiB,GAAG,MAAA,MAAM,CAAC,WAAW,0CAAE,UAAU,CAAC;IACzD,IAAI,iBAAiB,EAAE;QACrB,iBAAiB,CAAC,IAAI;QACpB,6CAA6C;QAC7C,gCAAgC;QAChC,4BAA4B;QAC5B,mCAAmC;QACnC,uBAAuB;QACvB,8BAA8B,CAC/B,CAAC;QACF,iBAAiB;QACjB,MAAM,CAAC,WAAW,CAAC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC;KACxE;IAED,0FAA0F;IAC1F,MAAA,MAAM,CAAC,cAAc,oCAArB,MAAM,CAAC,cAAc,GAAK,EAAE,EAAC;IAC7B,YAAA,MAAM,CAAC,cAAc,EAAC,IAAI,uCAAJ,IAAI,GAAK,EAAE,EAAC;IAClC,YAAA,MAAM,CAAC,cAAc,CAAC,IAAI,EAAC,MAAM,uCAAN,MAAM,GAAK;QACpC,SAAS;QACT,iBAAiB,CAAC,CAAC,CAAC,aA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F,CAAC;AACJ,CAAC;AApCD,wCAoCC;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"skipPackageJson": {
|
|
16
16
|
"type": "boolean",
|
|
17
17
|
"default": false,
|
|
18
|
-
"description": "Do not add dependencies to `package.json`."
|
|
18
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
19
|
+
"x-priority": "internal"
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
"additionalProperties": false,
|
|
@@ -9,17 +9,20 @@
|
|
|
9
9
|
"project": {
|
|
10
10
|
"type": "string",
|
|
11
11
|
"description": "The name of the project.",
|
|
12
|
-
"x-dropdown": "projects"
|
|
12
|
+
"x-dropdown": "projects",
|
|
13
|
+
"x-priority": "important"
|
|
13
14
|
},
|
|
14
15
|
"skipFormat": {
|
|
15
16
|
"description": "Skip formatting files.",
|
|
16
17
|
"type": "boolean",
|
|
17
|
-
"default": false
|
|
18
|
+
"default": false,
|
|
19
|
+
"x-priority": "internal"
|
|
18
20
|
},
|
|
19
21
|
"skipPackageJson": {
|
|
20
22
|
"description": "Skip updating package.json.",
|
|
21
23
|
"type": "boolean",
|
|
22
|
-
"default": false
|
|
24
|
+
"default": false,
|
|
25
|
+
"x-priority": "internal"
|
|
23
26
|
}
|
|
24
27
|
},
|
|
25
28
|
"additionalProperties": false,
|
|
@@ -7,24 +7,23 @@ const ngcli_adapter_1 = require("@nrwl/devkit/ngcli-adapter");
|
|
|
7
7
|
const jest_1 = require("@nrwl/jest");
|
|
8
8
|
const linter_1 = require("@nrwl/linter");
|
|
9
9
|
const generators_1 = require("@nrwl/workspace/generators");
|
|
10
|
+
const semver_1 = require("semver");
|
|
10
11
|
const init_1 = require("../../generators/init/init");
|
|
11
12
|
const test_runners_1 = require("../../utils/test-runners");
|
|
12
|
-
const
|
|
13
|
+
const version_utils_1 = require("../../utils/version-utils");
|
|
13
14
|
const add_linting_1 = require("../add-linting/add-linting");
|
|
14
15
|
const karma_project_1 = require("../karma-project/karma-project");
|
|
15
16
|
const setup_tailwind_1 = require("../setup-tailwind/setup-tailwind");
|
|
17
|
+
const angular_version_utils_1 = require("../utils/angular-version-utils");
|
|
16
18
|
const dependencies_1 = require("../utils/dependencies");
|
|
17
19
|
const add_module_1 = require("./lib/add-module");
|
|
20
|
+
const add_standalone_component_1 = require("./lib/add-standalone-component");
|
|
18
21
|
const enable_strict_type_checking_1 = require("./lib/enable-strict-type-checking");
|
|
19
22
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
20
23
|
const update_lib_package_npm_scope_1 = require("./lib/update-lib-package-npm-scope");
|
|
21
24
|
const update_project_1 = require("./lib/update-project");
|
|
22
25
|
const update_tsconfig_1 = require("./lib/update-tsconfig");
|
|
23
|
-
const add_standalone_component_1 = require("./lib/add-standalone-component");
|
|
24
|
-
const angular_version_utils_1 = require("../utils/angular-version-utils");
|
|
25
|
-
const semver_1 = require("semver");
|
|
26
26
|
function libraryGenerator(tree, schema) {
|
|
27
|
-
var _a, _b;
|
|
28
27
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
28
|
// Do some validation checks
|
|
30
29
|
if (!schema.routing && schema.lazy) {
|
|
@@ -76,9 +75,7 @@ function libraryGenerator(tree, schema) {
|
|
|
76
75
|
if (libraryOptions.buildable || libraryOptions.publishable) {
|
|
77
76
|
(0, devkit_1.removeDependenciesFromPackageJson)(tree, [], ['ng-packagr']);
|
|
78
77
|
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
79
|
-
'ng-packagr':
|
|
80
|
-
? (_b = (_a = versions_1.versions[`angularV${userInstalledAngularVersion.major}`]) === null || _a === void 0 ? void 0 : _a.ngPackagrVersion) !== null && _b !== void 0 ? _b : versions_1.ngPackagrVersion
|
|
81
|
-
: versions_1.ngPackagrVersion,
|
|
78
|
+
'ng-packagr': (0, version_utils_1.getPkgVersionForAngularMajorVersion)('ngPackagrVersion', userInstalledAngularVersion.major),
|
|
82
79
|
});
|
|
83
80
|
(0, dependencies_1.addBuildableLibrariesPostCssDependencies)(tree);
|
|
84
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/library/library.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AACtB,8DAAwE;AACxE,qCAAkD;AAClD,yCAAsC;AACtC,2DAAyE;AACzE,qDAA8C;AAC9C,2DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/library/library.ts"],"names":[],"mappings":";;;;AAAA,yCAOsB;AACtB,8DAAwE;AACxE,qCAAkD;AAClD,yCAAsC;AACtC,2DAAyE;AACzE,mCAA4B;AAC5B,qDAA8C;AAC9C,2DAAyD;AACzD,6DAAgF;AAChF,4DAA6D;AAC7D,kEAAmE;AACnE,qEAAsE;AACtE,0EAAgF;AAChF,wDAAiF;AACjF,iDAA6C;AAC7C,6EAAwE;AACxE,mFAG2C;AAC3C,+DAA2D;AAE3D,qFAA8E;AAC9E,yDAAqD;AACrD,2DAAuD;AAGvD,SAAsB,gBAAgB,CAAC,IAAU,EAAE,MAAc;;QAC/D,4BAA4B;QAC5B,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;SAC1E;QAED,IAAI,MAAM,CAAC,WAAW,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACrD,MAAM,IAAI,KAAK,CACb,oJAAoJ,CACrJ,CAAC;SACH;QAED,IAAI,MAAM,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YAClE,MAAM,IAAI,KAAK,CACb,yFAAyF,CAC1F,CAAC;SACH;QAED,MAAM,2BAA2B,GAAG,IAAA,sDAA8B,EAAC,IAAI,CAAC,CAAC;QACzE,IAAI,I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AAO,CAAC,eAAe;SACzC,CAAC,CAAC;IACL,CAAC;CAAA;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -19,17 +19,20 @@
|
|
|
19
19
|
},
|
|
20
20
|
"directory": {
|
|
21
21
|
"type": "string",
|
|
22
|
-
"description": "A directory where the library is placed."
|
|
22
|
+
"description": "A directory where the library is placed.",
|
|
23
|
+
"x-priority": "important"
|
|
23
24
|
},
|
|
24
25
|
"publishable": {
|
|
25
26
|
"type": "boolean",
|
|
26
27
|
"default": false,
|
|
27
|
-
"description": "Generate a publishable library."
|
|
28
|
+
"description": "Generate a publishable library.",
|
|
29
|
+
"x-priority": "important"
|
|
28
30
|
},
|
|
29
31
|
"buildable": {
|
|
30
32
|
"type": "boolean",
|
|
31
33
|
"default": false,
|
|
32
|
-
"description": "Generate a buildable library."
|
|
34
|
+
"description": "Generate a buildable library.",
|
|
35
|
+
"x-priority": "important"
|
|
33
36
|
},
|
|
34
37
|
"prefix": {
|
|
35
38
|
"type": "string",
|
|
@@ -40,7 +43,8 @@
|
|
|
40
43
|
"skipFormat": {
|
|
41
44
|
"description": "Skip formatting files.",
|
|
42
45
|
"type": "boolean",
|
|
43
|
-
"default": false
|
|
46
|
+
"default": false,
|
|
47
|
+
"x-priority": "internal"
|
|
44
48
|
},
|
|
45
49
|
"simpleModuleName": {
|
|
46
50
|
"description": "Keep the module name simple (when using `--directory`).",
|
|
@@ -61,7 +65,8 @@
|
|
|
61
65
|
"skipPackageJson": {
|
|
62
66
|
"type": "boolean",
|
|
63
67
|
"default": false,
|
|
64
|
-
"description": "Do not add dependencies to `package.json`."
|
|
68
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
69
|
+
"x-priority": "internal"
|
|
65
70
|
},
|
|
66
71
|
"skipTsConfig": {
|
|
67
72
|
"type": "boolean",
|
|
@@ -71,16 +76,19 @@
|
|
|
71
76
|
"routing": {
|
|
72
77
|
"type": "boolean",
|
|
73
78
|
"default": false,
|
|
74
|
-
"description": "Add router configuration. See `lazy` for more information."
|
|
79
|
+
"description": "Add router configuration. See `lazy` for more information.",
|
|
80
|
+
"x-priority": "important"
|
|
75
81
|
},
|
|
76
82
|
"lazy": {
|
|
77
83
|
"type": "boolean",
|
|
78
84
|
"default": false,
|
|
79
|
-
"description": "Add `RouterModule.forChild` when set to true, and a simple array of routes when set to false."
|
|
85
|
+
"description": "Add `RouterModule.forChild` when set to true, and a simple array of routes when set to false.",
|
|
86
|
+
"x-priority": "important"
|
|
80
87
|
},
|
|
81
88
|
"parent": {
|
|
82
89
|
"type": "string",
|
|
83
|
-
"description": "Path to the parent route configuration using `loadChildren` or `children`, depending on what `lazy` is set to."
|
|
90
|
+
"description": "Path to the parent route configuration using `loadChildren` or `children`, depending on what `lazy` is set to.",
|
|
91
|
+
"x-priority": "important"
|
|
84
92
|
},
|
|
85
93
|
"tags": {
|
|
86
94
|
"type": "string",
|
|
@@ -109,7 +117,8 @@
|
|
|
109
117
|
},
|
|
110
118
|
"standaloneConfig": {
|
|
111
119
|
"description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
|
|
112
|
-
"type": "boolean"
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"x-priority": "internal"
|
|
113
122
|
},
|
|
114
123
|
"compilationMode": {
|
|
115
124
|
"description": "Specifies the compilation mode to use. If not specified, it will default to `partial` for publishable libraries and to `full` for buildable libraries. The `full` value can not be used for publishable libraries.",
|
|
@@ -14,14 +14,16 @@
|
|
|
14
14
|
"index": 0
|
|
15
15
|
},
|
|
16
16
|
"x-prompt": "What name would you like to use for the secondary entry point?",
|
|
17
|
-
"pattern": "^[a-zA-Z].*$"
|
|
17
|
+
"pattern": "^[a-zA-Z].*$",
|
|
18
|
+
"x-priority": "important"
|
|
18
19
|
},
|
|
19
20
|
"library": {
|
|
20
21
|
"type": "string",
|
|
21
22
|
"description": "The name of the library to create the secondary entry point for.",
|
|
22
23
|
"x-prompt": "What library would you like to create the secondary entry point for?",
|
|
23
24
|
"pattern": "^[a-zA-Z].*$",
|
|
24
|
-
"x-dropdown": "projects"
|
|
25
|
+
"x-dropdown": "projects",
|
|
26
|
+
"x-priority": "important"
|
|
25
27
|
},
|
|
26
28
|
"skipModule": {
|
|
27
29
|
"type": "boolean",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"type": "string",
|
|
17
17
|
"alias": "project",
|
|
18
18
|
"description": "The name of the Angular project to move.",
|
|
19
|
-
"x-dropdown": "projects"
|
|
19
|
+
"x-dropdown": "projects",
|
|
20
|
+
"x-priority": "important"
|
|
20
21
|
},
|
|
21
22
|
"destination": {
|
|
22
23
|
"type": "string",
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
"$default": {
|
|
25
26
|
"$source": "argv",
|
|
26
27
|
"index": 0
|
|
27
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"x-priority": "important"
|
|
28
30
|
},
|
|
29
31
|
"importPath": {
|
|
30
32
|
"type": "string",
|
|
@@ -39,7 +41,8 @@
|
|
|
39
41
|
"type": "boolean",
|
|
40
42
|
"aliases": ["skip-format"],
|
|
41
43
|
"description": "Skip formatting files.",
|
|
42
|
-
"default": false
|
|
44
|
+
"default": false,
|
|
45
|
+
"x-priority": "internal"
|
|
43
46
|
}
|
|
44
47
|
},
|
|
45
48
|
"required": ["projectName", "destination"]
|