@nrwl/angular 15.7.0-beta.0 → 15.7.0-beta.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/CHANGELOG.md +1 -1
- package/esm2020/testing/src/testing-utils.mjs +5 -1
- package/fesm2015/nrwl-angular-testing.mjs +4 -0
- package/fesm2015/nrwl-angular-testing.mjs.map +1 -1
- package/fesm2020/nrwl-angular-testing.mjs +4 -0
- package/fesm2020/nrwl-angular-testing.mjs.map +1 -1
- package/migrations.json +112 -16
- package/package.json +13 -11
- package/src/builders/webpack-browser/schema.json +1 -1
- package/src/builders/webpack-browser/webpack-browser.impl.js +11 -2
- package/src/builders/webpack-browser/webpack-browser.impl.js.map +1 -1
- package/src/generators/application/angular-v14/application.js +17 -15
- package/src/generators/application/angular-v14/application.js.map +1 -1
- package/src/generators/application/angular-v14/schema.d.ts +1 -0
- package/src/generators/application/application.js +17 -15
- package/src/generators/application/application.js.map +1 -1
- package/src/generators/application/schema.d.ts +1 -0
- package/src/generators/application/schema.json +5 -0
- package/src/generators/ng-add/migrate-from-angular-cli.js +1 -0
- package/src/generators/ng-add/migrate-from-angular-cli.js.map +1 -1
- package/src/generators/ng-add/utilities/dependencies.d.ts +2 -0
- package/src/generators/ng-add/utilities/dependencies.js +30 -0
- package/src/generators/ng-add/utilities/dependencies.js.map +1 -0
- package/src/generators/ng-add/utilities/index.d.ts +1 -0
- package/src/generators/ng-add/utilities/index.js +1 -0
- package/src/generators/ng-add/utilities/index.js.map +1 -1
- package/src/generators/setup-mf/lib/add-remote-entry.js +3 -1
- package/src/generators/setup-mf/lib/add-remote-entry.js.map +1 -1
- package/src/generators/setup-mf/lib/fix-bootstrap.js +10 -6
- package/src/generators/setup-mf/lib/fix-bootstrap.js.map +1 -1
- package/src/migrations/update-15-7-0/install-required-packages.d.ts +2 -0
- package/src/migrations/update-15-7-0/install-required-packages.js +26 -0
- package/src/migrations/update-15-7-0/install-required-packages.js.map +1 -0
- package/src/utils/nx-devkit/testing.js +0 -6
- package/src/utils/nx-devkit/testing.js.map +1 -1
- package/testing/src/testing-utils.d.ts +4 -0
- package/testing/src/testing-utils.js +4 -0
- package/testing/src/testing-utils.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/angular
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { first, toArray } from 'rxjs/operators';
|
|
2
2
|
/**
|
|
3
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).
|
|
4
|
+
*
|
|
3
5
|
* @whatItDoes reads all the values from an observable and returns a promise
|
|
4
6
|
* with an array of all values. This should be used in combination with async/await.
|
|
5
7
|
*
|
|
@@ -15,6 +17,8 @@ export function readAll(o) {
|
|
|
15
17
|
return o.pipe(toArray()).toPromise();
|
|
16
18
|
}
|
|
17
19
|
/**
|
|
20
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)
|
|
21
|
+
*
|
|
18
22
|
* @whatItDoes reads the first value from an observable and returns a promise
|
|
19
23
|
* with it. This should be used in combination with async/await.
|
|
20
24
|
*
|
|
@@ -29,4 +33,4 @@ export function readAll(o) {
|
|
|
29
33
|
export function readFirst(o) {
|
|
30
34
|
return o.pipe(first()).toPromise();
|
|
31
35
|
}
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdGluZy11dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Rlc3Rpbmcvc3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1,8 @@
|
|
|
1
1
|
import { toArray, first } from 'rxjs/operators';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).
|
|
5
|
+
*
|
|
4
6
|
* @whatItDoes reads all the values from an observable and returns a promise
|
|
5
7
|
* with an array of all values. This should be used in combination with async/await.
|
|
6
8
|
*
|
|
@@ -16,6 +18,8 @@ function readAll(o) {
|
|
|
16
18
|
return o.pipe(toArray()).toPromise();
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
21
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)
|
|
22
|
+
*
|
|
19
23
|
* @whatItDoes reads the first value from an observable and returns a promise
|
|
20
24
|
* with it. This should be used in combination with async/await.
|
|
21
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrwl-angular-testing.mjs","sources":["../../testing/src/testing-utils.ts","../../testing/nrwl-angular-testing.ts"],"sourcesContent":["import type { Observable } from 'rxjs';\nimport { first, toArray } from 'rxjs/operators';\n\n/**\n * @whatItDoes reads all the values from an observable and returns a promise\n * with an array of all values. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readAll(obs)\n * expect(res).toEqual([1, 2, 3, 4]);\n * ```\n */\nexport function readAll<T>(o: Observable<T>): Promise<T[]> {\n return o.pipe(toArray()).toPromise();\n}\n\n/**\n * @whatItDoes reads the first value from an observable and returns a promise\n * with it. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readFirst(obs)\n * expect(res).toEqual(1);\n * ```\n */\nexport function readFirst<T>(o: Observable<T>): Promise<T> {\n return o.pipe(first()).toPromise();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGA
|
|
1
|
+
{"version":3,"file":"nrwl-angular-testing.mjs","sources":["../../testing/src/testing-utils.ts","../../testing/nrwl-angular-testing.ts"],"sourcesContent":["import type { Observable } from 'rxjs';\nimport { first, toArray } from 'rxjs/operators';\n\n/**\n * @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).\n *\n * @whatItDoes reads all the values from an observable and returns a promise\n * with an array of all values. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readAll(obs)\n * expect(res).toEqual([1, 2, 3, 4]);\n * ```\n */\nexport function readAll<T>(o: Observable<T>): Promise<T[]> {\n return o.pipe(toArray()).toPromise();\n}\n\n/**\n * @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)\n *\n * @whatItDoes reads the first value from an observable and returns a promise\n * with it. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readFirst(obs)\n * expect(res).toEqual(1);\n * ```\n */\nexport function readFirst<T>(o: Observable<T>): Promise<T> {\n return o.pipe(first()).toPromise();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGA;;;;;;;;;;;;;AAaG;AACG,SAAU,OAAO,CAAI,CAAgB,EAAA;IACzC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;AAaG;AACG,SAAU,SAAS,CAAI,CAAgB,EAAA;IAC3C,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;AACrC;;ACrCA;;AAEG;;;;"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { toArray, first } from 'rxjs/operators';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).
|
|
5
|
+
*
|
|
4
6
|
* @whatItDoes reads all the values from an observable and returns a promise
|
|
5
7
|
* with an array of all values. This should be used in combination with async/await.
|
|
6
8
|
*
|
|
@@ -16,6 +18,8 @@ function readAll(o) {
|
|
|
16
18
|
return o.pipe(toArray()).toPromise();
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
21
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)
|
|
22
|
+
*
|
|
19
23
|
* @whatItDoes reads the first value from an observable and returns a promise
|
|
20
24
|
* with it. This should be used in combination with async/await.
|
|
21
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nrwl-angular-testing.mjs","sources":["../../testing/src/testing-utils.ts","../../testing/nrwl-angular-testing.ts"],"sourcesContent":["import type { Observable } from 'rxjs';\nimport { first, toArray } from 'rxjs/operators';\n\n/**\n * @whatItDoes reads all the values from an observable and returns a promise\n * with an array of all values. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readAll(obs)\n * expect(res).toEqual([1, 2, 3, 4]);\n * ```\n */\nexport function readAll<T>(o: Observable<T>): Promise<T[]> {\n return o.pipe(toArray()).toPromise();\n}\n\n/**\n * @whatItDoes reads the first value from an observable and returns a promise\n * with it. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readFirst(obs)\n * expect(res).toEqual(1);\n * ```\n */\nexport function readFirst<T>(o: Observable<T>): Promise<T> {\n return o.pipe(first()).toPromise();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGA
|
|
1
|
+
{"version":3,"file":"nrwl-angular-testing.mjs","sources":["../../testing/src/testing-utils.ts","../../testing/nrwl-angular-testing.ts"],"sourcesContent":["import type { Observable } from 'rxjs';\nimport { first, toArray } from 'rxjs/operators';\n\n/**\n * @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).\n *\n * @whatItDoes reads all the values from an observable and returns a promise\n * with an array of all values. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readAll(obs)\n * expect(res).toEqual([1, 2, 3, 4]);\n * ```\n */\nexport function readAll<T>(o: Observable<T>): Promise<T[]> {\n return o.pipe(toArray()).toPromise();\n}\n\n/**\n * @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)\n *\n * @whatItDoes reads the first value from an observable and returns a promise\n * with it. This should be used in combination with async/await.\n *\n * ## Example\n *\n * ```typescript\n * const obs = of(1, 2, 3, 4);\n * const res = await readFirst(obs)\n * expect(res).toEqual(1);\n * ```\n */\nexport function readFirst<T>(o: Observable<T>): Promise<T> {\n return o.pipe(first()).toPromise();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGA;;;;;;;;;;;;;AAaG;AACG,SAAU,OAAO,CAAI,CAAgB,EAAA;IACzC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;AAaG;AACG,SAAU,SAAS,CAAI,CAAgB,EAAA;IAC3C,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC;AACrC;;ACrCA;;AAEG;;;;"}
|
package/migrations.json
CHANGED
|
@@ -123,6 +123,9 @@
|
|
|
123
123
|
"update-angular-cli-version-14-1-0": {
|
|
124
124
|
"cli": "nx",
|
|
125
125
|
"version": "14.5.2-beta.0",
|
|
126
|
+
"requires": {
|
|
127
|
+
"@angular/core": ">=14.1.0"
|
|
128
|
+
},
|
|
126
129
|
"description": "Update the @angular/cli package version to ~14.1.0.",
|
|
127
130
|
"factory": "./src/migrations/update-14-5-2/update-angular-cli"
|
|
128
131
|
},
|
|
@@ -135,6 +138,9 @@
|
|
|
135
138
|
"update-angular-cli-version-14-2-0": {
|
|
136
139
|
"cli": "nx",
|
|
137
140
|
"version": "14.6.0-beta.0",
|
|
141
|
+
"requires": {
|
|
142
|
+
"@angular/core": ">=14.2.0"
|
|
143
|
+
},
|
|
138
144
|
"description": "Update the @angular/cli package version to ~14.2.0.",
|
|
139
145
|
"factory": "./src/migrations/update-14-6-0/update-angular-cli"
|
|
140
146
|
},
|
|
@@ -159,44 +165,71 @@
|
|
|
159
165
|
"update-angular-cli-version-15-0-0": {
|
|
160
166
|
"cli": "nx",
|
|
161
167
|
"version": "15.2.0-beta.0",
|
|
168
|
+
"requires": {
|
|
169
|
+
"@angular/core": ">=15.0.0"
|
|
170
|
+
},
|
|
162
171
|
"description": "Update the @angular/cli package version to ~15.0.0.",
|
|
163
172
|
"factory": "./src/migrations/update-15-2-0/update-angular-cli"
|
|
164
173
|
},
|
|
165
174
|
"remove-browserlist-config": {
|
|
166
175
|
"cli": "nx",
|
|
167
176
|
"version": "15.2.0-beta.0",
|
|
177
|
+
"requires": {
|
|
178
|
+
"@angular/core": ">=15.0.0"
|
|
179
|
+
},
|
|
168
180
|
"description": "Remove browserlist config as it's handled by build-angular",
|
|
169
181
|
"factory": "./src/migrations/update-15-2-0/remove-browserlist-config"
|
|
170
182
|
},
|
|
171
183
|
"update-typescript-target": {
|
|
172
184
|
"cli": "nx",
|
|
173
185
|
"version": "15.2.0-beta.0",
|
|
186
|
+
"requires": {
|
|
187
|
+
"@angular/core": ">=15.0.0"
|
|
188
|
+
},
|
|
174
189
|
"description": "Update typescript target to ES2022",
|
|
175
190
|
"factory": "./src/migrations/update-15-2-0/update-typescript-target"
|
|
176
191
|
},
|
|
177
192
|
"update-workspace-config": {
|
|
178
193
|
"cli": "nx",
|
|
179
194
|
"version": "15.2.0-beta.0",
|
|
195
|
+
"requires": {
|
|
196
|
+
"@angular/core": ">=15.0.0"
|
|
197
|
+
},
|
|
180
198
|
"description": "Remove bundleDependencies from server targets",
|
|
181
199
|
"factory": "./src/migrations/update-15-2-0/update-workspace-config"
|
|
182
200
|
},
|
|
183
201
|
"update-platform-server-exports": {
|
|
184
202
|
"cli": "ng",
|
|
185
203
|
"version": "15.2.0-beta.0",
|
|
204
|
+
"requires": {
|
|
205
|
+
"@angular/core": ">=15.0.0"
|
|
206
|
+
},
|
|
186
207
|
"description": "Remove exported `@angular/platform-server` `renderModule` method. The `renderModule` method is now exported by the Angular CLI.",
|
|
187
208
|
"factory": "./src/migrations/update-15-2-0/remove-platform-server-exports"
|
|
188
209
|
},
|
|
189
210
|
"update-karma-main-file": {
|
|
190
211
|
"cli": "ng",
|
|
191
212
|
"version": "15.2.0-beta.0",
|
|
213
|
+
"requires": {
|
|
214
|
+
"@angular/core": ">=15.0.0"
|
|
215
|
+
},
|
|
192
216
|
"description": "Remove no longer needed require calls in Karma builder main file.",
|
|
193
217
|
"factory": "./src/migrations/update-15-2-0/update-karma-main-file"
|
|
194
218
|
},
|
|
195
219
|
"update-angular-cli-version-15-1-0": {
|
|
196
220
|
"cli": "nx",
|
|
197
221
|
"version": "15.5.0-beta.0",
|
|
222
|
+
"requires": {
|
|
223
|
+
"@angular/core": ">=15.1.0"
|
|
224
|
+
},
|
|
198
225
|
"description": "Update the @angular/cli package version to ~15.1.0.",
|
|
199
226
|
"factory": "./src/migrations/update-15-5-0/update-angular-cli"
|
|
227
|
+
},
|
|
228
|
+
"install-required-packages": {
|
|
229
|
+
"cli": "nx",
|
|
230
|
+
"version": "15.7.0-beta.1",
|
|
231
|
+
"description": "Install the required angular-devkit packages as we do not directly depend on them anymore",
|
|
232
|
+
"factory": "./src/migrations/update-15-7-0/install-required-packages"
|
|
200
233
|
}
|
|
201
234
|
},
|
|
202
235
|
"packageJsonUpdates": {
|
|
@@ -1340,6 +1373,9 @@
|
|
|
1340
1373
|
},
|
|
1341
1374
|
"14.3.7": {
|
|
1342
1375
|
"version": "14.3.7-beta.0",
|
|
1376
|
+
"requires": {
|
|
1377
|
+
"@angular/core": "^14.0.0"
|
|
1378
|
+
},
|
|
1343
1379
|
"packages": {
|
|
1344
1380
|
"@ngrx/store": {
|
|
1345
1381
|
"version": "~14.0.0",
|
|
@@ -1372,6 +1408,9 @@
|
|
|
1372
1408
|
},
|
|
1373
1409
|
"14.4.0": {
|
|
1374
1410
|
"version": "14.4.0-beta.1",
|
|
1411
|
+
"requires": {
|
|
1412
|
+
"eslint": "^7.0.0 || ^8.0.0"
|
|
1413
|
+
},
|
|
1375
1414
|
"packages": {
|
|
1376
1415
|
"@angular-eslint/eslint-plugin": {
|
|
1377
1416
|
"version": "~14.0.0",
|
|
@@ -1389,6 +1428,10 @@
|
|
|
1389
1428
|
},
|
|
1390
1429
|
"14.5.2": {
|
|
1391
1430
|
"version": "14.5.2-beta.0",
|
|
1431
|
+
"x-prompt": "Do you want to update the Angular version to v14.1?",
|
|
1432
|
+
"requires": {
|
|
1433
|
+
"@angular/core": ">=14.0.0 <14.1.0"
|
|
1434
|
+
},
|
|
1392
1435
|
"packages": {
|
|
1393
1436
|
"@angular-devkit/architect": {
|
|
1394
1437
|
"version": "~0.1401.0",
|
|
@@ -1411,7 +1454,7 @@
|
|
|
1411
1454
|
"alwaysAddToPackageJson": false
|
|
1412
1455
|
},
|
|
1413
1456
|
"@schematics/angular": {
|
|
1414
|
-
"version": "~14.
|
|
1457
|
+
"version": "~14.1.0",
|
|
1415
1458
|
"alwaysAddToPackageJson": false
|
|
1416
1459
|
},
|
|
1417
1460
|
"@angular/core": {
|
|
@@ -1494,13 +1537,13 @@
|
|
|
1494
1537
|
}
|
|
1495
1538
|
}
|
|
1496
1539
|
},
|
|
1497
|
-
"14.6.0": {
|
|
1540
|
+
"14.6.0-angular": {
|
|
1498
1541
|
"version": "14.6.0-beta.0",
|
|
1542
|
+
"x-prompt": "Do you want to update the Angular version to v14.2?",
|
|
1543
|
+
"requires": {
|
|
1544
|
+
"@angular/core": ">=14.1.0 <14.2.0"
|
|
1545
|
+
},
|
|
1499
1546
|
"packages": {
|
|
1500
|
-
"jest-preset-angular": {
|
|
1501
|
-
"version": "~12.2.0",
|
|
1502
|
-
"alwaysAddToPackageJson": false
|
|
1503
|
-
},
|
|
1504
1547
|
"@angular-devkit/architect": {
|
|
1505
1548
|
"version": "~0.1402.0",
|
|
1506
1549
|
"alwaysAddToPackageJson": false
|
|
@@ -1543,17 +1586,25 @@
|
|
|
1543
1586
|
}
|
|
1544
1587
|
}
|
|
1545
1588
|
},
|
|
1546
|
-
"14.
|
|
1547
|
-
"version": "14.
|
|
1589
|
+
"14.6.0-jest-preset-angular": {
|
|
1590
|
+
"version": "14.6.0-beta.0",
|
|
1591
|
+
"requires": {
|
|
1592
|
+
"@angular-devkit/build-angular": ">=0.1102.19 <15.0.0",
|
|
1593
|
+
"@angular/compiler-cli": ">=11.2.14 <15.0.0",
|
|
1594
|
+
"@angular/core": ">=11.2.14 <15.0.0",
|
|
1595
|
+
"@angular/platform-browser-dynamic": ">=11.2.14 <15.0.0",
|
|
1596
|
+
"jest": "^28.0.0"
|
|
1597
|
+
},
|
|
1548
1598
|
"packages": {
|
|
1549
1599
|
"jest-preset-angular": {
|
|
1550
|
-
"version": "
|
|
1551
|
-
"alwaysAddToPackageJson": false
|
|
1552
|
-
},
|
|
1553
|
-
"typescript": {
|
|
1554
|
-
"version": "~4.8.2",
|
|
1600
|
+
"version": "12.2.0",
|
|
1555
1601
|
"alwaysAddToPackageJson": false
|
|
1556
|
-
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
"14.8.0-angular-eslint": {
|
|
1606
|
+
"version": "14.8.0-beta.0",
|
|
1607
|
+
"packages": {
|
|
1557
1608
|
"@angular-eslint/eslint-plugin": {
|
|
1558
1609
|
"version": "~14.0.4",
|
|
1559
1610
|
"alwaysAddToPackageJson": false
|
|
@@ -1568,8 +1619,28 @@
|
|
|
1568
1619
|
}
|
|
1569
1620
|
}
|
|
1570
1621
|
},
|
|
1622
|
+
"14.8.0-jest-preset-angular": {
|
|
1623
|
+
"version": "14.8.0-beta.0",
|
|
1624
|
+
"requires": {
|
|
1625
|
+
"@angular-devkit/build-angular": ">=0.1102.19 <15.0.0",
|
|
1626
|
+
"@angular/compiler-cli": ">=11.2.14 <15.0.0",
|
|
1627
|
+
"@angular/core": ">=11.2.14 <15.0.0",
|
|
1628
|
+
"@angular/platform-browser-dynamic": ">=11.2.14 <15.0.0",
|
|
1629
|
+
"jest": "^28.0.0"
|
|
1630
|
+
},
|
|
1631
|
+
"packages": {
|
|
1632
|
+
"jest-preset-angular": {
|
|
1633
|
+
"version": "12.2.2",
|
|
1634
|
+
"alwaysAddToPackageJson": false
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1571
1638
|
"15.2.0": {
|
|
1572
1639
|
"version": "15.2.0-beta.0",
|
|
1640
|
+
"x-prompt": "Do you want to update the Angular version to v15?",
|
|
1641
|
+
"requires": {
|
|
1642
|
+
"@angular/core": "^14.0.0"
|
|
1643
|
+
},
|
|
1573
1644
|
"packages": {
|
|
1574
1645
|
"@angular-devkit/architect": {
|
|
1575
1646
|
"version": "~0.1500.0",
|
|
@@ -1625,8 +1696,11 @@
|
|
|
1625
1696
|
}
|
|
1626
1697
|
}
|
|
1627
1698
|
},
|
|
1628
|
-
"15.2.2": {
|
|
1699
|
+
"15.2.2-angular-eslint": {
|
|
1629
1700
|
"version": "15.2.2-beta.0",
|
|
1701
|
+
"requires": {
|
|
1702
|
+
"eslint": "^7.20.0 || ^8.0.0"
|
|
1703
|
+
},
|
|
1630
1704
|
"packages": {
|
|
1631
1705
|
"@angular-eslint/eslint-plugin": {
|
|
1632
1706
|
"version": "~15.0.0",
|
|
@@ -1639,7 +1713,19 @@
|
|
|
1639
1713
|
"@angular-eslint/template-parser": {
|
|
1640
1714
|
"version": "~15.0.0",
|
|
1641
1715
|
"alwaysAddToPackageJson": false
|
|
1642
|
-
}
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"15.2.2-jest": {
|
|
1720
|
+
"version": "15.2.2-beta.0",
|
|
1721
|
+
"requires": {
|
|
1722
|
+
"@angular-devkit/build-angular": ">=12.2.18 <16.0.0",
|
|
1723
|
+
"@angular/compiler-cli": ">=12.2.16 <16.0.0",
|
|
1724
|
+
"@angular/core": ">=12.2.16 <16.0.0",
|
|
1725
|
+
"@angular/platform-browser-dynamic": ">=12.2.16 <16.0.0",
|
|
1726
|
+
"jest": "^28.0.0"
|
|
1727
|
+
},
|
|
1728
|
+
"packages": {
|
|
1643
1729
|
"jest-preset-angular": {
|
|
1644
1730
|
"version": "12.2.3",
|
|
1645
1731
|
"alwaysAddToPackageJson": false
|
|
@@ -1648,6 +1734,9 @@
|
|
|
1648
1734
|
},
|
|
1649
1735
|
"15.3.1": {
|
|
1650
1736
|
"version": "15.3.1-beta.0",
|
|
1737
|
+
"requires": {
|
|
1738
|
+
"@angular/core": "^15.0.0"
|
|
1739
|
+
},
|
|
1651
1740
|
"packages": {
|
|
1652
1741
|
"@ngrx/store": {
|
|
1653
1742
|
"version": "~15.0.0",
|
|
@@ -1680,6 +1769,10 @@
|
|
|
1680
1769
|
},
|
|
1681
1770
|
"15.5.0": {
|
|
1682
1771
|
"version": "15.5.0-beta.0",
|
|
1772
|
+
"x-prompt": "Do you want to update the Angular version to v15.1?",
|
|
1773
|
+
"requires": {
|
|
1774
|
+
"@angular/core": ">=15.0.0 <15.1.0"
|
|
1775
|
+
},
|
|
1683
1776
|
"packages": {
|
|
1684
1777
|
"@angular-devkit/architect": {
|
|
1685
1778
|
"version": "~0.1501.0",
|
|
@@ -1725,6 +1818,9 @@
|
|
|
1725
1818
|
},
|
|
1726
1819
|
"15.5.2": {
|
|
1727
1820
|
"version": "15.5.2-beta.0",
|
|
1821
|
+
"requires": {
|
|
1822
|
+
"@angular-devkit/build-angular": ">=15.0.0 <16.0.0"
|
|
1823
|
+
},
|
|
1728
1824
|
"packages": {
|
|
1729
1825
|
"@nguniversal/builders": {
|
|
1730
1826
|
"version": "~15.1.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/angular",
|
|
3
|
-
"version": "15.7.0-beta.
|
|
3
|
+
"version": "15.7.0-beta.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, Cypress, Karma, and Protractor. \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": {
|
|
@@ -63,15 +63,13 @@
|
|
|
63
63
|
"migrations": "./migrations.json"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@
|
|
67
|
-
"@nrwl/
|
|
68
|
-
"@nrwl/
|
|
69
|
-
"@nrwl/
|
|
70
|
-
"@nrwl/
|
|
71
|
-
"@nrwl/
|
|
72
|
-
"@nrwl/workspace": "15.7.0-beta.0",
|
|
66
|
+
"@nrwl/cypress": "15.7.0-beta.3",
|
|
67
|
+
"@nrwl/devkit": "15.7.0-beta.3",
|
|
68
|
+
"@nrwl/jest": "15.7.0-beta.3",
|
|
69
|
+
"@nrwl/linter": "15.7.0-beta.3",
|
|
70
|
+
"@nrwl/webpack": "15.7.0-beta.3",
|
|
71
|
+
"@nrwl/workspace": "15.7.0-beta.3",
|
|
73
72
|
"@phenomnomnominal/tsquery": "4.1.1",
|
|
74
|
-
"@schematics/angular": "~15.1.0",
|
|
75
73
|
"chalk": "^4.1.0",
|
|
76
74
|
"chokidar": "^3.5.1",
|
|
77
75
|
"http-server": "^14.1.0",
|
|
@@ -86,7 +84,11 @@
|
|
|
86
84
|
"webpack-merge": "5.7.3"
|
|
87
85
|
},
|
|
88
86
|
"peerDependencies": {
|
|
89
|
-
"@
|
|
87
|
+
"@angular-devkit/build-angular": ">= 14.0.0 < 16.0.0",
|
|
88
|
+
"@angular-devkit/core": ">= 14.0.0 < 16.0.0",
|
|
89
|
+
"@angular-devkit/schematics": ">= 14.0.0 < 16.0.0",
|
|
90
|
+
"@nguniversal/builders": ">= 14.0.0 < 16.0.0",
|
|
91
|
+
"@schematics/angular": ">= 14.0.0 < 16.0.0",
|
|
90
92
|
"rxjs": "^6.5.3 || ^7.5.0"
|
|
91
93
|
},
|
|
92
94
|
"peerDependenciesMeta": {
|
|
@@ -104,5 +106,5 @@
|
|
|
104
106
|
"fesm2015": "fesm2015/nrwl-angular.mjs",
|
|
105
107
|
"typings": "index.d.ts",
|
|
106
108
|
"sideEffects": false,
|
|
107
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "b2bd4f27e04124c70a19c53191a4503bacf0b229"
|
|
108
110
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"oneOf": [
|
|
42
42
|
{
|
|
43
43
|
"type": "array",
|
|
44
|
-
"description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",
|
|
44
|
+
"description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'. _Note: supported in Angular versions >= 15.0.0_.",
|
|
45
45
|
"items": {
|
|
46
46
|
"type": "string",
|
|
47
47
|
"uniqueItems": true
|
|
@@ -5,9 +5,10 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const devkit_1 = require("@nrwl/devkit");
|
|
6
6
|
const fs_1 = require("fs");
|
|
7
7
|
const rxjs_1 = require("rxjs");
|
|
8
|
-
const webpack_1 = require("../utilities/webpack");
|
|
9
|
-
const buildable_libs_1 = require("../utilities/buildable-libs");
|
|
10
8
|
const operators_1 = require("rxjs/operators");
|
|
9
|
+
const angular_version_utils_1 = require("../../executors/utilities/angular-version-utils");
|
|
10
|
+
const buildable_libs_1 = require("../utilities/buildable-libs");
|
|
11
|
+
const webpack_1 = require("../utilities/webpack");
|
|
11
12
|
function buildApp(options, context) {
|
|
12
13
|
const { buildLibsFromSource, customWebpackConfig, indexFileTransformer } = options, delegateOptions = tslib_1.__rest(options, ["buildLibsFromSource", "customWebpackConfig", "indexFileTransformer"]);
|
|
13
14
|
// If there is a path to an indexFileTransformer
|
|
@@ -41,8 +42,16 @@ function buildAppWithCustomWebpackConfiguration(options, context, pathToWebpackC
|
|
|
41
42
|
}
|
|
42
43
|
: {})))));
|
|
43
44
|
}
|
|
45
|
+
function validateOptions(options) {
|
|
46
|
+
const { major, version } = (0, angular_version_utils_1.getInstalledAngularVersionInfo)();
|
|
47
|
+
if (major < 15 && Array.isArray(options.polyfills)) {
|
|
48
|
+
throw new Error((0, devkit_1.stripIndents) `The array syntax for the "polyfills" option is supported from Angular >= 15.0.0. You are currently using ${version}.
|
|
49
|
+
You can resolve this error by removing the "polyfills" option, setting it to a string value or migrating to Angular 15.0.0.`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
44
52
|
function executeWebpackBrowserBuilder(options, context) {
|
|
45
53
|
var _a;
|
|
54
|
+
validateOptions(options);
|
|
46
55
|
(_a = options.buildLibsFromSource) !== null && _a !== void 0 ? _a : (options.buildLibsFromSource = true);
|
|
47
56
|
if (!options.buildLibsFromSource) {
|
|
48
57
|
const { tsConfigPath } = (0, buildable_libs_1.createTmpTsConfigForBuildableLibs)(options.tsConfig, context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack-browser.impl.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/webpack-browser/webpack-browser.impl.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"webpack-browser.impl.js","sourceRoot":"","sources":["../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AmB,EAAE;QAChC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,kDAAiC,EACxD,OAAO,CAAC,QAAQ,EAChB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,QAAQ,GAAG,YAAY,CAAC;KACjC;IAED,OAAO,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACpC,CAAC;AAhBD,oEAgBC;AAED,kBAAe,OAAO,CAAC,2BAA2B,CAAC,CAAC,aAAa,CAC/D,4BAA4B,CACtB,CAAC"}
|
|
@@ -31,21 +31,23 @@ function applicationGenerator(host, schema) {
|
|
|
31
31
|
(0, lib_1.createFiles)(host, options);
|
|
32
32
|
(0, lib_1.updateConfigFiles)(host, options);
|
|
33
33
|
(0, lib_1.updateAppComponentTemplate)(host, options);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
if (!options.minimal) {
|
|
35
|
+
// Create the NxWelcomeComponent
|
|
36
|
+
const angularComponentSchematic = (0, ngcli_adapter_1.wrapAngularDevkitSchematic)('@schematics/angular', 'component');
|
|
37
|
+
yield angularComponentSchematic(host, {
|
|
38
|
+
name: 'NxWelcome',
|
|
39
|
+
inlineTemplate: true,
|
|
40
|
+
inlineStyle: true,
|
|
41
|
+
prefix: options.prefix,
|
|
42
|
+
skipTests: true,
|
|
43
|
+
style: options.style,
|
|
44
|
+
flat: true,
|
|
45
|
+
viewEncapsulation: 'None',
|
|
46
|
+
project: options.name,
|
|
47
|
+
standalone: options.standalone,
|
|
48
|
+
});
|
|
49
|
+
(0, lib_1.updateNxComponentTemplate)(host, options);
|
|
50
|
+
}
|
|
49
51
|
if (options.addTailwind) {
|
|
50
52
|
yield (0, setup_tailwind_1.setupTailwindGenerator)(host, {
|
|
51
53
|
project: options.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/angular-v14/application.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AACtB,8DAAwE;AACxE,8DAA6D;AAC7D,0CAAuD;AACvD,wEAA6E;AAC7E,+BAgBe;AAGf,SAAsB,oBAAoB,CACxC,IAAU,EACV,MAAuB;;QAEvB,MAAM,OAAO,GAAG,IAAA,sBAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE/C,MAAM,IAAA,2BAAoB,EAAC,IAAI,kCAC1B,OAAO,KACV,UAAU,EAAE,IAAI,IAChB,CAAC;QAEH,MAAM,mBAAmB,GAAG,IAAA,0CAA0B,EACpD,qBAAqB,EACrB,aAAa,CACd,CAAC;QACF,MAAM,mBAAmB,CAAC,IAAI,EAAE;YAC9B,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,IAAI;YACjB,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CAAC;QAEH,IAAI,OAAO,CAAC,qBAAqB,KAAK,OAAO,CAAC,cAAc,EAAE;YAC5D,IAAA,gCAAuB,EACrB,IAAI,EACJ,OAAO,CAAC,qBAAqB,EAC7B,OAAO,CAAC,cAAc,CACvB,CAAC;SACH;QAED,IAAA,iBAAW,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAA,uBAAiB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,IAAA,gCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1C,gCAAgC;
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/angular-v14/application.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AACtB,8DAAwE;AACxE,8DAA6D;AAC7D,0CAAuD;AACvD,wEAA6E;AAC7E,+BAgBe;AAGf,SAAsB,oBAAoB,CACxC,IAAU,EACV,MAAuB;;QAEvB,MAAM,OAAO,GAAG,IAAA,sBAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE/C,MAAM,IAAA,2BAAoB,EAAC,IAAI,kCAC1B,OAAO,KACV,UAAU,EAAE,IAAI,IAChB,CAAC;QAEH,MAAM,mBAAmB,GAAG,IAAA,0CAA0B,EACpD,qBAAqB,EACrB,aAAa,CACd,CAAC;QACF,MAAM,mBAAmB,CAAC,IAAI,EAAE;YAC9B,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,IAAI;YACjB,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CAAC;QAEH,IAAI,OAAO,CAAC,qBAAqB,KAAK,OAAO,CAAC,cAAc,EAAE;YAC5D,IAAA,gCAAuB,EACrB,IAAI,EACJ,OAAO,CAAC,qBAAqB,EAC7B,OAAO,CAAC,cAAc,CACvB,CAAC;SACH;QAED,IAAA,iBAAW,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAA,uBAAiB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,IAAA,gCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;Q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AI,OAAO,CAAC,cAAc,EAAE;YAC1B,IAAA,oBAAc,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SAC/B;QAED,IAAI,OAAO,CAAC,MAAM,EAAE;YAClB,IAAA,8BAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SACzC;aAAM;YACL,IAAA,iCAA2B,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC1C;QAED,IAAI,OAAO,CAAC,UAAU,EAAE;YACtB,IAAA,4BAAsB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SACvC;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,GAAG,EAAE;YACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;CAAA;AAvGD,oDAuGC;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -44,21 +44,23 @@ function applicationGenerator(tree, schema) {
|
|
|
44
44
|
(0, lib_1.createFiles)(tree, options);
|
|
45
45
|
(0, lib_1.updateConfigFiles)(tree, options);
|
|
46
46
|
(0, lib_1.updateAppComponentTemplate)(tree, options);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
if (!options.minimal) {
|
|
48
|
+
// Create the NxWelcomeComponent
|
|
49
|
+
const angularComponentSchematic = (0, ngcli_adapter_1.wrapAngularDevkitSchematic)('@schematics/angular', 'component');
|
|
50
|
+
yield angularComponentSchematic(tree, {
|
|
51
|
+
name: 'NxWelcome',
|
|
52
|
+
inlineTemplate: true,
|
|
53
|
+
inlineStyle: true,
|
|
54
|
+
prefix: options.prefix,
|
|
55
|
+
skipTests: true,
|
|
56
|
+
style: options.style,
|
|
57
|
+
flat: true,
|
|
58
|
+
viewEncapsulation: 'None',
|
|
59
|
+
project: options.name,
|
|
60
|
+
standalone: options.standalone,
|
|
61
|
+
});
|
|
62
|
+
(0, lib_1.updateNxComponentTemplate)(tree, options);
|
|
63
|
+
}
|
|
62
64
|
if (options.addTailwind) {
|
|
63
65
|
yield (0, setup_tailwind_1.setupTailwindGenerator)(tree, {
|
|
64
66
|
project: options.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/application/application.ts"],"names":[],"mappings":";;;;AAAA,yCAQsB;AACtB,8DAAwE;AACxE,+BAA4B;AAC5B,2DAA0D;AAC1D,uCAAoD;AACpD,qEAA0E;AAC1E,0DAGgC;AAChC,+BAgBe;AAEf,mCAA4B;AAE5B,SAAsB,oBAAoB,CACxC,IAAU,EACV,MAAuB;;QAEvB,MAAM,2BAA2B,GAAG,IAAA,8CAA8B,EAAC,IAAI,CAAC,CAAC;QAEzE,IAAI,IAAA,WAAE,EAAC,2BAA2B,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,UAAU,EAAE;YAC1E,MAAM,IAAI,KAAK,CAAC,IAAA,qBAAY,EAAA,2FAA2F,2BAA2B,CAAC,OAAO;sGACxD,CAAC,CAAC;SACrG;QAED,MAAM,kBAAkB,GACtB,IAAA,+DAA+C,EAAC,IAAI,CAAC,CAAC;QACxD,IAAI,kBAAkB,EAAE;YACtB,IAAI,iBAAiB,GAAG,2CACtB,IAAA,WAAI,EAAC,SAAS,EAAE,kBAAkB,EAAE,aAAa,CAAC,EACnD,CAAC;YACF,OAAO,MAAM,iBAAiB,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SACtD;QAED,MAAM,OAAO,GAAG,IAAA,sBAAgB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE/C,MAAM,IAAA,2BAAoB,EAAC,IAAI,kCAC1B,OAAO,KACV,UAAU,EAAE,IAAI,IAChB,CAAC;QAEH,MAAM,mBAAmB,GAAG,IAAA,0CAA0B,EACpD,qBAAqB,EACrB,aAAa,CACd,CAAC;QACF,MAAM,mBAAmB,CAAC,IAAI,EAAE;YAC9B,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,IAAI;YACjB,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CAAC;QAEH,IAAI,OAAO,CAAC,qBAAqB,KAAK,OAAO,CAAC,cAAc,EAAE;YAC5D,IAAA,gCAAuB,EACrB,IAAI,EACJ,OAAO,CAAC,qBAAqB,EAC7B,OAAO,CAAC,cAAc,CACvB,CAAC;SACH;QAED,IAAA,iBAAW,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAA,uBAAiB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,IAAA,gCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1C,gCAAgC;
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/application/application.ts"],"names":[],"mappings":";;;;AAAA,yCAQsB;AACtB,8DAAwE;AACxE,+BAA4B;AAC5B,2DAA0D;AAC1D,uCAAoD;AACpD,qEAA0E;AAC1E,0DAGgC;AAChC,+BAgBe;AAEf,mCAA4B;AAE5B,SAAsB,oBAAoB,CACxC,IAAU,EACV,MAAuB;;QAEvB,MAAM,2BAA2B,GAAG,IAAA,8CAA8B,EAAC,IAAI,CAAC,CAAC;QAEzE,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AAE,OAAO,CAAC,CAAC;QAChC,MAAM,IAAA,uBAAiB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACvC,MAAM,IAAA,YAAM,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5B,IAAA,0BAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEpC,IAAI,OAAO,CAAC,WAAW,EAAE;YACvB,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC;YAChC,MAAM,CAAC,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;YACrC,IAAA,qBAAY,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SAC5B;QAED,IAAI,OAAO,CAAC,cAAc,EAAE;YAC1B,IAAA,oBAAc,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SAC/B;QAED,IAAI,OAAO,CAAC,MAAM,EAAE;YAClB,IAAA,8BAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SACzC;aAAM;YACL,IAAA,iCAA2B,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC1C;QAED,IAAI,OAAO,CAAC,UAAU,EAAE;YACtB,IAAA,4BAAsB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SACvC;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,GAAG,EAAE;YACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;CAAA;AA7HD,oDA6HC;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -159,6 +159,11 @@
|
|
|
159
159
|
"default": false,
|
|
160
160
|
"hidden": true,
|
|
161
161
|
"x-priority": "internal"
|
|
162
|
+
},
|
|
163
|
+
"minimal": {
|
|
164
|
+
"description": "Generate a Angular app with a minimal setup.",
|
|
165
|
+
"type": "boolean",
|
|
166
|
+
"default": false
|
|
162
167
|
}
|
|
163
168
|
},
|
|
164
169
|
"additionalProperties": false,
|
|
@@ -13,6 +13,7 @@ function migrateFromAngularCli(tree, rawOptions) {
|
|
|
13
13
|
const projects = (0, utilities_1.getAllProjects)(tree);
|
|
14
14
|
const options = (0, utilities_1.normalizeOptions)(tree, rawOptions, projects);
|
|
15
15
|
const angularJson = (0, devkit_1.readJson)(tree, 'angular.json');
|
|
16
|
+
(0, utilities_1.ensureAngularDevKitPeerDependenciesAreInstalled)(tree);
|
|
16
17
|
if (options.preserveAngularCliLayout) {
|
|
17
18
|
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
18
19
|
nx: versions_2.nxVersion,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-from-angular-cli.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/ng-add/migrate-from-angular-cli.ts"],"names":[],"mappings":";;;;AACA,yCAKsB;AACtB,iEAAqE;AACrE,mDAAiD;AAEjD,2CAAuD;AAEvD,
|
|
1
|
+
{"version":3,"file":"migrate-from-angular-cli.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/ng-add/migrate-from-angular-cli.ts"],"names":[],"mappings":";;;;AACA,yCAKsB;AACtB,iEAAqE;AACrE,mDAAiD;AAEjD,2CAAuD;AAEvD,2CAoBqB;AAErB,SAAsB,qBAAqB,CACzC,IAAU,EACV,UAA4B;;QAE5B,IAAA,6BAAiB,EAAC,IAAI,CAAC,CAAC;QACxB,MAAM,QAAQ,GAAG,IAAA,0BAAc,EAAC,IAAI,CAAC,CAAC;QACtC,MAAM,OAAO,GAAG,IAAA,4BAAgB,EAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QAE7D,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAQ,CAAC;QAC1D,IAAA,2DAA+C,EAAC,IAAI,CAAC,CAAC;QAEtD,IAAI,OAAO,CAAC,wBAAwB,EAAE;Y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,EAAE,CAAC,iCACtC,IAAI,KACP,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,SAAS,IAClB,CAAC,CAAC;YACJ,IAAA,wBAAY,EAAC,IAAI,EAAE,OAAO,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;YACxD,IAAA,yCAA6B,EAAC,IAAI,CAAC,CAAC;YACpC,IAAA,8BAAkB,EAAC,IAAI,CAAC,CAAC;YACzB,IAAA,6BAAiB,EAAC,IAAI,CAAC,CAAC;YACxB,MAAM,IAAA,gCAAoB,EAAC,IAAI,CAAC,CAAC;YAEjC,uBAAuB;YACvB,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;gBAChC,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC;aAC1B;YAED;;;;eAIG;YACH,IAAI,0BAA0B,CAAC,KAAK,EAAE;gBACpC,IAAA,iCAAqB,EAAC,IAAI,CAAC,CAAC;aAC7B;YACD,IAAI,0BAA0B,CAAC,MAAM,EAAE;gBACrC,IAAA,kCAAsB,EAAC,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;gBACnE,IAAA,iCAAqB,EAAC,IAAI,CAAC,CAAC;aAC7B;YAED,IAAA,yCAA6B,EAAC,IAAI,CAAC,CAAC;SACrC;QAED,IAAA,6BAAiB,EAAC,IAAI,CAAC,CAAC;QAExB,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;YACxB,OAAO,GAAG,EAAE;gBACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;gBAC1B,IAAA,2BAAe,EAAC,IAAI,CAAC,CAAC;YACxB,CAAC,CAAC;SACH;IACH,CAAC;CAAA;AA/FD,sDA+FC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureAngularDevKitPeerDependenciesAreInstalled = void 0;
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
const version_utils_1 = require("../../../utils/version-utils");
|
|
6
|
+
const version_utils_2 = require("../../utils/version-utils");
|
|
7
|
+
function ensureAngularDevKitPeerDependenciesAreInstalled(tree) {
|
|
8
|
+
var _a;
|
|
9
|
+
const packagesToInstall = [
|
|
10
|
+
'@angular-devkit/core',
|
|
11
|
+
'@angular-devkit/schematics',
|
|
12
|
+
'@schematics/angular',
|
|
13
|
+
];
|
|
14
|
+
const { devDependencies, dependencies } = (0, devkit_1.readJson)(tree, 'package.json');
|
|
15
|
+
let angularCliVersion = (_a = devDependencies === null || devDependencies === void 0 ? void 0 : devDependencies['@angular/cli']) !== null && _a !== void 0 ? _a : dependencies === null || dependencies === void 0 ? void 0 : dependencies['@angular/cli'];
|
|
16
|
+
if (!angularCliVersion) {
|
|
17
|
+
const angularMajorVersion = (0, version_utils_2.getInstalledAngularMajorVersion)(tree);
|
|
18
|
+
const angularDevkitVersion = (0, version_utils_1.getPkgVersionForAngularMajorVersion)('angularDevkitVersion', angularMajorVersion);
|
|
19
|
+
angularCliVersion = angularDevkitVersion;
|
|
20
|
+
}
|
|
21
|
+
const filteredPackages = packagesToInstall
|
|
22
|
+
.filter((pkg) => !(devDependencies === null || devDependencies === void 0 ? void 0 : devDependencies[pkg]) && !(dependencies === null || dependencies === void 0 ? void 0 : dependencies[pkg]))
|
|
23
|
+
.reduce((allPkgs, pkg) => {
|
|
24
|
+
allPkgs[pkg] = angularCliVersion;
|
|
25
|
+
return allPkgs;
|
|
26
|
+
}, {});
|
|
27
|
+
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, filteredPackages);
|
|
28
|
+
}
|
|
29
|
+
exports.ensureAngularDevKitPeerDependenciesAreInstalled = ensureAngularDevKitPeerDependenciesAreInstalled;
|
|
30
|
+
//# sourceMappingURL=dependencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/ng-add/utilities/dependencies.ts"],"names":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|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./dependencies"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./file-change-recorder"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./format-files-task"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./logger"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/ng-add/utilities/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,8DAAoC;AACpC,mDAAyB;AACzB,8DAAoC;AACpC,qDAA2B;AAC3B,kDAAwB;AACxB,+DAAqC;AACrC,sDAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/ng-add/utilities/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,iEAAuC;AACvC,8DAAoC;AACpC,mDAAyB;AACzB,8DAAoC;AACpC,qDAA2B;AAC3B,kDAAwB;AACxB,+DAAqC;AACrC,sDAA4B"}
|
|
@@ -4,7 +4,9 @@ exports.addRemoteEntry = void 0;
|
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
5
|
const route_utils_1 = require("../../../utils/nx-devkit/route-utils");
|
|
6
6
|
function addRemoteEntry(tree, { appName, routing, mfType, prefix, standalone }, appRoot) {
|
|
7
|
-
|
|
7
|
+
var _a, _b;
|
|
8
|
+
prefix =
|
|
9
|
+
(_b = prefix !== null && prefix !== void 0 ? prefix : (_a = (0, devkit_1.readProjectConfiguration)(tree, appName)) === null || _a === void 0 ? void 0 : _a.prefix) !== null && _b !== void 0 ? _b : (0, devkit_1.readNxJson)(tree).npmScope;
|
|
8
10
|
(0, devkit_1.generateFiles)(tree, standalone
|
|
9
11
|
? (0, devkit_1.joinPathFragments)(__dirname, '../files/standalone-entry-component-files')
|
|
10
12
|
: (0, devkit_1.joinPathFragments)(__dirname, '../files/entry-module-files'), `${appRoot}/src/app/remote-entry`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-remote-entry.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/setup-mf/lib/add-remote-entry.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"add-remote-entry.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/setup-mf/lib/add-remote-entry.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AAEtB,sEAAgE;AAEhE,SAAgB,cAAc,CAC5B,IAAU,EACV,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAU,EACxD,OAAe;;IAEf,MAAM;QACJ,MAAA,MAAM,aAAN,MAAM,cAAN,MAAM,GACN,MACE,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAGvC,0CAAE,MAAM,mCACT,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAC5B,IAAA,sBAAa,EACX,IAAI,EACJ,UAAU;QACR,CAAC,CAAC,IAAA,0BAAiB,EACf,SAAS,EACT,2CAA2C,CAC5C;QACH,CAAC,CAAC,IAAA,0BAAiB,EAAC,SAAS,EAAE,6BAA6B,CAAC,EAC/D,GAAG,OAAO,uBAAuB,EACjC;QACE,IAAI,EAAE,EAAE;QACR,OAAO;QACP,OAAO;QACP,MAAM;KACP,CACF,CAAC;IAEF,IAAI,UAAU,IAAI,OAAO,EAAE;QACzB,IAAA,sBAAQ,EACN,IAAI,EACJ,IAAA,0BAAiB,EAAC,OAAO,EAAE,uBAAuB,CAAC,EACnD,iGAAiG,CAClG,CAAC;KACH;SAAM;QACL,IAAI,OAAO,EAAE;YACX,IAAA,sBAAQ,EACN,IAAI,EACJ,IAAA,0BAAiB,EAAC,OAAO,EAAE,uBAAuB,CAAC,EACnD,sGAAsG,CACvG,CAAC;SACH;QAED,IAAI,CAAC,KAAK,CACR,GAAG,OAAO,wBAAwB,EAClC;;;;;;EAMJ,IAAI,CAAC,IAAI,CAAC,GAAG,OAAO,wBAAwB,EAAE,OAAO,CAAC,EAAE,CACrD,CAAC;KACH;AACH,CAAC;AAxDD,wCAwDC"}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fixBootstrap = void 0;
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
const version_utils_1 = require("../../utils/version-utils");
|
|
5
6
|
function fixBootstrap(tree, appRoot, options) {
|
|
6
7
|
const mainFilePath = (0, devkit_1.joinPathFragments)(appRoot, 'src/main.ts');
|
|
7
8
|
const bootstrapCode = tree.read(mainFilePath, 'utf-8');
|
|
9
|
+
const installedAngularMajor = (0, version_utils_1.getInstalledAngularMajorVersion)(tree);
|
|
8
10
|
if (options.standalone) {
|
|
9
|
-
tree.write(`${appRoot}/src/bootstrap.ts`, standaloneBootstrapCode);
|
|
11
|
+
tree.write(`${appRoot}/src/bootstrap.ts`, standaloneBootstrapCode(installedAngularMajor === 14));
|
|
10
12
|
}
|
|
11
13
|
else {
|
|
12
14
|
tree.write((0, devkit_1.joinPathFragments)(appRoot, 'src/bootstrap.ts'), bootstrapCode);
|
|
@@ -23,17 +25,19 @@ function fixBootstrap(tree, appRoot, options) {
|
|
|
23
25
|
: bootstrapImportCode);
|
|
24
26
|
}
|
|
25
27
|
exports.fixBootstrap = fixBootstrap;
|
|
26
|
-
const standaloneBootstrapCode = `import {
|
|
27
|
-
import {enableProdMode, importProvidersFrom} from "@angular/core";
|
|
28
|
+
const standaloneBootstrapCode = (includeEnvironments = false) => `import {importProvidersFrom} from "@angular/core";
|
|
28
29
|
import {bootstrapApplication} from "@angular/platform-browser";
|
|
29
30
|
import {RouterModule} from "@angular/router";
|
|
30
31
|
import {RemoteEntryComponent} from "./app/remote-entry/entry.component";
|
|
31
32
|
import {appRoutes} from "./app/app.routes";
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
${includeEnvironments
|
|
34
|
+
? `import {enableProdMode} from '@angular/core';
|
|
35
|
+
import {environment} from './environments/environment';
|
|
36
|
+
if(environment.production) {
|
|
34
37
|
enableProdMode();
|
|
35
38
|
}
|
|
36
|
-
|
|
39
|
+
`
|
|
40
|
+
: ``}
|
|
37
41
|
bootstrapApplication(RemoteEntryComponent, {
|
|
38
42
|
providers: [
|
|
39
43
|
importProvidersFrom(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fix-bootstrap.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/setup-mf/lib/fix-bootstrap.ts"],"names":[],"mappings":";;;AACA,yCAAiD;
|
|
1
|
+
{"version":3,"file":"fix-bootstrap.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/setup-mf/lib/fix-bootstrap.ts"],"names":[],"mappings":";;;AACA,yCAAiD;AAEjD,6DAA4E;AAE5E,SAAgB,YAAY,CAAC,IAAU,EAAE,OAAe,EAAE,OAAe;IACvE,MAAM,YAAY,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAC/D,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACvD,MAAM,qBAAqB,GAAG,IAAA,+CAA+B,EAAC,IAAI,CAAC,CAAC;IACpE,IAAI,OAAO,CAAC,UAAU,EAAE;QACtB,IAAI,CAAC,KAAK,CACR,GAAG,OAAO,mBAAmB,EAC7B,uBAAuB,CAAC,qBAAqB,KAAK,EAAE,CAAC,CACtD,CAAC;KACH;SAAM;QACL,IAAI,CAAC,KAAK,CAAC,IAAA,0BAAiB,EAAC,OAAO,EAAE,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC;KAC3E;IAED,MAAM,mBAAmB,GAAG,wDAAwD,CAAC;IAErF,MAAM,mBAAmB,GAAG;;;;;gBAKd,mBAAmB,GAAG,CAAC;IAErC,IAAI,CAAC,KAAK,CACR,YAAY,EACZ,OAAO,CAAC,MAAM,KAAK,MAAM,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS;QAC/D,CAAC,CAAC,mBAAmB;QACrB,CAAC,CAAC,mBAAmB,CACxB,CAAC;AACJ,CAAC;AA5BD,oCA4BC;AAED,MAAM,uBAAuB,GAAG,CAC9B,sBAA+B,KAAK,EACpC,EAAE,CAAC;;;;;EAMH,mBAAmB;IACjB,CAAC,CAAC;;;;;CAKL;IACG,CAAC,CAAC,EACN;;;;;;;IAOI,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
const version_utils_1 = require("../../generators/utils/version-utils");
|
|
6
|
+
const version_utils_2 = require("../../utils/version-utils");
|
|
7
|
+
function default_1(tree) {
|
|
8
|
+
var _a, _b, _c, _d;
|
|
9
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const packagesToInstall = [
|
|
11
|
+
'@angular-devkit/core',
|
|
12
|
+
'@angular-devkit/schematics',
|
|
13
|
+
'@schematics/angular',
|
|
14
|
+
];
|
|
15
|
+
const pkgJson = (0, devkit_1.readJson)(tree, 'package.json');
|
|
16
|
+
const angularMajorVersion = (0, version_utils_1.getInstalledAngularMajorVersion)(tree);
|
|
17
|
+
const angularDevkitVersion = (0, version_utils_2.getPkgVersionForAngularMajorVersion)('angularDevkitVersion', angularMajorVersion);
|
|
18
|
+
const angularCliVersion = (_d = (_b = (_a = pkgJson.devDependencies) === null || _a === void 0 ? void 0 : _a['@angular/cli']) !== null && _b !== void 0 ? _b : (_c = pkgJson.dependencies) === null || _c === void 0 ? void 0 : _c['@angular/cli']) !== null && _d !== void 0 ? _d : angularDevkitVersion;
|
|
19
|
+
const filteredPackages = packagesToInstall
|
|
20
|
+
.filter((pkg) => { var _a, _b; return !((_a = pkgJson.devDependencies) === null || _a === void 0 ? void 0 : _a[pkg]) && !((_b = pkgJson.dependencies) === null || _b === void 0 ? void 0 : _b[pkg]); })
|
|
21
|
+
.reduce((allPkgs, pkg) => (Object.assign(Object.assign({}, allPkgs), { [pkg]: angularCliVersion })), {});
|
|
22
|
+
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, Object.assign({}, filteredPackages));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
exports.default = default_1;
|
|
26
|
+
//# sourceMappingURL=install-required-packages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-required-packages.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/migrations/update-15-7-0/install-required-packages.ts"],"names":[],"mappings":";;;AACA,yCAAsE;AACtE,wEAAuF;AACvF,6DAAgF;AAEhF,mBAA+B,IAAU;;;QACvC,MAAM,iBAAiB,GAAG;YACxB,sBAAsB;YACtB,4BAA4B;YAC5B,qBAAqB;SACtB,CAAC;QACF,MAAM,OAAO,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAE/C,MAAM,mBAAmB,GAAG,IAAA,+CAA+B,EAAC,IAAI,CAAC,CAAC;QAClE,MAAM,oBAAoB,GAAG,IAAA,mDAAmC,EAC9D,sBAAsB,EACtB,mBAAmB,CACpB,CAAC;QAEF,MAAM,iBAAiB,GACrB,MAAA,MAAA,MAAA,OAAO,CAAC,eAAe,0CAAG,cAAc,CAAC,mCACzC,MAAA,OAAO,CAAC,YAAY,0CAAG,cAAc,CAAC,mCACtC,oBAAoB,CAAC;QAEvB,MAAM,gBAAgB,GAA2B,iBAAiB;aAC/D,MAAM,CACL,CAAC,GAAG,EAAE,EAAE,eAAC,OAAA,CAAC,CAAA,MAAA,OAAO,CAAC,eAAe,0CAAG,GAAG,CAAC,CAAA,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,YAAY,0CAAG,GAAG,CAAC,CAAA,CAAA,EAAA,CACzE;aACA,MAAM,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,iCAAM,OAAO,KAAE,CAAC,GAAG,CAAC,EAAE,iBAAiB,IAAG,EAAE,EAAE,CAAC,CAAC;QAE5E,IAAA,qCAA4B,EAAC,IAAI,EAAE,EAAE,oBAAO,gBAAgB,EAAG,CAAC;;CACjE;AA1BD,4BA0BC"}
|
|
@@ -32,15 +32,9 @@ function createApp(tree, appName, routing = true) {
|
|
|
32
32
|
export class AppModule {}
|
|
33
33
|
`);
|
|
34
34
|
tree.write(`/apps/${appName}/src/main.ts`, `
|
|
35
|
-
import { enableProdMode } from '@angular/core';
|
|
36
35
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
37
36
|
|
|
38
37
|
import { AppModule } from './app/app.module';
|
|
39
|
-
import { environment } from './environments/environment';
|
|
40
|
-
|
|
41
|
-
if (environment.production) {
|
|
42
|
-
enableProdMode();
|
|
43
|
-
}
|
|
44
38
|
|
|
45
39
|
platformBrowserDynamic()
|
|
46
40
|
.bootstrapModule(AppModule)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/utils/nx-devkit/testing.ts"],"names":[],"mappings":";;;AACA,yCAA0E;AAa1E,IAAI,SAAoB,CAAC,CAAC,iCAAiC;AAC3D,IAAI,SAAoB,CAAC;AAEzB,SAAgB,YAAY;IAC1B,OAAO,SAAS,CAAC;AACnB,CAAC;AAFD,oCAEC;AAED,SAAgB,YAAY;IAC1B,OAAO,SAAS,CAAC;AACnB,CAAC;AAFD,oCAEC;AAED,SAAgB,SAAS,CACvB,IAAU,EACV,OAAe,EACf,UAAmB,IAAI;IAEvB,OAAO,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,CAAC;IAClC,0DAA0D;IAC1D,SAAS,GAAG;QACV,OAAO;QACP,SAAS,EAAE,SAAS,OAAO,wBAAwB;KACpD,CAAC;IAEF,IAAI,CAAC,KAAK,CACR,SAAS,CAAC,SAAS,EACnB;;;OAGG,OAAO,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE;;;kCAGpC,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE;;;;;GAKxE,CACA,CAAC;IACF,IAAI,CAAC,KAAK,CACR,SAAS,OAAO,cAAc,EAC9B
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/utils/nx-devkit/testing.ts"],"names":[],"mappings":";;;AACA,yCAA0E;AAa1E,IAAI,SAAoB,CAAC,CAAC,iCAAiC;AAC3D,IAAI,SAAoB,CAAC;AAEzB,SAAgB,YAAY;IAC1B,OAAO,SAAS,CAAC;AACnB,CAAC;AAFD,oCAEC;AAED,SAAgB,YAAY;IAC1B,OAAO,SAAS,CAAC;AACnB,CAAC;AAFD,oCAEC;AAED,SAAgB,SAAS,CACvB,IAAU,EACV,OAAe,EACf,UAAmB,IAAI;IAEvB,OAAO,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC,QAAQ,CAAC;IAClC,0DAA0D;IAC1D,SAAS,GAAG;QACV,OAAO;QACP,SAAS,EAAE,SAAS,OAAO,wBAAwB;KACpD,CAAC;IAEF,IAAI,CAAC,KAAK,CACR,SAAS,CAAC,SAAS,EACnB;;;OAGG,OAAO,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE;;;kCAGpC,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE;;;;;GAKxE,CACA,CAAC;IACF,IAAI,CAAC,KAAK,CACR,SAAS,OAAO,cAAc,EAC9B;;;;;;;;GAQD,CACA,CAAC;IACF,IAAI,CAAC,KAAK,CACR,SAAS,OAAO,oBAAoB,EACpC,IAAI,CAAC,SAAS,CAAC;QACb,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CAAC,CACH,CAAC;IACF,IAAI,CAAC,KAAK,CACR,SAAS,OAAO,wBAAwB,EACxC,IAAI,CAAC,SAAS,CAAC;QACb,OAAO,EAAE,CAAC,YAAY,CAAC;KACxB,CAAC,CACH,CAAC;IACF,IAAA,gCAAuB,EAAC,IAAI,EAAE,OAAO,EAAE;QACrC,IAAI,EAAE,QAAQ,OAAO,EAAE;QACvB,UAAU,EAAE,QAAQ,OAAO,MAAM;QACjC,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ,OAAO,cAAc;iBACpC;aACF;YACD,KAAK,EAAE;gBACL,OAAO,EAAE,EAAE;aACZ;SACF;QACD,IAAI,EAAE,EAAE;KACT,CAAC,CAAC;AACL,CAAC;AAlED,8BAkEC;AAED,SAAgB,SAAS,CAAC,IAAU,EAAE,OAAe;IACnD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC;IAEnE,SAAS,GAAG;QACV,IAAI;QACJ,MAAM,EAAE,SAAS,YAAY,YAAY,QAAQ,YAAY;QAC7D,MAAM,EAAE,SAAS,YAAY,eAAe;KAC7C,CAAC;IAEF,IAAI,CAAC,KAAK,CACR,SAAS,CAAC,MAAM,EAChB;;;;;;;;;qBASiB,SAAS;GAC3B,CACA,CAAC;IACF,IAAI,CAAC,KAAK,CACR,SAAS,CAAC,MAAM,EAChB;2BACuB,QAAQ;GAChC,CACA,CAAC;AACJ,CAAC;AA7BD,8BA6BC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Observable } from 'rxjs';
|
|
2
2
|
/**
|
|
3
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).
|
|
4
|
+
*
|
|
3
5
|
* @whatItDoes reads all the values from an observable and returns a promise
|
|
4
6
|
* with an array of all values. This should be used in combination with async/await.
|
|
5
7
|
*
|
|
@@ -13,6 +15,8 @@ import type { Observable } from 'rxjs';
|
|
|
13
15
|
*/
|
|
14
16
|
export declare function readAll<T>(o: Observable<T>): Promise<T[]>;
|
|
15
17
|
/**
|
|
18
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)
|
|
19
|
+
*
|
|
16
20
|
* @whatItDoes reads the first value from an observable and returns a promise
|
|
17
21
|
* with it. This should be used in combination with async/await.
|
|
18
22
|
*
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.readFirst = exports.readAll = void 0;
|
|
4
4
|
const operators_1 = require("rxjs/operators");
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$.pipe(toArray())) or lastValueFrom(obs$.pipe(toArray())).
|
|
7
|
+
*
|
|
6
8
|
* @whatItDoes reads all the values from an observable and returns a promise
|
|
7
9
|
* with an array of all values. This should be used in combination with async/await.
|
|
8
10
|
*
|
|
@@ -19,6 +21,8 @@ function readAll(o) {
|
|
|
19
21
|
}
|
|
20
22
|
exports.readAll = readAll;
|
|
21
23
|
/**
|
|
24
|
+
* @deprecated This will be removed in a later version of Nx. Since RxJS 7, use firstValueFrom(obs$)
|
|
25
|
+
*
|
|
22
26
|
* @whatItDoes reads the first value from an observable and returns a promise
|
|
23
27
|
* with it. This should be used in combination with async/await.
|
|
24
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../../../../../packages/angular/testing/src/testing-utils.ts"],"names":[],"mappings":";;;AACA,8CAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../../../../../packages/angular/testing/src/testing-utils.ts"],"names":[],"mappings":";;;AACA,8CAAgD;AAEhD;;;;;;;;;;;;;GAaG;AACH,SAAgB,OAAO,CAAI,CAAgB;IACzC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAA,mBAAO,GAAE,CAAC,CAAC,SAAS,EAAE,CAAC;AACvC,CAAC;AAFD,0BAEC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAgB,SAAS,CAAI,CAAgB;IAC3C,OAAO,CAAC,CAAC,IAAI,CAAC,IAAA,iBAAK,GAAE,CAAC,CAAC,SAAS,EAAE,CAAC;AACrC,CAAC;AAFD,8BAEC"}
|