@nrwl/angular 15.0.0-beta.0 → 15.0.0-beta.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/executors.d.ts +1 -1
- package/executors.js +1 -1
- package/executors.js.map +1 -1
- package/executors.json +8 -8
- package/generators.json +4 -2
- package/migrations.json +12 -0
- package/package.json +9 -9
- package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.js +2 -2
- package/src/builders/module-federation-dev-server/module-federation-dev-server.impl.js.map +1 -1
- package/src/builders/module-federation-dev-server/schema.json +2 -1
- package/src/builders/{webpack-server → webpack-dev-server}/lib/index.d.ts +0 -0
- package/src/builders/{webpack-server → webpack-dev-server}/lib/index.js +0 -0
- package/src/builders/webpack-dev-server/lib/index.js.map +1 -0
- package/src/builders/{webpack-server → webpack-dev-server}/lib/normalize-options.d.ts +0 -0
- package/src/builders/{webpack-server → webpack-dev-server}/lib/normalize-options.js +0 -0
- package/src/builders/webpack-dev-server/lib/normalize-options.js.map +1 -0
- package/src/builders/{webpack-server → webpack-dev-server}/schema.d.ts +0 -0
- package/src/builders/{webpack-server → webpack-dev-server}/schema.json +3 -3
- package/src/builders/webpack-dev-server/webpack-dev-server.impl.d.ts +5 -0
- package/src/builders/{webpack-server/webpack-server.impl.js → webpack-dev-server/webpack-dev-server.impl.js} +5 -5
- package/src/builders/webpack-dev-server/webpack-dev-server.impl.js.map +1 -0
- package/src/executors/delegate-build/schema.json +2 -1
- package/src/executors/file-server/schema.json +2 -1
- package/src/generators/add-linting/schema.json +6 -0
- package/src/generators/application/lib/convert-to-standalone-app.js +3 -3
- package/src/generators/application/lib/convert-to-standalone-app.js.map +1 -1
- package/src/generators/application/schema.d.ts +0 -1
- package/src/generators/application/schema.json +2 -6
- package/src/generators/change-storybook-targets/schema.json +2 -1
- package/src/generators/component/schema.json +2 -1
- package/src/generators/component-cypress-spec/schema.json +2 -1
- package/src/generators/convert-to-with-mf/convert-to-with-mf.d.ts +2 -1
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js +4 -3
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js.map +1 -1
- package/src/generators/convert-to-with-mf/schema.json +6 -0
- package/src/generators/downgrade-module/schema.json +2 -1
- package/src/generators/host/host.d.ts +2 -1
- package/src/generators/host/host.js +3 -1
- package/src/generators/host/host.js.map +1 -1
- package/src/generators/init/init.js +10 -29
- package/src/generators/init/init.js.map +1 -1
- package/src/generators/init/schema.d.ts +0 -1
- package/src/generators/init/schema.json +6 -5
- package/src/generators/karma/schema.json +6 -0
- package/src/generators/karma-project/schema.json +2 -1
- package/src/generators/library/schema.d.ts +0 -1
- package/src/generators/library/schema.json +3 -6
- package/src/generators/library-secondary-entry-point/schema.json +2 -1
- package/src/generators/ng-add/migrate-from-angular-cli.js +5 -0
- package/src/generators/ng-add/migrate-from-angular-cli.js.map +1 -1
- package/src/generators/ng-add/schema.d.ts +1 -1
- package/src/generators/ng-add/schema.json +2 -1
- package/src/generators/ngrx/schema.json +10 -0
- package/src/generators/remote/remote.d.ts +2 -1
- package/src/generators/remote/remote.js +3 -1
- package/src/generators/remote/remote.js.map +1 -1
- package/src/generators/scam/schema.json +6 -0
- package/src/generators/scam-directive/schema.json +6 -0
- package/src/generators/scam-pipe/schema.json +6 -0
- package/src/generators/scam-to-standalone/schema.json +2 -1
- package/src/generators/setup-mf/lib/setup-serve-target.js +1 -1
- package/src/generators/setup-mf/lib/setup-serve-target.js.map +1 -1
- package/src/generators/setup-mf/schema.json +2 -1
- package/src/generators/setup-tailwind/schema.json +2 -1
- package/src/generators/upgrade-module/schema.json +2 -1
- package/src/generators/web-worker/schema.json +2 -1
- package/src/migrations/update-14-8-0/rename-webpack-server.d.ts +2 -0
- package/src/migrations/update-14-8-0/rename-webpack-server.js +22 -0
- package/src/migrations/update-14-8-0/rename-webpack-server.js.map +1 -0
- package/src/migrations/update-15-0-0/add-karma-inputs.d.ts +2 -0
- package/src/migrations/update-15-0-0/add-karma-inputs.js +48 -0
- package/src/migrations/update-15-0-0/add-karma-inputs.js.map +1 -0
- package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js +1 -1
- package/src/migrations/update-15-0-0/switch-to-jasmine-marbles.js.map +1 -1
- package/src/utils/mf/with-module-federation.js +3 -1
- package/src/utils/mf/with-module-federation.js.map +1 -1
- package/src/builders/webpack-server/lib/index.js.map +0 -1
- package/src/builders/webpack-server/lib/normalize-options.js.map +0 -1
- package/src/builders/webpack-server/webpack-server.impl.d.ts +0 -5
- package/src/builders/webpack-server/webpack-server.impl.js.map +0 -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
|
-
# [15.0.0-beta.
|
|
6
|
+
# [15.0.0-beta.2](https://github.com/nrwl/nx/compare/14.8.0...15.0.0-beta.2) (2022-10-11)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/angular
|
package/executors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './src/builders/module-federation-dev-server/module-federation-dev-server.impl';
|
|
2
2
|
export * from './src/builders/webpack-browser/webpack-browser.impl';
|
|
3
|
-
export * from './src/builders/webpack-server/webpack-server.impl';
|
|
3
|
+
export * from './src/builders/webpack-dev-server/webpack-dev-server.impl';
|
|
4
4
|
export * from './src/executors/delegate-build/delegate-build.impl';
|
|
5
5
|
export * from './src/executors/ng-packagr-lite/ng-packagr-lite.impl';
|
|
6
6
|
export * from './src/executors/package/package.impl';
|
package/executors.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./src/builders/module-federation-dev-server/module-federation-dev-server.impl"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./src/builders/webpack-browser/webpack-browser.impl"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./src/builders/webpack-server/webpack-server.impl"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./src/builders/webpack-dev-server/webpack-dev-server.impl"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./src/executors/delegate-build/delegate-build.impl"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./src/executors/ng-packagr-lite/ng-packagr-lite.impl"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./src/executors/package/package.impl"), exports);
|
package/executors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executors.js","sourceRoot":"","sources":["../../../packages/angular/executors.ts"],"names":[],"mappings":";;;AAAA,wHAA8F;AAC9F,8FAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"executors.js","sourceRoot":"","sources":["../../../packages/angular/executors.ts"],"names":[],"mappings":";;;AAAA,wHAA8F;AAC9F,8FAAoE;AACpE,oGAA0E;AAC1E,6FAAmE;AACnE,+FAAqE;AACrE,+EAAqD"}
|
package/executors.json
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"schema": "./src/builders/webpack-browser/schema.json",
|
|
21
21
|
"description": "The `webpack-browser` executor is very similar to the standard `browser` builder provided by the Angular Devkit. It allows you to build your Angular application to a build artifact that can be hosted online. There are some key differences: \n- Supports Custom Webpack Configurations \n- Supports Incremental Building"
|
|
22
22
|
},
|
|
23
|
-
"webpack-server": {
|
|
24
|
-
"implementation": "./src/builders/webpack-server/webpack-server.impl",
|
|
25
|
-
"schema": "./src/builders/webpack-server/schema.json",
|
|
26
|
-
"description": "The `webpack-server` executor is very similar to the standard `dev-server` builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration."
|
|
23
|
+
"webpack-dev-server": {
|
|
24
|
+
"implementation": "./src/builders/webpack-dev-server/webpack-dev-server.impl",
|
|
25
|
+
"schema": "./src/builders/webpack-dev-server/schema.json",
|
|
26
|
+
"description": "The `webpack-dev-server` executor is very similar to the standard `dev-server` builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration."
|
|
27
27
|
},
|
|
28
28
|
"module-federation-dev-server": {
|
|
29
29
|
"implementation": "./src/builders/module-federation-dev-server/module-federation-dev-server.impl",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"schema": "./src/builders/webpack-browser/schema.json",
|
|
58
58
|
"description": "The `webpack-browser` executor is very similar to the standard `browser` builder provided by the Angular Devkit. It allows you to build your Angular application to a build artifact that can be hosted online. There are some key differences: \n- Supports Custom Webpack Configurations \n- Supports Incremental Building"
|
|
59
59
|
},
|
|
60
|
-
"webpack-server": {
|
|
61
|
-
"implementation": "./src/builders/webpack-server/webpack-server.impl",
|
|
62
|
-
"schema": "./src/builders/webpack-server/schema.json",
|
|
63
|
-
"description": "The `webpack-server` executor is very similar to the standard `dev-server` builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration."
|
|
60
|
+
"webpack-dev-server": {
|
|
61
|
+
"implementation": "./src/builders/webpack-dev-server/webpack-dev-server.impl",
|
|
62
|
+
"schema": "./src/builders/webpack-dev-server/schema.json",
|
|
63
|
+
"description": "The `webpack-dev-server` executor is very similar to the standard `dev-server` builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration."
|
|
64
64
|
},
|
|
65
65
|
"module-federation-dev-server": {
|
|
66
66
|
"implementation": "./src/builders/module-federation-dev-server/module-federation-dev-server.impl",
|
package/generators.json
CHANGED
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"component-story": {
|
|
32
32
|
"factory": "./src/generators/component-story/compat",
|
|
33
33
|
"schema": "./src/generators/component-story/schema.json",
|
|
34
|
-
"description": "Creates a `stories.ts` file for a component."
|
|
34
|
+
"description": "Creates a `stories.ts` file for a component.",
|
|
35
|
+
"hidden": true
|
|
35
36
|
},
|
|
36
37
|
"component-test": {
|
|
37
38
|
"factory": "./src/generators/component-test/compat",
|
|
@@ -202,7 +203,8 @@
|
|
|
202
203
|
"component-story": {
|
|
203
204
|
"factory": "./src/generators/component-story/component-story",
|
|
204
205
|
"schema": "./src/generators/component-story/schema.json",
|
|
205
|
-
"description": "Creates a stories.ts file for a component."
|
|
206
|
+
"description": "Creates a stories.ts file for a component.",
|
|
207
|
+
"hidden": true
|
|
206
208
|
},
|
|
207
209
|
"component-test": {
|
|
208
210
|
"factory": "./src/generators/component-test/component-test",
|
package/migrations.json
CHANGED
|
@@ -173,11 +173,23 @@
|
|
|
173
173
|
"description": "Update the @angular/cli package version to ~14.2.0.",
|
|
174
174
|
"factory": "./src/migrations/update-14-6-0/update-angular-cli"
|
|
175
175
|
},
|
|
176
|
+
"rename-webpack-server-executor": {
|
|
177
|
+
"cli": "nx",
|
|
178
|
+
"version": "15.0.0-beta.0",
|
|
179
|
+
"description": "Rename @nrwl/angular:webpack-server executor to @nrwl/angular:webpack-dev-server",
|
|
180
|
+
"factory": "./src/migrations/update-14-8-0/rename-webpack-server"
|
|
181
|
+
},
|
|
176
182
|
"switch-to-jasmine-marbles": {
|
|
177
183
|
"cli": "nx",
|
|
178
184
|
"version": "15.0.0-beta.0",
|
|
179
185
|
"description": "Update the usages of @nrwl/angular/testing to import jasmine-marbles symbols from jasmine-marbles itself.",
|
|
180
186
|
"factory": "./src/migrations/update-15-0-0/switch-to-jasmine-marbles"
|
|
187
|
+
},
|
|
188
|
+
"add-karma-inputs": {
|
|
189
|
+
"cli": "nx",
|
|
190
|
+
"version": "15.0.0-beta.1",
|
|
191
|
+
"description": "Stop hashing karma spec files and config files for build targets and dependent tasks",
|
|
192
|
+
"factory": "./src/migrations/update-15-0-0/add-karma-inputs"
|
|
181
193
|
}
|
|
182
194
|
},
|
|
183
195
|
"packageJsonUpdates": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/angular",
|
|
3
|
-
"version": "15.0.0-beta.
|
|
3
|
+
"version": "15.0.0-beta.2",
|
|
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": {
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@angular-devkit/schematics": "~14.2.0",
|
|
70
|
-
"@nrwl/cypress": "15.0.0-beta.
|
|
71
|
-
"@nrwl/devkit": "15.0.0-beta.
|
|
72
|
-
"@nrwl/jest": "15.0.0-beta.
|
|
73
|
-
"@nrwl/linter": "15.0.0-beta.
|
|
74
|
-
"@nrwl/storybook": "15.0.0-beta.
|
|
75
|
-
"@nrwl/webpack": "15.0.0-beta.
|
|
76
|
-
"@nrwl/workspace": "15.0.0-beta.
|
|
70
|
+
"@nrwl/cypress": "15.0.0-beta.2",
|
|
71
|
+
"@nrwl/devkit": "15.0.0-beta.2",
|
|
72
|
+
"@nrwl/jest": "15.0.0-beta.2",
|
|
73
|
+
"@nrwl/linter": "15.0.0-beta.2",
|
|
74
|
+
"@nrwl/storybook": "15.0.0-beta.2",
|
|
75
|
+
"@nrwl/webpack": "15.0.0-beta.2",
|
|
76
|
+
"@nrwl/workspace": "15.0.0-beta.2",
|
|
77
77
|
"@phenomnomnominal/tsquery": "4.1.1",
|
|
78
78
|
"@schematics/angular": "~14.2.0",
|
|
79
79
|
"chalk": "4.1.0",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"fesm2015": "fesm2015/nrwl-angular.mjs",
|
|
100
100
|
"typings": "index.d.ts",
|
|
101
101
|
"sideEffects": false,
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "66a086413b95691f5c3859dac6879ccba0404531"
|
|
103
103
|
}
|
|
@@ -6,7 +6,7 @@ const devkit_1 = require("@nrwl/devkit");
|
|
|
6
6
|
const ngcli_adapter_1 = require("nx/src/adapter/ngcli-adapter");
|
|
7
7
|
const architect_1 = require("@angular-devkit/architect");
|
|
8
8
|
const path_1 = require("path");
|
|
9
|
-
const
|
|
9
|
+
const webpack_dev_server_impl_1 = require("../webpack-dev-server/webpack-dev-server.impl");
|
|
10
10
|
const fs_1 = require("fs");
|
|
11
11
|
const project_graph_1 = require("nx/src/project-graph/project-graph");
|
|
12
12
|
function getDynamicRemotes(project, context, workspaceProjects) {
|
|
@@ -109,7 +109,7 @@ function executeModuleFederationDevServerBuilder(schema, context) {
|
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
return (0,
|
|
112
|
+
return (0, webpack_dev_server_impl_1.executeWebpackDevServerBuilder)(options, context);
|
|
113
113
|
}
|
|
114
114
|
exports.executeModuleFederationDevServerBuilder = executeModuleFederationDevServerBuilder;
|
|
115
115
|
exports.default = (0, architect_1.createBuilder)(executeModuleFederationDevServerBuilder);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-federation-dev-server.impl.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":";;;;AACA,yCAKsB;AACtB,gEAA8D;AAC9D,yDAA0E;AAE1E,+BAA4B;AAC5B
|
|
1
|
+
{"version":3,"file":"module-federation-dev-server.impl.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":";;;;AACA,yCAKsB;AACtB,gEAA8D;AAC9D,yDAA0E;AAE1E,+BAA4B;AA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AG,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;gBAC5B,MAAM,IAAI,KAAK,CACb,WAAW,MAAM,yDAAyD,GAAG,CAAC,QAAQ,EAAE,EAAE,CAC3F,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,IAAA,wDAA8B,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC;AAnED,0FAmEC;AAED,kBAAe,IAAA,yBAAa,EAC1B,uCAAuC,CACxC,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/builders/webpack-dev-server/lib/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/builders/webpack-dev-server/lib/normalize-options.ts"],"names":[],"mappings":";;;AAEA,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,uBACE,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,IAAI,EAChB,IAAI,EAAE,KAAK,EACX,GAAG,EAAE,KAAK,IACP,MAAM,EACT;AACJ,CAAC;AATD,4CASC"}
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"title": "Schema for Webpack Server",
|
|
4
|
-
"description": "The webpack-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration.",
|
|
5
|
-
"examplesFile": "../../../docs/webpack-server-examples.md",
|
|
3
|
+
"title": "Schema for Webpack Dev Server",
|
|
4
|
+
"description": "The webpack-dev-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration.",
|
|
5
|
+
"examplesFile": "../../../docs/webpack-dev-server-examples.md",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"presets": [
|
|
8
8
|
{
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BuilderContext } from '@angular-devkit/architect';
|
|
2
|
+
import type { Schema } from './schema';
|
|
3
|
+
export declare function executeWebpackDevServerBuilder(rawOptions: Schema, context: BuilderContext): import("rxjs").Observable<import("@angular-devkit/build-angular").DevServerBuilderOutput>;
|
|
4
|
+
declare const _default: any;
|
|
5
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.executeWebpackDevServerBuilder = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const architect_1 = require("@angular-devkit/architect");
|
|
6
6
|
const build_angular_1 = require("@angular-devkit/build-angular");
|
|
@@ -13,7 +13,7 @@ const operators_1 = require("nx/src/project-graph/operators");
|
|
|
13
13
|
const webpack_merge_1 = require("webpack-merge");
|
|
14
14
|
const webpack_1 = require("../utilities/webpack");
|
|
15
15
|
const lib_1 = require("./lib");
|
|
16
|
-
function
|
|
16
|
+
function executeWebpackDevServerBuilder(rawOptions, context) {
|
|
17
17
|
var _a, _b, _c, _d, _e;
|
|
18
18
|
process.env.NX_TSCONFIG_PATH = (0, devkit_1.joinPathFragments)(context.workspaceRoot, 'tsconfig.base.json');
|
|
19
19
|
const options = (0, lib_1.normalizeOptions)(rawOptions);
|
|
@@ -85,6 +85,6 @@ function executeWebpackServerBuilder(rawOptions, context) {
|
|
|
85
85
|
}),
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
exports.
|
|
89
|
-
exports.default = (0, architect_1.createBuilder)(
|
|
90
|
-
//# sourceMappingURL=webpack-server.impl.js.map
|
|
88
|
+
exports.executeWebpackDevServerBuilder = executeWebpackDevServerBuilder;
|
|
89
|
+
exports.default = (0, architect_1.createBuilder)(executeWebpackDevServerBuilder);
|
|
90
|
+
//# sourceMappingURL=webpack-dev-server.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack-dev-server.impl.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/webpack-dev-server/webpack-dev-server.impl.ts"],"names":[],"mappings":";;;;AAAA,yDAA0E;AAC1E,iEAGuC;AAEvC,yCAIsB;AACtB,yHAAkH;AAClH,6FAI4D;AAC5D,sEAAoF;AACpF,2BAAgC;AAChC,8DAA8D;AAC9D,iDAAsC;AACtC,kDAAkE;AAClE,+BAAyC;AAGzC,SAAgB,8BAA8B,CAC5C,UAAkB,EAClB,OAAuB;;IAEvB,OAAO,CAAC,GAAG,CAAC,gBAAgB,GAAG,IAAA,0BAAiB,EAC9C,OAAO,CAAC,aAAa,EACrB,oBAAoB,CACrB,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,sBAAgB,EAAC,UAAU,CAAC,CAAC;IAE7C,MAAM,mBAAmB,GAAG,IAAA,0BAAiB,EAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACrE,MAAM,iCAAiC,GAAG,IAAA,8CAA8B,EACtE,mBAAmB,CAAC,OAAO,CAC5B,CAAC;IAEF,MAAM,WAAW,GACf,iCAAiC,CAAC,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAExE,MAAM,wBAAwB,GAAG,mBAAmB,CAAC,aAAa;QAChE,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,mBAAmB,CAAC,aAAa,CAAC;QAC/D,CAAC,CAAC,WAAW,CAAC,oBAAoB;YAClC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,WAAW,CAAC,oBAAoB,CAAC;YAC9D,CAAC,CAAC,SAAS,CAAC;IAEd,MAAM,mBAAmB,GACvB,MAA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AC7B,CAAC;YACF,gFAAgF;YAChF,yFAAyF;YACzF,4CAA4C;YAC5C,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC;YAEhD,0FAA0F;YAC1F,4DAA4D;YAC5D,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;gBAChC,OAAO,MAAM,CACX,iBAAiB,EACjB,wBAAwB,EACxB,OAAO,CAAC,MAAM,CACf,CAAC;aACH;YAED,OAAO,IAAA,qBAAK,EAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;QAC1C,CAAC,CAAA;KACF,CAAC,CAAC;AACL,CAAC;AAlID,wEAkIC;AAED,kBAAe,IAAA,yBAAa,EAC1B,8BAA8B,CACxB,CAAC"}
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
"description": "Adds linting configuration to an Angular project.",
|
|
6
6
|
"cli": "nx",
|
|
7
7
|
"type": "object",
|
|
8
|
+
"examples": [
|
|
9
|
+
{
|
|
10
|
+
"command": "nx g @nrwl/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib",
|
|
11
|
+
"description": "Adds ESLint with Angular-specific rules for an existing project named `cool-lib` with the [prefix](https://angular.io/guide/styleguide#style-02-07) `cool`"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
8
14
|
"properties": {
|
|
9
15
|
"prefix": {
|
|
10
16
|
"type": "string",
|
|
@@ -28,10 +28,10 @@ function updateMainEntrypoint(options, tree, pathToAppModule) {
|
|
|
28
28
|
}
|
|
29
29
|
tree.write((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'src/main.ts'), standaloneComponentMainContents(routerModuleSetup));
|
|
30
30
|
}
|
|
31
|
-
const standaloneComponentMainContents = (routerModuleSetup) => `import { enableProdMode
|
|
31
|
+
const standaloneComponentMainContents = (routerModuleSetup) => `import { enableProdMode } from '@angular/core';
|
|
32
32
|
import { bootstrapApplication } from '@angular/platform-browser';${routerModuleSetup
|
|
33
33
|
? `
|
|
34
|
-
import {
|
|
34
|
+
import { provideRouter, withNonEnabledBlockingInitialNavigation } from '@angular/router'`
|
|
35
35
|
: ``};
|
|
36
36
|
import { AppComponent } from './app/app.component';
|
|
37
37
|
import { environment } from './environments/environment';
|
|
@@ -43,7 +43,7 @@ if (environment.production) {
|
|
|
43
43
|
|
|
44
44
|
bootstrapApplication(AppComponent${routerModuleSetup
|
|
45
45
|
? `, {
|
|
46
|
-
providers: [
|
|
46
|
+
providers: [provideRouter(appRoutes, withEnabledBlockingInitialNavigation())],
|
|
47
47
|
}`
|
|
48
48
|
: ''}).catch((err) => console.error(err));`;
|
|
49
49
|
function updateAppComponent(tree, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-to-standalone-app.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/convert-to-standalone-app.ts"],"names":[],"mappings":";;;AACA,yCAAiD;AAEjD,uDAAoD;AAEpD,SAAgB,sBAAsB,CAAC,IAAU,EAAE,OAAyB;IAC1E,MAAM,eAAe,GAAG,IAAA,0BAAiB,EACvC,OAAO,CAAC,cAAc,EACtB,uBAAuB,CACxB,CAAC;IACF,oBAAoB,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC;IACrD,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;QACtB,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;KACvC;IAED,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAC/B,CAAC;AAZD,wDAYC;AAED,SAAS,oBAAoB,CAC3B,OAAyB,EACzB,IAAU,EACV,eAAuB;IAEvB,IAAI,iBAAyB,CAAC;IAC9B,IAAI,OAAO,CAAC,OAAO,EAAE;QACnB,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QAC9D,MAAM,GAAG,GAAG,iBAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAE3C,MAAM,sBAAsB,GAC1B,+HAA+H,CAAC;QAClI,MAAM,KAAK,GAAG,IAAA,iBAAO,EAAC,GAAG,EAAE,sBAAsB,EAAE;YACjD,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,iBAAiB,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;SACxC;KACF;IAED,IAAI,CAAC,KAAK,CACR,IAAA,0BAAiB,EAAC,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,EACxD,+BAA+B,CAAC,iBAAiB,CAAC,CACnD,CAAC;AACJ,CAAC;AAED,MAAM,+BAA+B,GAAG,CACtC,iBAAiB,EACjB,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"convert-to-standalone-app.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/convert-to-standalone-app.ts"],"names":[],"mappings":";;;AACA,yCAAiD;AAEjD,uDAAoD;AAEpD,SAAgB,sBAAsB,CAAC,IAAU,EAAE,OAAyB;IAC1E,MAAM,eAAe,GAAG,IAAA,0BAAiB,EACvC,OAAO,CAAC,cAAc,EACtB,uBAAuB,CACxB,CAAC;IACF,oBAAoB,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC;IACrD,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;QACtB,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;KACvC;IAED,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAC/B,CAAC;AAZD,wDAYC;AAED,SAAS,oBAAoB,CAC3B,OAAyB,EACzB,IAAU,EACV,eAAuB;IAEvB,IAAI,iBAAyB,CAAC;IAC9B,IAAI,OAAO,CAAC,OAAO,EAAE;QACnB,MAAM,iBAAiB,GAAG,IAAI,CAAC,IA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": false,
|
|
94
94
|
"description": "Do not add dependencies to `package.json`."
|
|
95
95
|
},
|
|
96
|
-
"skipPostInstall": {
|
|
97
|
-
"type": "boolean",
|
|
98
|
-
"default": false,
|
|
99
|
-
"description": "Do not add or append `ngcc` to the `postinstall` script in `package.json`."
|
|
100
|
-
},
|
|
101
96
|
"unitTestRunner": {
|
|
102
97
|
"type": "string",
|
|
103
98
|
"enum": ["karma", "jest", "none"],
|
|
@@ -159,5 +154,6 @@
|
|
|
159
154
|
}
|
|
160
155
|
},
|
|
161
156
|
"additionalProperties": false,
|
|
162
|
-
"required": ["name"]
|
|
157
|
+
"required": ["name"],
|
|
158
|
+
"examplesFile": "../../../docs/application-examples.md"
|
|
163
159
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Tree } from '@nrwl/devkit';
|
|
2
2
|
import type { Schema } from './schema';
|
|
3
|
-
export
|
|
3
|
+
export declare function convertToWithMF(tree: Tree, schema: Schema): Promise<void>;
|
|
4
|
+
export default convertToWithMF;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertToWithMF = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
const devkit_2 = require("@nrwl/devkit");
|
|
6
6
|
const get_mf_projects_1 = require("../../utils/get-mf-projects");
|
|
7
7
|
const lib_1 = require("./lib");
|
|
8
8
|
function convertToWithMF(tree, schema) {
|
|
@@ -11,7 +11,7 @@ function convertToWithMF(tree, schema) {
|
|
|
11
11
|
if (!projects.has(schema.project)) {
|
|
12
12
|
throw new Error(`Could not find project "${schema.project}" with a Micro Frontend configuration in your workspace. Please check the name of the project you're wishing to convert exists.`);
|
|
13
13
|
}
|
|
14
|
-
const project = (0,
|
|
14
|
+
const project = (0, devkit_1.readProjectConfiguration)(tree, schema.project);
|
|
15
15
|
const pathToWebpackConfig = (0, lib_1.getWebpackConfigPath)(project, schema.project);
|
|
16
16
|
const webpackAst = (0, lib_1.parseASTOfWebpackConfig)(tree, pathToWebpackConfig);
|
|
17
17
|
if (!(0, lib_1.checkOutputNameMatchesProjectName)(webpackAst, schema.project)) {
|
|
@@ -26,8 +26,9 @@ function convertToWithMF(tree, schema) {
|
|
|
26
26
|
const [updatedWebpackConfig, mfConfig] = (0, lib_1.writeNewWebpackConfig)(webpackAst, (0, lib_1.isHostRemoteConfig)(webpackAst), schema.project);
|
|
27
27
|
tree.write(pathToWebpackConfig, updatedWebpackConfig);
|
|
28
28
|
tree.write((0, devkit_1.joinPathFragments)(project.root, 'module-federation.config.js'), mfConfig);
|
|
29
|
-
yield (0,
|
|
29
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
+
exports.convertToWithMF = convertToWithMF;
|
|
32
33
|
exports.default = convertToWithMF;
|
|
33
34
|
//# sourceMappingURL=convert-to-with-mf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-to-with-mf.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/convert-to-with-mf/convert-to-with-mf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convert-to-with-mf.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/convert-to-with-mf/convert-to-with-mf.ts"],"names":[],"mappings":";;;;AAAA,yCAMsB;AAEtB,iEAA4D;AAC5D,+BAOe;AAEf,SAAsB,eAAe,CAAC,IAAU,EAAE,MAAc;;QAC9D,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,IAAA,+BAAa,EAAC,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAEhE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;YACjC,MAAM,IAAI,KAAK,CACb,2BAA2B,MAAM,CAAC,OAAO,iIAAiI,CAC3K,CAAC;SACH;QAED,MAAM,OAAO,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/D,MAAM,mBAAmB,GAAG,IAAA,0BAAoB,EAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1E,MAAM,UAAU,GAAG,IAAA,6BAAuB,EAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;QAEtE,IAAI,CAAC,IAAA,uCAAiC,EAAC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;YAClE,MAAM,IAAI,KAAK,CACb,iCAAiC,MAAM,CAAC,OAAO;wCACb,mBAAmB,gCAAgC,CACtF,CAAC;SACH;QAED,IAAI,CAAC,IAAA,yCAAmC,EAAC,UAAU,CAAC,EAAE;YACpD,MAAM,IAAI,KAAK,CACb,iCAAiC,MAAM,CAAC,OAAO;6FACwC,mBAAmB,IAAI,CAC/G,CAAC;SACH;QAED,eAAM,CAAC,IAAI,CACT,gEAAgE,MAAM,CAAC,OAAO,wLAAwL,CACvQ,CAAC;QAEF,MAAM,CAAC,oBAAoB,EAAE,QAAQ,CAAC,GAAG,IAAA,2BAAqB,EAC5D,UAAU,EACV,IAAA,wBAAkB,EAAC,UAAU,CAAC,EAC9B,MAAM,CAAC,OAAO,CACf,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,CACR,IAAA,0BAAiB,EAAC,OAAO,CAAC,IAAI,EAAE,6BAA6B,CAAC,EAC9D,QAAQ,CACT,CAAC;QAEF,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AA3CD,0CA2CC;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
"type": "object",
|
|
7
7
|
"description": "Converts an old micro frontend configuration to use the new withModuleFederation helper. It will run successfully if the following conditions are met: \n - Is either a host or remote application \n - Shared npm package configurations have not been modified \n - Name used to identify the Micro Frontend application matches the project name \n\n{% callout type=\"warning\" title=\"Overrides\" %}This generator will overwrite your webpack config. If you have additional custom configuration in your config file, it will be lost!{% /callout %}.",
|
|
8
8
|
"additionalProperties": false,
|
|
9
|
+
"examples": [
|
|
10
|
+
{
|
|
11
|
+
"command": "nx g @nrwl/angular:convert-to-with-mf --project mf-app",
|
|
12
|
+
"description": "Convert a Module Federation Project using legacy webpack config to use the `withModuleFederation` helper."
|
|
13
|
+
}
|
|
14
|
+
],
|
|
9
15
|
"properties": {
|
|
10
16
|
"project": {
|
|
11
17
|
"type": "string",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.host = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
6
|
const application_1 = require("../application/application");
|
|
@@ -49,7 +50,7 @@ function host(tree, options) {
|
|
|
49
50
|
return installTask;
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
exports.
|
|
53
|
+
exports.host = host;
|
|
53
54
|
function routeToNxWelcome(tree, options) {
|
|
54
55
|
const { sourceRoot } = (0, devkit_1.readProjectConfiguration)(tree, (0, project_1.normalizeProjectName)(options.name, options.directory));
|
|
55
56
|
const remoteRoutes = options.remotes && Array.isArray(options.remotes)
|
|
@@ -75,4 +76,5 @@ ${remoteRoutes}
|
|
|
75
76
|
tmpl: '',
|
|
76
77
|
});
|
|
77
78
|
}
|
|
79
|
+
exports.default = host;
|
|
78
80
|
//# sourceMappingURL=host.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/host/host.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"host.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/host/host.ts"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