@nrwl/angular 13.10.0-beta.5 → 13.10.0-beta.8
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/esm2020/mfe/index.mjs +2 -2
- package/executors.json +4 -4
- package/fesm2015/nrwl-angular-mfe.mjs +1 -1
- package/fesm2015/nrwl-angular-mfe.mjs.map +1 -1
- package/fesm2015/nrwl-angular-testing.mjs.map +1 -1
- package/fesm2015/nrwl-angular.mjs.map +1 -1
- package/fesm2020/nrwl-angular-mfe.mjs +1 -1
- package/fesm2020/nrwl-angular-mfe.mjs.map +1 -1
- package/fesm2020/nrwl-angular-testing.mjs.map +1 -1
- package/fesm2020/nrwl-angular.mjs.map +1 -1
- package/generators.json +8 -8
- package/mfe/index.d.ts +1 -1
- package/mfe/index.js +2 -1
- package/mfe/index.js.map +1 -1
- package/migrations.json +2 -407
- package/package.json +7 -7
- package/src/builders/webpack-browser/schema.json +18 -1
- package/src/builders/webpack-server/schema.json +6 -0
- package/src/executors/ng-packagr-lite/schema.json +14 -0
- package/src/executors/package/schema.json +14 -0
- package/src/generators/application/lib/add-mfe.js +1 -0
- package/src/generators/application/lib/add-mfe.js.map +1 -1
- package/src/generators/application/schema.d.ts +1 -0
- package/src/generators/application/schema.json +9 -3
- package/src/generators/component/schema.json +4 -4
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js +2 -1
- package/src/generators/convert-to-with-mf/convert-to-with-mf.js.map +1 -1
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.d.ts +1 -1
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js +17 -14
- package/src/generators/convert-to-with-mf/lib/write-new-webpack-config.js.map +1 -1
- package/src/generators/convert-tslint-to-eslint/schema.json +4 -4
- package/src/generators/downgrade-module/schema.json +1 -0
- package/src/generators/init/schema.json +1 -1
- package/src/generators/karma/karma.d.ts +1 -1
- package/src/generators/karma/karma.js +17 -15
- package/src/generators/karma/karma.js.map +1 -1
- package/src/generators/karma/schema.json +1 -0
- package/src/generators/karma-project/karma-project.js +2 -0
- package/src/generators/karma-project/karma-project.js.map +1 -1
- package/src/generators/karma-project/schema.d.ts +1 -0
- package/src/generators/karma-project/schema.json +6 -0
- package/src/generators/library/schema.json +2 -1
- package/src/generators/library-secondary-entry-point/schema.json +1 -0
- package/src/generators/mfe-host/mfe-host.js +1 -0
- package/src/generators/mfe-host/mfe-host.js.map +1 -1
- package/src/generators/mfe-host/schema.d.ts +1 -0
- package/src/generators/mfe-host/schema.json +6 -1
- package/src/generators/mfe-remote/schema.json +2 -2
- package/src/generators/move/schema.json +3 -3
- package/src/generators/ng-add/compat.d.ts +1 -1
- package/src/generators/ng-add/files/{root → root-karma}/karma.conf.js__tmpl__ +0 -0
- package/src/generators/ng-add/migrate-from-angular-cli.d.ts +2 -2
- package/src/generators/ng-add/migrate-from-angular-cli.js +38 -607
- package/src/generators/ng-add/migrate-from-angular-cli.js.map +1 -1
- package/src/generators/ng-add/ng-add.d.ts +3 -3
- package/src/generators/ng-add/ng-add.js +2 -2
- package/src/generators/ng-add/ng-add.js.map +1 -1
- package/src/generators/ng-add/schema.d.ts +1 -1
- package/src/generators/ng-add/utilities/app.migrator.d.ts +18 -0
- package/src/generators/ng-add/utilities/app.migrator.js +182 -0
- package/src/generators/ng-add/utilities/app.migrator.js.map +1 -0
- package/src/generators/ng-add/utilities/e2e-project.migrator.d.ts +19 -0
- package/src/generators/ng-add/utilities/e2e-project.migrator.js +186 -0
- package/src/generators/ng-add/utilities/e2e-project.migrator.js.map +1 -0
- package/src/generators/ng-add/utilities/e2e-utils.d.ts +7 -0
- package/src/generators/ng-add/utilities/e2e-utils.js +46 -0
- package/src/generators/ng-add/utilities/e2e-utils.js.map +1 -0
- package/src/generators/ng-add/utilities/get-all-projects.d.ts +3 -0
- package/src/generators/ng-add/utilities/get-all-projects.js +26 -0
- package/src/generators/ng-add/utilities/get-all-projects.js.map +1 -0
- package/src/generators/ng-add/utilities/normalize-options.d.ts +3 -0
- package/src/generators/ng-add/utilities/normalize-options.js +24 -0
- package/src/generators/ng-add/utilities/normalize-options.js.map +1 -0
- package/src/generators/ng-add/utilities/project.migrator.d.ts +21 -0
- package/src/generators/ng-add/utilities/project.migrator.js +53 -0
- package/src/generators/ng-add/utilities/project.migrator.js.map +1 -0
- package/src/generators/ng-add/utilities/types.d.ts +10 -0
- package/src/generators/ng-add/utilities/types.js +3 -0
- package/src/generators/ng-add/utilities/types.js.map +1 -0
- package/src/generators/ng-add/utilities/workspace.d.ts +12 -0
- package/src/generators/ng-add/utilities/workspace.js +258 -0
- package/src/generators/ng-add/utilities/workspace.js.map +1 -0
- package/src/generators/ngrx/schema.json +1 -0
- package/src/generators/scam/schema.json +6 -6
- package/src/generators/scam-directive/schema.json +3 -3
- package/src/generators/scam-pipe/schema.json +1 -1
- package/src/generators/setup-mfe/files/webpack/mfe.config.js__tmpl__ +7 -0
- package/src/generators/setup-mfe/files/webpack/webpack.config.js__tmpl__ +2 -7
- package/src/generators/setup-mfe/lib/add-remote-to-host.d.ts +2 -2
- package/src/generators/setup-mfe/lib/add-remote-to-host.js +49 -24
- package/src/generators/setup-mfe/lib/add-remote-to-host.js.map +1 -1
- package/src/generators/setup-mfe/lib/fix-bootstrap.d.ts +2 -1
- package/src/generators/setup-mfe/lib/fix-bootstrap.js +13 -4
- package/src/generators/setup-mfe/lib/fix-bootstrap.js.map +1 -1
- package/src/generators/setup-mfe/lib/generate-config.js +2 -1
- package/src/generators/setup-mfe/lib/generate-config.js.map +1 -1
- package/src/generators/setup-mfe/lib/index.d.ts +1 -0
- package/src/generators/setup-mfe/lib/index.js +1 -0
- package/src/generators/setup-mfe/lib/index.js.map +1 -1
- package/src/generators/setup-mfe/lib/setup-host-if-dynamic.d.ts +3 -0
- package/src/generators/setup-mfe/lib/setup-host-if-dynamic.js +15 -0
- package/src/generators/setup-mfe/lib/setup-host-if-dynamic.js.map +1 -0
- package/src/generators/setup-mfe/schema.d.ts +1 -0
- package/src/generators/setup-mfe/schema.json +7 -1
- package/src/generators/setup-mfe/setup-mfe.d.ts +1 -1
- package/src/generators/setup-mfe/setup-mfe.js +16 -13
- package/src/generators/setup-mfe/setup-mfe.js.map +1 -1
- package/src/generators/stories/schema.json +2 -0
- package/src/generators/storybook-configuration/schema.json +2 -0
- package/src/generators/storybook-migrate-defaults-5-to-6/schema.json +2 -0
- package/src/generators/storybook-migrate-stories-to-6-2/schema.json +2 -0
- package/src/generators/upgrade-module/schema.json +1 -0
- package/src/migrations/update-12-3-0/update-storybook.js +1 -1
- package/src/utils/mfe/with-module-federation.js +4 -1
- package/src/utils/mfe/with-module-federation.js.map +1 -1
- package/src/utils/versions.js +1 -1
- package/src/generators/ng-add/files/decorate-angular-cli/decorate-angular-cli.js__tmpl__ +0 -69
- package/src/generators/ng-add/files/root/nx.json__tmpl__ +0 -29
- package/src/migrations/update-10-0-0/update-10-0-0.d.ts +0 -1
- package/src/migrations/update-10-0-0/update-10-0-0.js +0 -15
- package/src/migrations/update-10-0-0/update-10-0-0.js.map +0 -1
- package/src/migrations/update-10-2-0/update-10-2-0.d.ts +0 -1
- package/src/migrations/update-10-2-0/update-10-2-0.js +0 -14
- package/src/migrations/update-10-2-0/update-10-2-0.js.map +0 -1
- package/src/migrations/update-10-3-0/files/tsconfig.editor.json +0 -11
- package/src/migrations/update-10-3-0/update-10-3-0.d.ts +0 -2
- package/src/migrations/update-10-3-0/update-10-3-0.js +0 -79
- package/src/migrations/update-10-3-0/update-10-3-0.js.map +0 -1
- package/src/migrations/update-10-4-0/update-10-4-0.d.ts +0 -2
- package/src/migrations/update-10-4-0/update-10-4-0.js +0 -36
- package/src/migrations/update-10-4-0/update-10-4-0.js.map +0 -1
- package/src/migrations/update-10-5-0/add-template-support-and-presets-to-eslint.d.ts +0 -2
- package/src/migrations/update-10-5-0/add-template-support-and-presets-to-eslint.js +0 -118
- package/src/migrations/update-10-5-0/add-template-support-and-presets-to-eslint.js.map +0 -1
- package/src/migrations/update-11-0-0/update-builders-config.d.ts +0 -2
- package/src/migrations/update-11-0-0/update-builders-config.js +0 -55
- package/src/migrations/update-11-0-0/update-builders-config.js.map +0 -1
- package/src/migrations/update-8-12-0/change-angular-lib-builder.d.ts +0 -2
- package/src/migrations/update-8-12-0/change-angular-lib-builder.js +0 -25
- package/src/migrations/update-8-12-0/change-angular-lib-builder.js.map +0 -1
- package/src/migrations/update-8-3-0/upgrade-ngrx-8-0.d.ts +0 -1
- package/src/migrations/update-8-3-0/upgrade-ngrx-8-0.js +0 -49
- package/src/migrations/update-8-3-0/upgrade-ngrx-8-0.js.map +0 -1
- package/src/migrations/update-8-5-0/upgrade-cli-8-3.d.ts +0 -1
- package/src/migrations/update-8-5-0/upgrade-cli-8-3.js +0 -55
- package/src/migrations/update-8-5-0/upgrade-cli-8-3.js.map +0 -1
- package/src/migrations/update-9-0-0/add-postinstall.d.ts +0 -1
- package/src/migrations/update-9-0-0/add-postinstall.js +0 -22
- package/src/migrations/update-9-0-0/add-postinstall.js.map +0 -1
- package/src/migrations/update-9-0-0/update-9-0-0.d.ts +0 -2
- package/src/migrations/update-9-0-0/update-9-0-0.js +0 -18
- package/src/migrations/update-9-0-0/update-9-0-0.js.map +0 -1
|
@@ -3,40 +3,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.writeNewWebpackConfig = void 0;
|
|
4
4
|
const is_host_remote_config_1 = require("./is-host-remote-config");
|
|
5
5
|
function writeNewWebpackConfig(ast, mfType, projectName) {
|
|
6
|
-
|
|
6
|
+
const webpackConfig = `const { withModuleFederation } = require('@nrwl/angular/module-federation');
|
|
7
|
+
const config = require('./mfe.config');
|
|
8
|
+
module.exports = withModuleFederation(config);`;
|
|
9
|
+
let mfeConfig = '';
|
|
7
10
|
if (!mfType) {
|
|
8
|
-
|
|
9
|
-
module.exports =
|
|
11
|
+
mfeConfig = `
|
|
12
|
+
module.exports = {
|
|
10
13
|
name: '${projectName}',
|
|
11
|
-
}
|
|
14
|
+
};`;
|
|
12
15
|
}
|
|
13
16
|
else if (mfType === 'host') {
|
|
14
17
|
const remotes = hostRemotesToString(ast);
|
|
15
|
-
|
|
16
|
-
module.exports =
|
|
18
|
+
mfeConfig = `
|
|
19
|
+
module.exports = {
|
|
17
20
|
name: '${projectName}',
|
|
18
21
|
remotes: ${remotes},
|
|
19
|
-
}
|
|
22
|
+
};`;
|
|
20
23
|
}
|
|
21
24
|
else if (mfType === 'remote') {
|
|
22
25
|
const exposedModules = (0, is_host_remote_config_1.getExposedModulesFromRemote)(ast);
|
|
23
|
-
|
|
24
|
-
module.exports =
|
|
26
|
+
mfeConfig = `
|
|
27
|
+
module.exports = {
|
|
25
28
|
name: '${projectName}',
|
|
26
29
|
exposes: ${exposedModules},
|
|
27
|
-
}
|
|
30
|
+
};`;
|
|
28
31
|
}
|
|
29
32
|
else if (mfType === 'both') {
|
|
30
33
|
const remotes = hostRemotesToString(ast);
|
|
31
34
|
const exposedModules = (0, is_host_remote_config_1.getExposedModulesFromRemote)(ast);
|
|
32
|
-
|
|
33
|
-
module.exports =
|
|
35
|
+
mfeConfig = `
|
|
36
|
+
module.exports = {
|
|
34
37
|
name: '${projectName}',
|
|
35
38
|
remotes: ${remotes},
|
|
36
39
|
exposes: ${exposedModules},
|
|
37
|
-
}
|
|
40
|
+
};`;
|
|
38
41
|
}
|
|
39
|
-
return webpackConfig;
|
|
42
|
+
return [webpackConfig, mfeConfig];
|
|
40
43
|
}
|
|
41
44
|
exports.writeNewWebpackConfig = writeNewWebpackConfig;
|
|
42
45
|
function hostRemotesToString(ast) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-new-webpack-config.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/convert-to-with-mf/lib/write-new-webpack-config.ts"],"names":[],"mappings":";;;AACA,mEAIiC;AAEjC,SAAgB,qBAAqB,CACnC,GAAe,EACf,MAAgC,EAChC,WAAmB;IAEnB,
|
|
1
|
+
{"version":3,"file":"write-new-webpack-config.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/convert-to-with-mf/lib/write-new-webpack-config.ts"],"names":[],"mappings":";;;AACA,mEAIiC;AAEjC,SAAgB,qBAAqB,CACnC,GAAe,EACf,MAAgC,EAChC,WAAmB;IAEnB,MAAM,aAAa,GAAG;;iDAEyB,CAAC;IAEhD,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,IAAI,CAAC,MAAM,EAAE;QACX,SAAS,GAAG;;mBAEG,WAAW;WACnB,CAAC;KACT;SAAM,IAAI,MAAM,KAAK,MAAM,EAAE;QAC5B,MAAM,OAAO,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACzC,SAAS,GAAG;;mBAEG,WAAW;qBACT,OAAO;WACjB,CAAC;KACT;SAAM,IAAI,MAAM,KAAK,QAAQ,EAAE;QAC9B,MAAM,cAAc,GAAG,IAAA,mDAA2B,EAAC,GAAG,CAAC,CAAC;QACxD,SAAS,GAAG;;mBAEG,WAAW;qBACT,cAAc;WACxB,CAAC;KACT;SAAM,IAAI,MAAM,KAAK,MAAM,EAAE;QAC5B,MAAM,OAAO,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACzC,MAAM,cAAc,GAAG,IAAA,mDAA2B,EAAC,GAAG,CAAC,CAAC;QACxD,SAAS,GAAG;;eAED,WAAW;iBACT,OAAO;iBACP,cAAc;OACxB,CAAC;KACL;IAED,OAAO,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;AACpC,CAAC;AAzCD,sDAyCC;AAED,SAAS,mBAAmB,CAAC,GAAe;IAC1C,MAAM,OAAO,GAAW,IAAA,0CAAkB,EAAC,GAAG,CAAC;SAC5C,MAAM,CACL,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,OAAO,GAAG,EAAE,EACvE,EAAE,CACH;SACA,IAAI,EAAE,CAAC;IACV,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC;AACvE,CAAC"}
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
"$id": "NxAngularConvertTSLintToESLintGenerator",
|
|
4
4
|
"cli": "nx",
|
|
5
5
|
"title": "Convert an Angular project from TSLint to ESLint",
|
|
6
|
-
"description": "NOTE: Does not work in
|
|
6
|
+
"description": "Convert an Angular project from TSLint to ESLint. NOTE: Does not work in `--dry-run mode`",
|
|
7
7
|
"examples": [
|
|
8
8
|
{
|
|
9
|
-
"command": "g convert-tslint-to-eslint myapp",
|
|
9
|
+
"command": "nx g convert-tslint-to-eslint myapp",
|
|
10
10
|
"description": "The following will first configure the project, `myapp`, the same way a _new_ project is configured i.e. It will use Nx's new recommended ESLint config. By default, this also adds the existing TSLint configuration on top of the default ESLint config from Nx to continue checking what it checks today. This is done by migrating TSLint rules to their equivalent ESLint rules to the best of its abilities. Some TSLint rules may not have ESLint equivalents and will be reported during the conversion"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"command": "g convert-tslint-to-eslint myapp --ignoreExistingTslintConfig=true",
|
|
13
|
+
"command": "nx g convert-tslint-to-eslint myapp --ignoreExistingTslintConfig=true",
|
|
14
14
|
"description": "If your TSLint config isn't extremely important to you, ignoring it makes this process more deterministic. Unlike the prior example, this will discard the existing TSLint configuration, meaning that the project will only have the Nx's latest recommended ESLint configuration which may be good enough for some workspaces"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"command": "g convert-tslint-to-eslint myapp --removeTSLintIfNoMoreTSLintTargets=false",
|
|
17
|
+
"command": "nx g convert-tslint-to-eslint myapp --removeTSLintIfNoMoreTSLintTargets=false",
|
|
18
18
|
"description": "By default, this process removes the TSLint related dependencies and configuration once no more projects use TSLint. This can be disabled with the following flag to keep TSLint related dependencies and configuration in the repo"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "SchematicsAngularModuleInit",
|
|
4
4
|
"cli": "nx",
|
|
5
5
|
"title": "Init Angular Plugin",
|
|
6
|
-
"description": "NOTE: Does not work in the
|
|
6
|
+
"description": "Initializes the `@nrwl/angular` plugin. NOTE: Does not work in the `--dry-run` mode",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
9
|
"unitTestRunner": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Tree } from '@nrwl/devkit';
|
|
2
2
|
import { GeneratorOptions } from './schema';
|
|
3
|
-
export declare function karmaGenerator(tree: Tree, options: GeneratorOptions):
|
|
3
|
+
export declare function karmaGenerator(tree: Tree, options: GeneratorOptions): () => void;
|
|
4
4
|
export default karmaGenerator;
|
|
@@ -4,22 +4,24 @@ exports.karmaGenerator = void 0;
|
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
5
|
function karmaGenerator(tree, options) {
|
|
6
6
|
const packageJson = (0, devkit_1.readJson)(tree, 'package.json');
|
|
7
|
-
if (
|
|
8
|
-
|
|
7
|
+
if (!tree.exists('karma.conf.js')) {
|
|
8
|
+
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files'), '.', {
|
|
9
|
+
tmpl: '',
|
|
10
|
+
});
|
|
9
11
|
}
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
if (options.skipPackageJson || packageJson.devDependencies['karma']) {
|
|
13
|
+
return () => { };
|
|
14
|
+
}
|
|
15
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
16
|
+
karma: '~6.3.0',
|
|
17
|
+
'karma-chrome-launcher': '~3.1.0',
|
|
18
|
+
'karma-coverage': '~2.2.0',
|
|
19
|
+
'karma-jasmine': '~4.0.0',
|
|
20
|
+
'karma-jasmine-html-reporter': '~1.7.0',
|
|
21
|
+
'jasmine-core': '~3.10.0',
|
|
22
|
+
'jasmine-spec-reporter': '~5.0.0',
|
|
23
|
+
'@types/jasmine': '~3.5.0',
|
|
24
|
+
});
|
|
23
25
|
}
|
|
24
26
|
exports.karmaGenerator = karmaGenerator;
|
|
25
27
|
exports.default = karmaGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"karma.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/karma/karma.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AAGtB,SAAgB,cAAc,CAAC,IAAU,EAAE,OAAyB;IAClE,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"karma.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/karma/karma.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AAGtB,SAAgB,cAAc,CAAC,IAAU,EAAE,OAAyB;IAClE,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAEnD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE;QACjC,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAA,0BAAiB,EAAC,SAAS,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE;YAC9D,IAAI,EAAE,EAAE;SACT,CAAC,CAAC;KACJ;IAED,IAAI,OAAO,CAAC,eAAe,IAAI,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE;QACnE,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;KACjB;IACD,OAAO,IAAA,qCAA4B,EACjC,IAAI,EACJ,EAAE,EACF;QACE,KAAK,EAAE,QAAQ;QACf,uBAAuB,EAAE,QAAQ;QACjC,gBAAgB,EAAE,QAAQ;QAC1B,eAAe,EAAE,QAAQ;QACzB,6BAA6B,EAAE,QAAQ;QACvC,cAAc,EAAE,SAAS;QACzB,uBAAuB,EAAE,QAAQ;QACjC,gBAAgB,EAAE,QAAQ;KAC3B,CACF,CAAC;AACJ,CAAC;AA1BD,wCA0BC;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -7,8 +7,10 @@ const check_test_target_1 = require("./lib/check-test-target");
|
|
|
7
7
|
const generate_karma_project_files_1 = require("./lib/generate-karma-project-files");
|
|
8
8
|
const update_tsconfig_1 = require("./lib/update-tsconfig");
|
|
9
9
|
const update_workspace_config_1 = require("./lib/update-workspace-config");
|
|
10
|
+
const karma_1 = require("../karma/karma");
|
|
10
11
|
function karmaProjectGenerator(tree, options) {
|
|
11
12
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
(0, karma_1.karmaGenerator)(tree, options);
|
|
12
14
|
(0, check_test_target_1.checkProjectTestTarget)(tree, options.project);
|
|
13
15
|
(0, generate_karma_project_files_1.generateKarmaProjectFiles)(tree, options.project);
|
|
14
16
|
(0, update_tsconfig_1.updateTsConfigs)(tree, options.project);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"karma-project.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/karma-project/karma-project.ts"],"names":[],"mappings":";;;;AACA,yCAA2C;AAC3C,+DAAiE;AACjE,qFAA+E;AAC/E,2DAAwD;AACxD,2EAAsE;
|
|
1
|
+
{"version":3,"file":"karma-project.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/karma-project/karma-project.ts"],"names":[],"mappings":";;;;AACA,yCAA2C;AAC3C,+DAAiE;AACjE,qFAA+E;AAC/E,2DAAwD;AACxD,2EAAsE;AAEtE,0CAAgD;AAEhD,SAAsB,qBAAqB,CACzC,IAAU,EACV,OAA4B;;QAE5B,IAAA,sBAAc,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC9B,IAAA,0CAAsB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAA,wDAAyB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,IAAA,iCAAe,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACvC,IAAA,+CAAqB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;IACH,CAAC;CAAA;AAZD,sDAYC;AAED,kBAAe,qBAAqB,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"$id": "NxKarmaProjectGenerator",
|
|
4
4
|
"title": "Create Karma Configuration for a project",
|
|
5
|
+
"description": "Add Karma configuration to an angular project.",
|
|
5
6
|
"cli": "nx",
|
|
6
7
|
"type": "object",
|
|
7
8
|
"properties": {
|
|
@@ -16,6 +17,11 @@
|
|
|
16
17
|
"description": "Skip formatting files.",
|
|
17
18
|
"type": "boolean",
|
|
18
19
|
"default": false
|
|
20
|
+
},
|
|
21
|
+
"skipPackageJson": {
|
|
22
|
+
"description": "Skip updating package.json.",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
27
|
"additionalProperties": false,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"$id": "GeneratorAngularLibrary",
|
|
4
4
|
"title": "Create a library",
|
|
5
|
+
"description": "Creates an Angular library.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"cli": "nx",
|
|
7
8
|
"properties": {
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
},
|
|
111
112
|
"setParserOptionsProject": {
|
|
112
113
|
"type": "boolean",
|
|
113
|
-
"description": "Whether or not to configure the ESLint
|
|
114
|
+
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
114
115
|
"default": false
|
|
115
116
|
},
|
|
116
117
|
"addTailwind": {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"$id": "NxAngularLibrarySecondaryEntryPoint",
|
|
4
4
|
"title": "Creates a secondary entry point for a library",
|
|
5
|
+
"description": "Creates a secondary entry point for an Angular publishable library.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"cli": "nx",
|
|
7
8
|
"properties": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfe-host.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/mfe-host/mfe-host.ts"],"names":[],"mappings":";;;AAGA,yCAA2C;AAC3C,4DAA8D;AAE9D,SAA8B,OAAO,CAAC,IAAU,EAAE,OAAe;;;QAC/D,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACjD,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACjC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;oBACzB,MAAM,IAAI,KAAK,CACb,gDAAgD,MAAM,GAAG,CAC1D,CAAC;iBACH;YACH,CAAC,CAAC,CAAC;SACJ;QAED,MAAM,WAAW,GAAG,MAAM,IAAA,qBAAoB,EAAC,IAAI,EAAE;YACnD,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,GAAG,EAAE,IAAI;YACT,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAA,OAAO,CAAC,OAAO,mCAAI,EAAE;YAC9B,IAAI,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"mfe-host.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/mfe-host/mfe-host.ts"],"names":[],"mappings":";;;AAGA,yCAA2C;AAC3C,4DAA8D;AAE9D,SAA8B,OAAO,CAAC,IAAU,EAAE,OAAe;;;QAC/D,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACjD,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACjC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;oBACzB,MAAM,IAAI,KAAK,CACb,gDAAgD,MAAM,GAAG,CAC1D,CAAC;iBACH;YACH,CAAC,CAAC,CAAC;SACJ;QAED,MAAM,WAAW,GAAG,MAAM,IAAA,qBAAoB,EAAC,IAAI,EAAE;YACnD,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,GAAG,EAAE,IAAI;YACT,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,MAAA,OAAO,CAAC,OAAO,mCAAI,EAAE;YAC9B,IAAI,EAAE,IAAI;YACV,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;SACvD,CAAC,CAAC;QAEH,OAAO,WAAW,CAAC;;CACpB;AAxBD,0BAwBC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"type": "object",
|
|
8
8
|
"examples": [
|
|
9
9
|
{
|
|
10
|
-
"command": "g @nrwl/angular:mfe-host appName --remotes=remote1",
|
|
10
|
+
"command": "nx g @nrwl/angular:mfe-host appName --remotes=remote1",
|
|
11
11
|
"description": "Create an Angular app with configuration in place for MFE. If remotes is provided, attach the remote app to this app's configuration."
|
|
12
12
|
}
|
|
13
13
|
],
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"port": {
|
|
28
28
|
"type": "number",
|
|
29
29
|
"description": "The port on which this app should be served."
|
|
30
|
+
},
|
|
31
|
+
"dynamic": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "Should the host app use dynamic federation?",
|
|
34
|
+
"default": false
|
|
30
35
|
}
|
|
31
36
|
},
|
|
32
37
|
"required": ["name"]
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"$id": "NxMFERemote",
|
|
4
4
|
"cli": "nx",
|
|
5
5
|
"title": "Nx MFE Remote App",
|
|
6
|
-
"description": "Create an Angular Remote Micro Frontend Application",
|
|
6
|
+
"description": "Create an Angular Remote Micro Frontend Application.",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"examples": [
|
|
9
9
|
{
|
|
10
|
-
"command": "g @nrwl/angular:mfe-remote appName --host=host --port=4201",
|
|
10
|
+
"command": "nx g @nrwl/angular:mfe-remote appName --host=host --port=4201",
|
|
11
11
|
"description": "Create an Angular app with configuration in place for MFE. If host is provided, attach this remote app to host app's configuration."
|
|
12
12
|
}
|
|
13
13
|
],
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"$id": "NxAngularMove",
|
|
4
4
|
"cli": "nx",
|
|
5
5
|
"title": "Nx Angular Move",
|
|
6
|
-
"description": "Move an Angular project to another folder in the workspace",
|
|
6
|
+
"description": "Move an Angular project to another folder in the workspace.",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"examples": [
|
|
9
9
|
{
|
|
10
|
-
"command": "g @nrwl/angular:move --project my-feature-lib shared/my-feature-lib",
|
|
11
|
-
"description": "Move libs/my-feature-lib to libs/shared/my-feature-lib"
|
|
10
|
+
"command": "nx g @nrwl/angular:move --project my-feature-lib shared/my-feature-lib",
|
|
11
|
+
"description": "Move libs/my-feature-lib to libs/shared/my-feature-lib."
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"properties": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (options: import("./schema").
|
|
1
|
+
declare const _default: (options: import("./schema").GeneratorOptions) => (tree: any, context: any) => Promise<any>;
|
|
2
2
|
export default _default;
|
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Tree } from '@nrwl/devkit';
|
|
2
|
-
import {
|
|
3
|
-
export declare function migrateFromAngularCli(tree: Tree,
|
|
2
|
+
import type { GeneratorOptions } from './schema';
|
|
3
|
+
export declare function migrateFromAngularCli(tree: Tree, rawOptions: GeneratorOptions): Promise<() => void>;
|