@nx/angular 16.7.0-beta.1 → 16.7.0-beta.4

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/generators.json CHANGED
@@ -42,7 +42,8 @@
42
42
  "convert-tslint-to-eslint": {
43
43
  "factory": "./src/generators/convert-tslint-to-eslint/compat",
44
44
  "schema": "./src/generators/convert-tslint-to-eslint/schema.json",
45
- "description": "Converts a project from TSLint to ESLint."
45
+ "description": "Converts a project from TSLint to ESLint.",
46
+ "x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint."
46
47
  },
47
48
  "init": {
48
49
  "factory": "./src/generators/init/init.compat#initSchematic",
@@ -194,7 +195,8 @@
194
195
  "convert-tslint-to-eslint": {
195
196
  "factory": "./src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint#conversionGenerator",
196
197
  "schema": "./src/generators/convert-tslint-to-eslint/schema.json",
197
- "description": "Converts a project from TSLint to ESLint."
198
+ "description": "Converts a project from TSLint to ESLint.",
199
+ "x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint."
198
200
  },
199
201
  "directive": {
200
202
  "factory": "./src/generators/directive/directive",
package/migrations.json CHANGED
@@ -269,6 +269,15 @@
269
269
  "version": "16.6.0-beta.0",
270
270
  "description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
271
271
  "factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps"
272
+ },
273
+ "update-angular-cli-version-16-2-0-rc-1": {
274
+ "cli": "nx",
275
+ "version": "16.7.0-beta.2",
276
+ "requires": {
277
+ "@angular/core": ">=16.2.0-rc.0"
278
+ },
279
+ "description": "Update the @angular/cli package version to ~16.2.0-rc.1.",
280
+ "factory": "./src/migrations/update-16-7-0/update-angular-cli"
272
281
  }
273
282
  },
274
283
  "packageJsonUpdates": {
@@ -1235,6 +1244,67 @@
1235
1244
  "alwaysAddToPackageJson": false
1236
1245
  }
1237
1246
  }
1247
+ },
1248
+ "16.7.0": {
1249
+ "version": "16.7.0-beta.2",
1250
+ "packages": {
1251
+ "@angular-devkit/architect": {
1252
+ "version": "~0.1602.0-rc.1",
1253
+ "alwaysAddToPackageJson": false
1254
+ },
1255
+ "@angular-devkit/build-angular": {
1256
+ "version": "~16.2.0-rc.1",
1257
+ "alwaysAddToPackageJson": false
1258
+ },
1259
+ "@angular-devkit/build-webpack": {
1260
+ "version": "~0.1602.0-rc.1",
1261
+ "alwaysAddToPackageJson": false
1262
+ },
1263
+ "@angular-devkit/core": {
1264
+ "version": "~16.2.0-rc.1",
1265
+ "alwaysAddToPackageJson": false
1266
+ },
1267
+ "@angular-devkit/schematics": {
1268
+ "version": "~16.2.0-rc.1",
1269
+ "alwaysAddToPackageJson": false
1270
+ },
1271
+ "@angular/core": {
1272
+ "version": "~16.2.0-rc.0",
1273
+ "alwaysAddToPackageJson": true
1274
+ },
1275
+ "@angular/material": {
1276
+ "version": "~16.2.0-rc.0",
1277
+ "alwaysAddToPackageJson": false
1278
+ },
1279
+ "@angular/cdk": {
1280
+ "version": "~16.2.0-rc.0",
1281
+ "alwaysAddToPackageJson": false
1282
+ },
1283
+ "@nguniversal/builders": {
1284
+ "version": "~16.2.0-rc.0",
1285
+ "alwaysAddToPackageJson": false
1286
+ },
1287
+ "@nguniversal/common": {
1288
+ "version": "~16.2.0-rc.0",
1289
+ "alwaysAddToPackageJson": false
1290
+ },
1291
+ "@nguniversal/express-engine": {
1292
+ "version": "~16.2.0-rc.0",
1293
+ "alwaysAddToPackageJson": false
1294
+ },
1295
+ "@schematics/angular": {
1296
+ "version": "~16.2.0-rc.1",
1297
+ "alwaysAddToPackageJson": false
1298
+ },
1299
+ "ng-packagr": {
1300
+ "version": "~16.2.0-next.1",
1301
+ "alwaysAddToPackageJson": false
1302
+ }
1303
+ },
1304
+ "x-prompt": "Do you want to update the Angular version to v16.2?",
1305
+ "requires": {
1306
+ "@angular/core": ">=16.1.0 <16.2.0-next.1"
1307
+ }
1238
1308
  }
