@nrwl/angular 15.8.0-beta.3 → 15.8.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/migrations.json +68 -0
- package/package.json +9 -9
- package/src/builders/module-federation-dev-ssr/schema.d.ts +1 -1
- package/src/builders/module-federation-dev-ssr/schema.json +2 -1
- package/src/generators/component-story/files/__componentFileName__.stories.ts__tmpl__ +9 -15
- package/src/migrations/update-15-8-0/update-angular-cli.d.ts +2 -0
- package/src/migrations/update-15-8-0/update-angular-cli.js +27 -0
- package/src/migrations/update-15-8-0/update-angular-cli.js.map +1 -0
- package/src/utils/versions.d.ts +4 -4
- package/src/utils/versions.js +4 -4
package/migrations.json
CHANGED
|
@@ -230,6 +230,12 @@
|
|
|
230
230
|
"version": "15.7.0-beta.1",
|
|
231
231
|
"description": "Install the required angular-devkit packages as we do not directly depend on them anymore",
|
|
232
232
|
"factory": "./src/migrations/update-15-7-0/install-required-packages"
|
|
233
|
+
},
|
|
234
|
+
"update-angular-cli-version-15-2-0": {
|
|
235
|
+
"cli": "nx",
|
|
236
|
+
"version": "15.8.0-beta.4",
|
|
237
|
+
"description": "Update the @angular/cli package version to ~15.2.0.",
|
|
238
|
+
"factory": "./src/migrations/update-15-8-0/update-angular-cli"
|
|
233
239
|
}
|
|
234
240
|
},
|
|
235
241
|
"packageJsonUpdates": {
|
|
@@ -1836,6 +1842,68 @@
|
|
|
1836
1842
|
"alwaysAddToPackageJson": false
|
|
1837
1843
|
}
|
|
1838
1844
|
}
|
|
1845
|
+
},
|
|
1846
|
+
"15.8.0": {
|
|
1847
|
+
"version": "15.8.0-beta.4",
|
|
1848
|
+
"x-prompt": "Do you want to update the Angular version to v15.2?",
|
|
1849
|
+
"requires": {
|
|
1850
|
+
"@angular/core": ">=15.1.0 <15.2.0",
|
|
1851
|
+
"typescript": ">=4.8.2 <5.0"
|
|
1852
|
+
},
|
|
1853
|
+
"packages": {
|
|
1854
|
+
"@angular-devkit/architect": {
|
|
1855
|
+
"version": "~0.1502.0",
|
|
1856
|
+
"alwaysAddToPackageJson": false
|
|
1857
|
+
},
|
|
1858
|
+
"@angular-devkit/build-angular": {
|
|
1859
|
+
"version": "~15.2.0",
|
|
1860
|
+
"alwaysAddToPackageJson": false
|
|
1861
|
+
},
|
|
1862
|
+
"@angular-devkit/build-webpack": {
|
|
1863
|
+
"version": "~0.1502.0",
|
|
1864
|
+
"alwaysAddToPackageJson": false
|
|
1865
|
+
},
|
|
1866
|
+
"@angular-devkit/core": {
|
|
1867
|
+
"version": "~15.2.0",
|
|
1868
|
+
"alwaysAddToPackageJson": false
|
|
1869
|
+
},
|
|
1870
|
+
"@angular-devkit/schematics": {
|
|
1871
|
+
"version": "~15.2.0",
|
|
1872
|
+
"alwaysAddToPackageJson": false
|
|
1873
|
+
},
|
|
1874
|
+
"@angular/core": {
|
|
1875
|
+
"version": "~15.2.0",
|
|
1876
|
+
"alwaysAddToPackageJson": true
|
|
1877
|
+
},
|
|
1878
|
+
"@angular/material": {
|
|
1879
|
+
"version": "~15.2.0",
|
|
1880
|
+
"alwaysAddToPackageJson": false
|
|
1881
|
+
},
|
|
1882
|
+
"@angular/cdk": {
|
|
1883
|
+
"version": "~15.2.0",
|
|
1884
|
+
"alwaysAddToPackageJson": false
|
|
1885
|
+
},
|
|
1886
|
+
"@schematics/angular": {
|
|
1887
|
+
"version": "~15.2.0",
|
|
1888
|
+
"alwaysAddToPackageJson": false
|
|
1889
|
+
},
|
|
1890
|
+
"@nguniversal/express-engine": {
|
|
1891
|
+
"version": "~15.2.0",
|
|
1892
|
+
"alwaysAddToPackageJson": false
|
|
1893
|
+
},
|
|
1894
|
+
"@nguniversal/build-angular": {
|
|
1895
|
+
"version": "~15.2.0",
|
|
1896
|
+
"alwaysAddToPackageJson": false
|
|
1897
|
+
},
|
|
1898
|
+
"ng-packagr": {
|
|
1899
|
+
"version": "~15.2.2",
|
|
1900
|
+
"alwaysAddToPackageJson": false
|
|
1901
|
+
},
|
|
1902
|
+
"zone.js": {
|
|
1903
|
+
"version": "~0.12.0",
|
|
1904
|
+
"alwaysAddToPackageJson": false
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1839
1907
|
}
|
|
1840
1908
|
}
|
|
1841
1909
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/angular",
|
|
3
|
-
"version": "15.8.0-beta.
|
|
3
|
+
"version": "15.8.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, 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,13 +63,13 @@
|
|
|
63
63
|
"migrations": "./migrations.json"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@nrwl/cypress": "15.8.0-beta.
|
|
67
|
-
"@nrwl/devkit": "15.8.0-beta.
|
|
68
|
-
"@nrwl/jest": "15.8.0-beta.
|
|
69
|
-
"@nrwl/js": "15.8.0-beta.
|
|
70
|
-
"@nrwl/linter": "15.8.0-beta.
|
|
71
|
-
"@nrwl/webpack": "15.8.0-beta.
|
|
72
|
-
"@nrwl/workspace": "15.8.0-beta.
|
|
66
|
+
"@nrwl/cypress": "15.8.0-beta.4",
|
|
67
|
+
"@nrwl/devkit": "15.8.0-beta.4",
|
|
68
|
+
"@nrwl/jest": "15.8.0-beta.4",
|
|
69
|
+
"@nrwl/js": "15.8.0-beta.4",
|
|
70
|
+
"@nrwl/linter": "15.8.0-beta.4",
|
|
71
|
+
"@nrwl/webpack": "15.8.0-beta.4",
|
|
72
|
+
"@nrwl/workspace": "15.8.0-beta.4",
|
|
73
73
|
"@phenomnomnominal/tsquery": "4.1.1",
|
|
74
74
|
"chalk": "^4.1.0",
|
|
75
75
|
"chokidar": "^3.5.1",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"fesm2015": "fesm2015/nrwl-angular.mjs",
|
|
109
109
|
"typings": "index.d.ts",
|
|
110
110
|
"sideEffects": false,
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "8d9603f0e8dc2d1c9931b28894569e833a0a1541"
|
|
112
112
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta } from '@storybook/angular';
|
|
2
2
|
import { <%=componentName%> } from './<%=componentFileName%>';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
title: '<%=componentName%>',
|
|
6
|
-
component: <%=componentName
|
|
7
|
-
decorators: [
|
|
8
|
-
moduleMetadata({
|
|
9
|
-
imports: [],
|
|
10
|
-
})
|
|
11
|
-
],
|
|
6
|
+
component: <%=componentName%>
|
|
12
7
|
} as Meta<<%=componentName%>>;
|
|
13
8
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export const Primary = Template.bind({});
|
|
20
|
-
Primary.args = {<% for (let prop of props) { %>
|
|
9
|
+
export const Primary = {
|
|
10
|
+
render: (args: <%=componentName%>) => ({
|
|
11
|
+
props: args,
|
|
12
|
+
}),
|
|
13
|
+
args: {<% for (let prop of props) { %>
|
|
21
14
|
<%= prop.name %>: <%- prop.defaultValue %>,<% } %>
|
|
22
|
-
}
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 angularCliVersion = '~15.2.0';
|
|
6
|
+
function default_1(tree) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
let shouldFormat = false;
|
|
9
|
+
(0, devkit_1.updateJson)(tree, 'package.json', (json) => {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
if ((_a = json.devDependencies) === null || _a === void 0 ? void 0 : _a['@angular/cli']) {
|
|
12
|
+
json.devDependencies['@angular/cli'] = angularCliVersion;
|
|
13
|
+
shouldFormat = true;
|
|
14
|
+
}
|
|
15
|
+
else if ((_b = json.dependencies) === null || _b === void 0 ? void 0 : _b['@angular/cli']) {
|
|
16
|
+
json.dependencies['@angular/cli'] = angularCliVersion;
|
|
17
|
+
shouldFormat = true;
|
|
18
|
+
}
|
|
19
|
+
return json;
|
|
20
|
+
});
|
|
21
|
+
if (shouldFormat) {
|
|
22
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
exports.default = default_1;
|
|
27
|
+
//# sourceMappingURL=update-angular-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-angular-cli.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/migrations/update-15-8-0/update-angular-cli.ts"],"names":[],"mappings":";;;AAAA,yCAA6D;AAE7D,MAAM,iBAAiB,GAAG,SAAS,CAAC;AAEpC,mBAA+B,IAAU;;QACvC,IAAI,YAAY,GAAG,KAAK,CAAC;QAEzB,IAAA,mBAAU,EAAC,IAAI,EAAE,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE;;YACxC,IAAI,MAAA,IAAI,CAAC,eAAe,0CAAG,cAAc,CAAC,EAAE;gBAC1C,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,GAAG,iBAAiB,CAAC;gBACzD,YAAY,GAAG,IAAI,CAAC;aACrB;iBAAM,IAAI,MAAA,IAAI,CAAC,YAAY,0CAAG,cAAc,CAAC,EAAE;gBAC9C,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,GAAG,iBAAiB,CAAC;gBACtD,YAAY,GAAG,IAAI,CAAC;aACrB;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,IAAI,YAAY,EAAE;YAChB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;IACH,CAAC;CAAA;AAlBD,4BAkBC"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const angularVersion = "~15.
|
|
3
|
-
export declare const angularDevkitVersion = "~15.
|
|
4
|
-
export declare const ngPackagrVersion = "~15.
|
|
2
|
+
export declare const angularVersion = "~15.2.0";
|
|
3
|
+
export declare const angularDevkitVersion = "~15.2.0";
|
|
4
|
+
export declare const ngPackagrVersion = "~15.2.2";
|
|
5
5
|
export declare const ngrxVersion = "~15.0.0";
|
|
6
6
|
export declare const rxjsVersion = "~7.8.0";
|
|
7
|
-
export declare const zoneJsVersion = "~0.
|
|
7
|
+
export declare const zoneJsVersion = "~0.12.0";
|
|
8
8
|
export declare const angularJsVersion = "1.7.9";
|
|
9
9
|
export declare const tsLibVersion = "^2.3.0";
|
|
10
10
|
export declare const ngUniversalVersion = "~15.1.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.jasmineMarblesVersion = exports.typesNodeVersion = exports.typesJasminewd2Version = exports.typesJasmineVersion = exports.jasmineSpecReporterVersion = exports.jasmineCoreVersion = exports.karmaJasmineHtmlReporterVersion = exports.karmaJasmineVersion = exports.karmaCoverageVersion = exports.karmaChromeLauncherVersion = exports.karmaVersion = exports.protractorVersion = exports.jestPresetAngularVersion = exports.tsNodeVersion = exports.autoprefixerVersion = exports.postcssUrlVersion = exports.postcssPresetEnvVersion = exports.postcssImportVersion = exports.postcssVersion = exports.tailwindVersion = exports.angularEslintVersion = exports.moduleFederationNodeVersion = exports.expressVersion = 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 = '~15.
|
|
6
|
-
exports.angularDevkitVersion = '~15.
|
|
7
|
-
exports.ngPackagrVersion = '~15.
|
|
5
|
+
exports.angularVersion = '~15.2.0';
|
|
6
|
+
exports.angularDevkitVersion = '~15.2.0';
|
|
7
|
+
exports.ngPackagrVersion = '~15.2.2';
|
|
8
8
|
exports.ngrxVersion = '~15.0.0';
|
|
9
9
|
exports.rxjsVersion = '~7.8.0';
|
|
10
|
-
exports.zoneJsVersion = '~0.
|
|
10
|
+
exports.zoneJsVersion = '~0.12.0';
|
|
11
11
|
exports.angularJsVersion = '1.7.9';
|
|
12
12
|
exports.tsLibVersion = '^2.3.0';
|
|
13
13
|
exports.ngUniversalVersion = '~15.1.0';
|