@schematics/angular 11.0.0-rc.3 → 11.0.3

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.
@@ -13,15 +13,24 @@ module.exports = function (config) {
13
13
  require('@angular-devkit/build-angular/plugins/karma')
14
14
  ],
15
15
  client: {
16
+ jasmine: {
17
+ // you can add configuration options for Jasmine here
18
+ // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
+ // for example, you can disable the random execution with `random: false`
20
+ // or set a specific seed with `seed: 4321`
21
+ },
16
22
  clearContext: false // leave Jasmine Spec Runner output visible in browser
17
23
  },
24
+ jasmineHtmlReporter: {
25
+ suppressAll: true // removes the duplicated traces
26
+ },
18
27
  coverageReporter: {
19
28
  dir: require('path').join(__dirname, '<%= relativePathToWorkspaceRoot %>/coverage/<%= appName%>'),
20
29
  subdir: '.',
21
30
  reporters: [
22
31
  { type: 'html' },
23
32
  { type: 'text-summary' }
24
- ],
33
+ ]
25
34
  },
26
35
  reporters: ['progress', 'kjhtml'],
27
36
  port: 9876,
@@ -13,15 +13,24 @@ module.exports = function (config) {
13
13
  require('@angular-devkit/build-angular/plugins/karma')
14
14
  ],
15
15
  client: {
16
+ jasmine: {
17
+ // you can add configuration options for Jasmine here
18
+ // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
+ // for example, you can disable the random execution with `random: false`
20
+ // or set a specific seed with `seed: 4321`
21
+ },
16
22
  clearContext: false // leave Jasmine Spec Runner output visible in browser
17
23
  },
24
+ jasmineHtmlReporter: {
25
+ suppressAll: true // removes the duplicated traces
26
+ },
18
27
  coverageReporter: {
19
28
  dir: require('path').join(__dirname, '<%= relativePathToWorkspaceRoot %>/coverage/<%= folderName %>'),
20
29
  subdir: '.',
21
30
  reporters: [
22
31
  { type: 'html' },
23
32
  { type: 'text-summary' }
24
- ],
33
+ ]
25
34
  },
26
35
  reporters: ['progress', 'kjhtml'],
27
36
  port: 9876,
@@ -119,6 +119,11 @@
119
119
  "version": "11.0.0-next.8",
120
120
  "factory": "./update-11/update-angular-config",
121
121
  "description": "Remove deprecated options from 'angular.json' that are no longer present in v11."
122
+ },
123
+ "update-workspace-dependencies-v11": {
124
+ "version": "11.0.0",
125
+ "factory": "./update-11/update-dependencies",
126
+ "description": "Update workspace dependencies to match a new v11 project."
122
127
  }
123
128
  }
124
129
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { Rule } from '@angular-devkit/schematics';
9
+ export default function (): Rule;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tasks_1 = require("@angular-devkit/schematics/tasks");
4
+ const dependencies_1 = require("../../utility/dependencies");
5
+ function default_1() {
6
+ return (host, context) => {
7
+ const dependenciesToUpdate = {
8
+ '@types/jasmine': '~3.6.0',
9
+ 'codelyzer': '^6.0.0',
10
+ 'jasmine-core': '~3.6.0',
11
+ 'jasmine-spec-reporter': '~5.0.0',
12
+ 'karma-chrome-launcher': '~3.1.0',
13
+ 'karma-coverage': '~2.0.3',
14
+ 'karma-jasmine': '~4.0.0',
15
+ 'karma-jasmine-html-reporter': '^1.5.0',
16
+ 'tslib': '^2.0.0',
17
+ };
18
+ let hasChanges = false;
19
+ for (const [name, version] of Object.entries(dependenciesToUpdate)) {
20
+ const current = dependencies_1.getPackageJsonDependency(host, name);
21
+ if (!current || current.version === version) {
22
+ continue;
23
+ }
24
+ dependencies_1.addPackageJsonDependency(host, {
25
+ type: current.type,
26
+ name,
27
+ version,
28
+ overwrite: true,
29
+ });
30
+ hasChanges = true;
31
+ }
32
+ if (hasChanges) {
33
+ context.addTask(new tasks_1.NodePackageInstallTask());
34
+ }
35
+ };
36
+ }
37
+ exports.default = default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "11.0.0-rc.3",
3
+ "version": "11.0.3",
4
4
  "description": "Schematics specific to Angular",
5
5
  "keywords": [
6
6
  "angular",
@@ -14,8 +14,8 @@
14
14
  ],
15
15
  "schematics": "./collection.json",
16
16
  "dependencies": {
17
- "@angular-devkit/core": "11.0.0-rc.3",
18
- "@angular-devkit/schematics": "11.0.0-rc.3",
17
+ "@angular-devkit/core": "11.0.3",
18
+ "@angular-devkit/schematics": "11.0.3",
19
19
  "jsonc-parser": "2.3.1"
20
20
  },
21
21
  "repository": {
@@ -32,11 +32,5 @@
32
32
  "bugs": {
33
33
  "url": "https://github.com/angular/angular-cli/issues"
34
34
  },
35
- "homepage": "https://github.com/angular/angular-cli",
36
- "husky": {
37
- "hooks": {
38
- "commit-msg": "yarn -s ng-dev commit-message pre-commit-validate --file-env-variable HUSKY_GIT_PARAMS",
39
- "prepare-commit-msg": "yarn -s ng-dev commit-message restore-commit-message-draft --file-env-variable HUSKY_GIT_PARAMS"
40
- }
41
- }
35
+ "homepage": "https://github.com/angular/angular-cli"
42
36
  }
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.latestVersions = void 0;
11
11
  exports.latestVersions = {
12
12
  // These versions should be kept up to date with latest Angular peer dependencies.
13
- Angular: '~11.0.0-rc.3',
13
+ Angular: '~11.0.3',
14
14
  RxJs: '~6.6.0',
15
15
  ZoneJs: '~0.10.2',
16
16
  TypeScript: '~4.0.2',
@@ -19,8 +19,8 @@ exports.latestVersions = {
19
19
  // For our e2e tests, these versions must match the latest tag present on the branch.
20
20
  // During RC periods they will not match the latest RC until there's a new git tag, and
21
21
  // should not be updated.
22
- DevkitBuildAngular: '~0.1100.0-rc.3',
23
- DevkitBuildNgPackagr: '~0.1100.0-rc.3',
24
- DevkitBuildWebpack: '~0.1100.0-rc.3',
25
- ngPackagr: '^11.0.0-next.3',
22
+ DevkitBuildAngular: '~0.1100.3',
23
+ DevkitBuildNgPackagr: '~0.1100.3',
24
+ DevkitBuildWebpack: '~0.1100.3',
25
+ ngPackagr: '^11.0.0',
26
26
  };
@@ -30,7 +30,7 @@
30
30
  "codelyzer": "^6.0.0",
31
31
  "jasmine-core": "~3.6.0",
32
32
  "jasmine-spec-reporter": "~5.0.0",
33
- "karma": "~5.2.0",
33
+ "karma": "~5.1.0",
34
34
  "karma-chrome-launcher": "~3.1.0",
35
35
  "karma-coverage": "~2.0.3",
36
36
  "karma-jasmine": "~4.0.0",