1239
1309
  }
1240
1310
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "16.7.0-beta.1",
3
+ "version": "16.7.0-beta.4",
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, and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -66,14 +66,14 @@
66
66
  "migrations": "./migrations.json"
67
67
  },
68
68
  "dependencies": {
69
- "@nrwl/angular": "16.7.0-beta.1",
70
- "@nx/cypress": "16.7.0-beta.1",
71
- "@nx/devkit": "16.7.0-beta.1",
72
- "@nx/jest": "16.7.0-beta.1",
73
- "@nx/js": "16.7.0-beta.1",
74
- "@nx/linter": "16.7.0-beta.1",
75
- "@nx/webpack": "16.7.0-beta.1",
76
- "@nx/workspace": "16.7.0-beta.1",
69
+ "@nrwl/angular": "16.7.0-beta.4",
70
+ "@nx/cypress": "16.7.0-beta.4",
71
+ "@nx/devkit": "16.7.0-beta.4",
72
+ "@nx/jest": "16.7.0-beta.4",
73
+ "@nx/js": "16.7.0-beta.4",
74
+ "@nx/linter": "16.7.0-beta.4",
75
+ "@nx/webpack": "16.7.0-beta.4",
76
+ "@nx/workspace": "16.7.0-beta.4",
77
77
  "@phenomnomnominal/tsquery": "~5.0.1",
78
78
  "@typescript-eslint/type-utils": "^5.36.1",
79
79
  "chalk": "^4.1.0",
@@ -107,5 +107,5 @@
107
107
  "module": "fesm2022/nx-angular.mjs",
108
108
  "typings": "index.d.ts",
109
109
  "sideEffects": false,
110
- "gitHead": "50a145bb64edcf76985184a9a83d1449dcd4f3d9"
110
+ "gitHead": "dcbba686b182737b66ebbfb9db372769e77ba005"
111
111
  }
@@ -1,4 +1,5 @@
1
1
  import type { Schema } from './schema';
2
- export declare function executeModuleFederationDevServerBuilder(schema: Schema, context: import('@angular-devkit/architect').BuilderContext): import("rxjs").Observable<import("@angular-devkit/build-angular").DevServerBuilderOutput>;
2
+ import { executeWebpackDevServerBuilder } from '../webpack-dev-server/webpack-dev-server.impl';
3
+ export declare function executeModuleFederationDevServerBuilder(schema: Schema, context: import('@angular-devkit/architect').BuilderContext): ReturnType<typeof executeWebpackDevServerBuilder>;
3
4
  declare const _default: any;
4
5
  export default _default;
@@ -1 +1,4 @@
1
+ /**
2
+ * @deprecated This generator will be removed in v17
3
+ */
1
4
  export declare const conversionSchematic: (generatorOptions: import("../../../../../build/packages/linter").ConvertTSLintToESLintSchema) => (tree: any, context: any) => Promise<any>;
@@ -4,4 +4,7 @@ exports.conversionSchematic = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const warn_for_schematic_usage_1 = require("../utils/warn-for-schematic-usage");
6
6
  const convert_tslint_to_eslint_1 = require("./convert-tslint-to-eslint");
7
+ /**
8
+ * @deprecated This generator will be removed in v17
9
+ */
7
10
  exports.conversionSchematic = (0, warn_for_schematic_usage_1.warnForSchematicUsage)((0, devkit_1.convertNxGenerator)(convert_tslint_to_eslint_1.conversionGenerator));
@@ -1,3 +1,6 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  import { ConvertTSLintToESLintSchema } from '@nx/linter';
3
+ /**
4
+ * @deprecated This generator will be removed in v17
5
+ */
3
6
  export declare function conversionGenerator(host: Tree, options: ConvertTSLintToESLintSchema): Promise<() => Promise<void>>;
@@ -6,6 +6,9 @@ const cypress_1 = require("@nx/cypress");
6
6
  const devkit_1 = require("@nx/devkit");
7
7
  const linter_1 = require("@nx/linter");
8
8
  const add_linting_1 = require("../add-linting/add-linting");
