@nrwl/angular 15.8.0-beta.3 → 15.8.0-beta.5

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 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,84 @@
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
+ }
1907
+ },
1908
+ "15.8.0-jest": {
1909
+ "version": "15.8.0-beta.0",
1910
+ "requires": {
1911
+ "@angular-devkit/build-angular": ">=13.0.0 <16.0.0",
1912
+ "@angular/compiler-cli": ">=13.0.0 <16.0.0",
1913
+ "@angular/core": ">=13.0.0 <16.0.0",
1914
+ "@angular/platform-browser-dynamic": ">=13.0.0 <16.0.0",
1915
+ "jest": "^29.0.0"
1916
+ },
1917
+ "packages": {
1918
+ "jest-preset-angular": {
1919
+ "version": "13.0.0",
1920
+ "alwaysAddToPackageJson": false
1921
+ }
1922
+ }
1839
1923
  }
1840
1924
  }
1841
1925
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/angular",
3
- "version": "15.8.0-beta.3",
3
+ "version": "15.8.0-beta.5",
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.3",
67
- "@nrwl/devkit": "15.8.0-beta.3",
68
- "@nrwl/jest": "15.8.0-beta.3",
69
- "@nrwl/js": "15.8.0-beta.3",
70
- "@nrwl/linter": "15.8.0-beta.3",
71
- "@nrwl/webpack": "15.8.0-beta.3",
72
- "@nrwl/workspace": "15.8.0-beta.3",
66
+ "@nrwl/cypress": "15.8.0-beta.5",
67
+ "@nrwl/devkit": "15.8.0-beta.5",
68
+ "@nrwl/jest": "15.8.0-beta.5",
69
+ "@nrwl/js": "15.8.0-beta.5",
70
+ "@nrwl/linter": "15.8.0-beta.5",
71
+ "@nrwl/webpack": "15.8.0-beta.5",
72
+ "@nrwl/workspace": "15.8.0-beta.5",
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": "cbf33c478661e0c4f4795f9986a2357b641cc497"
111
+ "gitHead": "6b0b30ed408640c9fda5291346d818ace7dfd3a2"
112
112
  }
@@ -12,6 +12,6 @@ export interface Schema {
12
12
  proxyConfig?: string;
13
13
  devRemotes?: string[];
14
14
  skipRemotes?: string[];
15
- verbose?: boolean;
15
+ verbose: boolean;
16
16
  pathToManifestFile?: string;
17
17
  }
@@ -77,7 +77,8 @@
77
77
  },
78
78
  "verbose": {
79
79
  "type": "boolean",
80
- "description": "Adds more details to output logging."
80
+ "description": "Adds more details to output logging.",
81
+ "default": false
81
82
  },
82
83
  "pathToManifestFile": {
83
84
  "type": "string",
@@ -1,22 +1,16 @@
1
- import { moduleMetadata, Story, Meta } from '@storybook/angular';
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 Template: Story<<%=componentName%>> = (args: <%=componentName%>) => ({
15
- props: args,
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,2 @@
1
+ import { Tree } from '@nrwl/devkit';
2
+ export default function (tree: Tree): Promise<void>;
@@ -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"}
@@ -1,10 +1,10 @@
1
1
  export declare const nxVersion: any;
2
- export declare const angularVersion = "~15.1.0";
3
- export declare const angularDevkitVersion = "~15.1.0";
4
- export declare const ngPackagrVersion = "~15.1.0";
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.11.4";
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";
@@ -19,7 +19,7 @@ export declare const postcssPresetEnvVersion = "~7.5.0";
19
19
  export declare const postcssUrlVersion = "~10.1.3";
20
20
  export declare const autoprefixerVersion = "^10.4.0";
21
21
  export declare const tsNodeVersion = "10.9.1";
22
- export declare const jestPresetAngularVersion = "~12.2.3";
22
+ export declare const jestPresetAngularVersion = "~13.0.0";
23
23
  export declare const protractorVersion = "~7.0.0";
24
24
  export declare const karmaVersion = "~6.4.0";
25
25
  export declare const karmaChromeLauncherVersion = "~3.1.0";
@@ -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.1.0';
6
- exports.angularDevkitVersion = '~15.1.0';
7
- exports.ngPackagrVersion = '~15.1.0';
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.11.4';
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';
@@ -22,7 +22,7 @@ exports.postcssPresetEnvVersion = '~7.5.0';
22
22
  exports.postcssUrlVersion = '~10.1.3';
23
23
  exports.autoprefixerVersion = '^10.4.0';
24
24
  exports.tsNodeVersion = '10.9.1';
25
- exports.jestPresetAngularVersion = '~12.2.3';
25
+ exports.jestPresetAngularVersion = '~13.0.0';
26
26
  exports.protractorVersion = '~7.0.0';
27
27
  exports.karmaVersion = '~6.4.0';
28
28
  exports.karmaChromeLauncherVersion = '~3.1.0';