@nx/angular 16.4.0-beta.9 → 16.4.0
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/migrations.json +70 -0
- package/package.json +14 -15
- package/plugins/component-testing.js +1 -1
- package/src/executors/ng-packagr-lite/ng-packagr-adjustments/styles/stylesheet-processor.js +2 -2
- package/src/executors/package/ng-packagr-adjustments/styles/stylesheet-processor.js +1 -1
- package/src/migrations/update-16-4-0/update-angular-cli.d.ts +3 -0
- package/src/migrations/update-16-4-0/update-angular-cli.js +27 -0
- package/src/utils/mf/utils.js +1 -1
- package/src/utils/test-runners.js +2 -2
- package/src/utils/versions.d.ts +4 -4
- package/src/utils/versions.js +4 -4
- package/index.cjs +0 -5
- package/index.d.cts +0 -1
package/migrations.json
CHANGED
|
@@ -254,6 +254,15 @@
|
|
|
254
254
|
},
|
|
255
255
|
"description": "Remove the 'accessibility-' prefix from '@angular-eslint/eslint-plugin-template' rules.",
|
|
256
256
|
"factory": "./src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules"
|
|
257
|
+
},
|
|
258
|
+
"update-angular-cli-version-16-1-0": {
|
|
259
|
+
"cli": "nx",
|
|
260
|
+
"version": "16.4.0-beta.11",
|
|
261
|
+
"requires": {
|
|
262
|
+
"@angular/core": ">=16.1.0"
|
|
263
|
+
},
|
|
264
|
+
"description": "Update the @angular/cli package version to ~16.1.0.",
|
|
265
|
+
"factory": "./src/migrations/update-16-4-0/update-angular-cli"
|
|
257
266
|
}
|
|
258
267
|
},
|
|
259
268
|
"packageJsonUpdates": {
|
|
@@ -1159,6 +1168,67 @@
|
|
|
1159
1168
|
"alwaysAddToPackageJson": false
|
|
1160
1169
|
}
|
|
1161
1170
|
}
|
|
1171
|
+
},
|
|
1172
|
+
"16.4.0": {
|
|
1173
|
+
"version": "16.4.0-beta.11",
|
|
1174
|
+
"x-prompt": "Do you want to update the Angular version to v16.1?",
|
|
1175
|
+
"requires": {
|
|
1176
|
+
"@angular/core": ">=16.0.0 <16.1.0"
|
|
1177
|
+
},
|
|
1178
|
+
"packages": {
|
|
1179
|
+
"@angular-devkit/architect": {
|
|
1180
|
+
"version": "~0.1601.0",
|
|
1181
|
+
"alwaysAddToPackageJson": false
|
|
1182
|
+
},
|
|
1183
|
+
"@angular-devkit/build-angular": {
|
|
1184
|
+
"version": "~16.1.0",
|
|
1185
|
+
"alwaysAddToPackageJson": false
|
|
1186
|
+
},
|
|
1187
|
+
"@angular-devkit/build-webpack": {
|
|
1188
|
+
"version": "~0.1601.0",
|
|
1189
|
+
"alwaysAddToPackageJson": false
|
|
1190
|
+
},
|
|
1191
|
+
"@angular-devkit/core": {
|
|
1192
|
+
"version": "~16.1.0",
|
|
1193
|
+
"alwaysAddToPackageJson": false
|
|
1194
|
+
},
|
|
1195
|
+
"@angular-devkit/schematics": {
|
|
1196
|
+
"version": "~16.1.0",
|
|
1197
|
+
"alwaysAddToPackageJson": false
|
|
1198
|
+
},
|
|
1199
|
+
"@angular/core": {
|
|
1200
|
+
"version": "~16.1.0",
|
|
1201
|
+
"alwaysAddToPackageJson": true
|
|
1202
|
+
},
|
|
1203
|
+
"@angular/material": {
|
|
1204
|
+
"version": "~16.1.0",
|
|
1205
|
+
"alwaysAddToPackageJson": false
|
|
1206
|
+
},
|
|
1207
|
+
"@angular/cdk": {
|
|
1208
|
+
"version": "~16.1.0",
|
|
1209
|
+
"alwaysAddToPackageJson": false
|
|
1210
|
+
},
|
|
1211
|
+
"@nguniversal/builders": {
|
|
1212
|
+
"version": "~16.1.0",
|
|
1213
|
+
"alwaysAddToPackageJson": false
|
|
1214
|
+
},
|
|
1215
|
+
"@nguniversal/common": {
|
|
1216
|
+
"version": "~16.1.0",
|
|
1217
|
+
"alwaysAddToPackageJson": false
|
|
1218
|
+
},
|
|
1219
|
+
"@nguniversal/express-engine": {
|
|
1220
|
+
"version": "~16.1.0",
|
|
1221
|
+
"alwaysAddToPackageJson": false
|
|
1222
|
+
},
|
|
1223
|
+
"@schematics/angular": {
|
|
1224
|
+
"version": "~16.1.0",
|
|
1225
|
+
"alwaysAddToPackageJson": false
|
|
1226
|
+
},
|
|
1227
|
+
"ng-packagr": {
|
|
1228
|
+
"version": "~16.1.0",
|
|
1229
|
+
"alwaysAddToPackageJson": false
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1162
1232
|
}
|
|
1163
1233
|
}
|
|
1164
1234
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "16.4.0
|
|
3
|
+
"version": "16.4.0",
|
|
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": {
|
|
@@ -31,16 +31,15 @@
|
|
|
31
31
|
"./src/executors/*/schema.json": "./src/executors/*/schema.json",
|
|
32
32
|
"./src/executors/*.impl": "./src/executors/*.impl.js",
|
|
33
33
|
"./src/executors/*/compat": "./src/executors/*/compat.js",
|
|
34
|
+
"./package.json": {
|
|
35
|
+
"default": "./package.json"
|
|
36
|
+
},
|
|
34
37
|
".": {
|
|
35
|
-
"require": "./index.cjs",
|
|
36
38
|
"types": "./index.d.ts",
|
|
37
39
|
"esm2022": "./esm2022/nx-angular.mjs",
|
|
38
40
|
"esm": "./esm2022/nx-angular.mjs",
|
|
39
41
|
"default": "./fesm2022/nx-angular.mjs"
|
|
40
42
|
},
|
|
41
|
-
"./package.json": {
|
|
42
|
-
"default": "./package.json"
|
|
43
|
-
},
|
|
44
43
|
"./mf": {
|
|
45
44
|
"types": "./mf/index.d.ts",
|
|
46
45
|
"esm2022": "./esm2022/mf/nx-angular-mf.mjs",
|
|
@@ -67,14 +66,14 @@
|
|
|
67
66
|
"migrations": "./migrations.json"
|
|
68
67
|
},
|
|
69
68
|
"dependencies": {
|
|
70
|
-
"@nrwl/angular": "16.4.0
|
|
71
|
-
"@nx/cypress": "16.4.0
|
|
72
|
-
"@nx/devkit": "16.4.0
|
|
73
|
-
"@nx/jest": "16.4.0
|
|
74
|
-
"@nx/js": "16.4.0
|
|
75
|
-
"@nx/linter": "16.4.0
|
|
76
|
-
"@nx/webpack": "16.4.0
|
|
77
|
-
"@nx/workspace": "16.4.0
|
|
69
|
+
"@nrwl/angular": "16.4.0",
|
|
70
|
+
"@nx/cypress": "16.4.0",
|
|
71
|
+
"@nx/devkit": "16.4.0",
|
|
72
|
+
"@nx/jest": "16.4.0",
|
|
73
|
+
"@nx/js": "16.4.0",
|
|
74
|
+
"@nx/linter": "16.4.0",
|
|
75
|
+
"@nx/webpack": "16.4.0",
|
|
76
|
+
"@nx/workspace": "16.4.0",
|
|
78
77
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
79
78
|
"@typescript-eslint/type-utils": "^5.36.1",
|
|
80
79
|
"chalk": "^4.1.0",
|
|
@@ -84,7 +83,7 @@
|
|
|
84
83
|
"ignore": "^5.0.4",
|
|
85
84
|
"magic-string": "~0.26.2",
|
|
86
85
|
"minimatch": "3.0.5",
|
|
87
|
-
"semver": "7.3
|
|
86
|
+
"semver": "7.5.3",
|
|
88
87
|
"ts-node": "10.9.1",
|
|
89
88
|
"tsconfig-paths": "^4.1.2",
|
|
90
89
|
"tslib": "^2.3.0",
|
|
@@ -110,5 +109,5 @@
|
|
|
110
109
|
"module": "fesm2022/nx-angular.mjs",
|
|
111
110
|
"typings": "index.d.ts",
|
|
112
111
|
"sideEffects": false,
|
|
113
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "ae698a72748d9f33aa5395aeeaa7b7af436a1dc5"
|
|
114
113
|
}
|
|
@@ -57,7 +57,7 @@ ${e.stack ? e.stack : e}`);
|
|
|
57
57
|
: undefined;
|
|
58
58
|
const buildContext = (0, ct_helpers_1.createExecutorContext)(graph, (_e = graph.nodes[buildTarget.project]) === null || _e === void 0 ? void 0 : _e.data.targets, buildTarget.project, buildTarget.target, buildTarget.configuration);
|
|
59
59
|
const buildableProjectConfig = normalizeBuildTargetOptions(buildContext, ctContext, offset);
|
|
60
|
-
return Object.assign(Object.assign({}, (0, cypress_preset_1.nxBaseCypressPreset)(pathToConfig)), {
|
|
60
|
+
return Object.assign(Object.assign({}, (0, cypress_preset_1.nxBaseCypressPreset)(pathToConfig, { testingType: 'component' })), {
|
|
61
61
|
// NOTE: cannot use a glob pattern since it will break cypress generated tsconfig.
|
|
62
62
|
specPattern: ['src/**/*.cy.ts', 'src/**/*.cy.js'],
|
|
63
63
|
// cypress defaults to a relative path from the workspaceRoot instead of projectRoot
|
|
@@ -27,14 +27,14 @@ var CssUrl;
|
|
|
27
27
|
(function (CssUrl) {
|
|
28
28
|
CssUrl["inline"] = "inline";
|
|
29
29
|
CssUrl["none"] = "none";
|
|
30
|
-
})(CssUrl
|
|
30
|
+
})(CssUrl || (exports.CssUrl = CssUrl = {}));
|
|
31
31
|
var InlineStyleLanguage;
|
|
32
32
|
(function (InlineStyleLanguage) {
|
|
33
33
|
InlineStyleLanguage["sass"] = "sass";
|
|
34
34
|
InlineStyleLanguage["scss"] = "scss";
|
|
35
35
|
InlineStyleLanguage["css"] = "css";
|
|
36
36
|
InlineStyleLanguage["less"] = "less";
|
|
37
|
-
})(InlineStyleLanguage
|
|
37
|
+
})(InlineStyleLanguage || (exports.InlineStyleLanguage = InlineStyleLanguage = {}));
|
|
38
38
|
class StylesheetProcessor {
|
|
39
39
|
constructor(basePath, cssUrl, includePaths, cacheDirectory, watch, tailwindConfig) {
|
|
40
40
|
// By default, browserslist defaults are too inclusive
|
|
@@ -27,7 +27,7 @@ var CssUrl;
|
|
|
27
27
|
(function (CssUrl) {
|
|
28
28
|
CssUrl["inline"] = "inline";
|
|
29
29
|
CssUrl["none"] = "none";
|
|
30
|
-
})(CssUrl
|
|
30
|
+
})(CssUrl || (exports.CssUrl = CssUrl = {}));
|
|
31
31
|
class StylesheetProcessor {
|
|
32
32
|
constructor(basePath, cssUrl, includePaths, cacheDirectory, watch, tailwindConfig) {
|
|
33
33
|
// By default, browserslist defaults are too inclusive
|
|
@@ -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.1.0';
|
|
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;
|
package/src/utils/mf/utils.js
CHANGED
|
@@ -38,7 +38,7 @@ function getFunctionDeterminateRemoteUrl(isServer = false) {
|
|
|
38
38
|
throw new Error(`Cannot automatically determine URL of remote (${remote}). Looked for property "host" in the project's "serve" target.\n
|
|
39
39
|
You can also use the tuple syntax in your webpack config to configure your remotes. e.g. \`remotes: [['remote1', 'http://localhost:4201']]\``);
|
|
40
40
|
}
|
|
41
|
-
const host = (_c = (_b = serveTarget.options) === null || _b === void 0 ? void 0 : _b.host) !== null && _c !== void 0 ? _c : '
|
|
41
|
+
const host = (_c = (_b = serveTarget.options) === null || _b === void 0 ? void 0 : _b.host) !== null && _c !== void 0 ? _c : `http${serveTarget.options.ssl ? 's' : ''}://localhost`;
|
|
42
42
|
const port = (_e = (_d = serveTarget.options) === null || _d === void 0 ? void 0 : _d.port) !== null && _e !== void 0 ? _e : 4201;
|
|
43
43
|
return `${host.endsWith('/') ? host.slice(0, -1) : host}:${port}/${remoteEntry}`;
|
|
44
44
|
};
|
|
@@ -5,9 +5,9 @@ var UnitTestRunner;
|
|
|
5
5
|
(function (UnitTestRunner) {
|
|
6
6
|
UnitTestRunner["Jest"] = "jest";
|
|
7
7
|
UnitTestRunner["None"] = "none";
|
|
8
|
-
})(UnitTestRunner
|
|
8
|
+
})(UnitTestRunner || (exports.UnitTestRunner = UnitTestRunner = {}));
|
|
9
9
|
var E2eTestRunner;
|
|
10
10
|
(function (E2eTestRunner) {
|
|
11
11
|
E2eTestRunner["Cypress"] = "cypress";
|
|
12
12
|
E2eTestRunner["None"] = "none";
|
|
13
|
-
})(E2eTestRunner
|
|
13
|
+
})(E2eTestRunner || (exports.E2eTestRunner = E2eTestRunner = {}));
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const angularVersion = "~16.
|
|
3
|
-
export declare const angularDevkitVersion = "~16.
|
|
4
|
-
export declare const ngPackagrVersion = "~16.
|
|
2
|
+
export declare const angularVersion = "~16.1.0";
|
|
3
|
+
export declare const angularDevkitVersion = "~16.1.0";
|
|
4
|
+
export declare const ngPackagrVersion = "~16.1.0";
|
|
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.
|
|
10
|
+
export declare const ngUniversalVersion = "~16.1.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";
|
package/src/utils/versions.js
CHANGED
|
@@ -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.
|
|
6
|
-
exports.angularDevkitVersion = '~16.
|
|
7
|
-
exports.ngPackagrVersion = '~16.
|
|
5
|
+
exports.angularVersion = '~16.1.0';
|
|
6
|
+
exports.angularDevkitVersion = '~16.1.0';
|
|
7
|
+
exports.ngPackagrVersion = '~16.1.0';
|
|
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.
|
|
13
|
+
exports.ngUniversalVersion = '~16.1.0';
|
|
14
14
|
exports.corsVersion = '~2.8.5';
|
|
15
15
|
exports.typesCorsVersion = '~2.8.5';
|
|
16
16
|
exports.expressVersion = '~4.18.2';
|
package/index.cjs
DELETED
package/index.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|