9
+ /**
10
+ * @deprecated This generator will be removed in v17
11
+ */
9
12
  function conversionGenerator(host, options) {
10
13
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
14
  /**
@@ -4,6 +4,7 @@
4
4
  "cli": "nx",
5
5
  "title": "Convert an Angular project from TSLint to ESLint",
6
6
  "description": "Convert an Angular project from TSLint to ESLint. NOTE: Does not work in `--dry-run mode`.",
7
+ "x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint.",
7
8
  "examples": [
8
9
  {
9
10
  "command": "nx g convert-tslint-to-eslint myapp",
@@ -57,7 +57,9 @@ function createNxJson(tree, options, defaultProject) {
57
57
  '!{projectRoot}/karma.conf.js',
58
58
  ]
59
59
  : []),
60
- targets.lint ? '!{projectRoot}/.eslintrc.json' : undefined,
60
+ ...(targets.lint
61
+ ? ['!{projectRoot}/.eslintrc.json', '!{projectRoot}/eslint.config.js']
62
+ : []),
61
63
  ].filter(Boolean),
62
64
  },
63
65
  targetDefaults: {
@@ -72,7 +74,11 @@ function createNxJson(tree, options, defaultProject) {
72
74
  : undefined,
73
75
  lint: targets.lint
74
76
  ? {
75
- inputs: ['default', '{workspaceRoot}/.eslintrc.json'],
77
+ inputs: [
78
+ 'default',
79
+ '{workspaceRoot}/.eslintrc.json',
80
+ '{workspaceRoot}/eslint.config.js',
81
+ ],
76
82
  }
77
83
  : undefined,
78
84
  e2e: targets.e2e
@@ -25,11 +25,9 @@ function fixBootstrap(tree, appRoot, options) {
25
25
  : bootstrapImportCode);
26
26
  }
27
27
  exports.fixBootstrap = fixBootstrap;
28
- const standaloneBootstrapCode = (includeEnvironments = false) => `import {importProvidersFrom} from "@angular/core";
29
- import {bootstrapApplication} from "@angular/platform-browser";
30
- import {RouterModule} from "@angular/router";
31
- import {RemoteEntryComponent} from "./app/remote-entry/entry.component";
32
- import {appRoutes} from "./app/app.routes";
28
+ const standaloneBootstrapCode = (includeEnvironments = false) => `import {bootstrapApplication} from "@angular/platform-browser";
29
+ import {appConfig} from './app/app.config';
30
+ import {RemoteEntryComponent} from './app/remote-entry/entry.component';
33
31
  ${includeEnvironments
34
32
  ? `import {enableProdMode} from '@angular/core';
35
33
  import {environment} from './environments/environment';
@@ -38,10 +36,6 @@ if(environment.production) {
38
36
  }
39
37
  `
40
38
  : ``}
41
- bootstrapApplication(RemoteEntryComponent, {
42
- providers: [
43
- importProvidersFrom(
44
- RouterModule.forRoot(appRoutes, {initialNavigation: 'enabledBlocking'})
45
- )
46
- ]
47
- });`;
39
+ bootstrapApplication(RemoteEntryComponent, appConfig).catch((err) =>
40
+ console.error(err)
41
+ );`;
@@ -0,0 +1,3 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export declare const angularCliVersion = "~16.2.0-rc.1";
3
+ export default function (tree: Tree): Promise<void>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.angularCliVersion = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nx/devkit");
6
+ exports.angularCliVersion = '~16.2.0-rc.1';
7
+ function default_1(tree) {
8
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
9
+ let shouldFormat = false;
10
+ (0, devkit_1.updateJson)(tree, 'package.json', (json) => {
11
+ var _a, _b;
12
+ if ((_a = json.devDependencies) === null || _a === void 0 ? void 0 : _a['@angular/cli']) {
13
+ json.devDependencies['@angular/cli'] = exports.angularCliVersion;
14
+ shouldFormat = true;
15
+ }
16
+ else if ((_b = json.dependencies) === null || _b === void 0 ? void 0 : _b['@angular/cli']) {
17
+ json.dependencies['@angular/cli'] = exports.angularCliVersion;
18
+ shouldFormat = true;
19
+ }
20
+ return json;
21
+ });
22
+ if (shouldFormat) {
23
+ yield (0, devkit_1.formatFiles)(tree);
24
+ }
25
+ });
26
+ }
27
+ exports.default = default_1;
@@ -108,7 +108,7 @@ function getDecoratorMetadata(source, identifier, module) {
108
108
  exports.getDecoratorMetadata = getDecoratorMetadata;
109
109
  function _addSymbolToDecoratorMetadata(host, source, filePath, metadataField, expression, decoratorName) {
110
110
  const nodes = getDecoratorMetadata(source, decoratorName, '@angular/core');
111
- let node = nodes[0]; // tslint:disable-line:no-any
111
+ let node = nodes[0];
112
112
  // Find the decorator declaration.
113
113
  if (!node) {
114
114
  return source;
@@ -230,7 +230,7 @@ function _addSymbolToNgModuleMetadata(host, source, ngModulePath, metadataField,
230
230
  }
231
231
  function removeFromNgModule(host, source, modulePath, property) {
232
232
  const nodes = getDecoratorMetadata(source, 'NgModule', '@angular/core');
233
- let node = nodes[0]; // tslint:disable-line:no-any
233
+ let node = nodes[0];
234
234
  // Find the decorator declaration.
235
235
  if (!node) {
236
236
  return source;
@@ -362,7 +362,7 @@ function getBootstrapComponent(source, moduleClassName) {
362
362
  exports.getBootstrapComponent = getBootstrapComponent;
363
363
  function getMatchingProperty(source, property, identifier, module) {
364
364
  const nodes = getDecoratorMetadata(source, identifier, module);
365
- let node = nodes[0]; // tslint:disable-line:no-any
365
+ let node = nodes[0];
366
366
  if (!node)
367
367
  return null;
368
368
  // Get all the children property assignment of object literals.
@@ -1,13 +1,13 @@
1
1
  export declare const nxVersion: any;
2
- export declare const angularVersion = "~16.1.0";
3
- export declare const angularDevkitVersion = "~16.1.0";
4
- export declare const ngPackagrVersion = "~16.1.0";
2
+ export declare const angularVersion = "~16.2.0-rc.0";
3
+ export declare const angularDevkitVersion = "~16.2.0-rc.1";
4
+ export declare const ngPackagrVersion = "~16.2.0-next.1";
5
5
  export declare const ngrxVersion = "~16.0.0";
6
6
  export declare const rxjsVersion = "~7.8.0";
7
7
  export declare const zoneJsVersion = "~0.13.0";
8
8
  export declare const angularJsVersion = "1.7.9";
9
9
  export declare const tsLibVersion = "^2.3.0";
10
- export declare const ngUniversalVersion = "~16.1.0";
10
+ export declare const ngUniversalVersion = "~16.2.0-rc.0";
11
11
  export declare const corsVersion = "~2.8.5";
12
12
  export declare const typesCorsVersion = "~2.8.5";
13
13
  export declare const expressVersion = "~4.18.2";
@@ -2,15 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.jasmineMarblesVersion = exports.typesNodeVersion = exports.jestPresetAngularVersion = exports.tsNodeVersion = exports.autoprefixerVersion = exports.postcssUrlVersion = exports.postcssPresetEnvVersion = exports.postcssImportVersion = exports.postcssVersion = exports.tailwindVersion = exports.angularEslintVersion = exports.moduleFederationNodeVersion = exports.typesExpressVersion = exports.expressVersion = exports.typesCorsVersion = exports.corsVersion = exports.ngUniversalVersion = exports.tsLibVersion = exports.angularJsVersion = exports.zoneJsVersion = exports.rxjsVersion = exports.ngrxVersion = exports.ngPackagrVersion = exports.angularDevkitVersion = exports.angularVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
- exports.angularVersion = '~16.1.0';
6
- exports.angularDevkitVersion = '~16.1.0';
7
- exports.ngPackagrVersion = '~16.1.0';
5
+ exports.angularVersion = '~16.2.0-rc.0';
6
+ exports.angularDevkitVersion = '~16.2.0-rc.1';
7
+ exports.ngPackagrVersion = '~16.2.0-next.1';
8
8
  exports.ngrxVersion = '~16.0.0';
9
9
  exports.rxjsVersion = '~7.8.0';
10
10
  exports.zoneJsVersion = '~0.13.0';
11
11
  exports.angularJsVersion = '1.7.9';
12
12
  exports.tsLibVersion = '^2.3.0';
13
- exports.ngUniversalVersion = '~16.1.0';
13
+ exports.ngUniversalVersion = '~16.2.0-rc.0';
14
14
  exports.corsVersion = '~2.8.5';
15
15
  exports.typesCorsVersion = '~2.8.5';
16
16
  exports.expressVersion = '~4.18.2';