Skip to content

Commit

Permalink
chore(deps)!: update to Angular CLI 14 and Jest 28
Browse files Browse the repository at this point in the history
  • Loading branch information
JeB authored and just-jeb committed Jun 9, 2022
1 parent 82f95cc commit 3b09c27
Show file tree
Hide file tree
Showing 32 changed files with 2,587 additions and 1,978 deletions.
16 changes: 16 additions & 0 deletions MIGRATION.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Migration from version 13 to version 14
## Custom webpack builder

- Node 12 is no longer supported

## Jest builder

- Node 12 is no longer supported
- Minimal required version of Jest is 28
- Command line arguments in camelCase are no longer supported, use kebab-case instead
- If you use it with custom configuration, make sure you read [this](https://github.com/thymikee/jest-preset-angular/blob/main/CHANGELOG.md#breaking-changes)

## Bazel builder

- Node 12 is no longer supported

# Migration from version 12 to version 13

## Custom webpack builder
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The purpose of this repository is to consolidate all the community builders for Angular build facade.

## The latest version of all the builders require Angular CLI 13
## The latest version of all the builders require Angular CLI 14

Builders' and Angular **major** versions **must** match.

Expand All @@ -13,6 +13,7 @@ Builders' and Angular **major** versions **must** match.
<details>
<summary>Click to expand</summary>

- [Version 13](https://github.com/just-jeb/angular-builders/tree/13.x.x)
- [Version 12](https://github.com/just-jeb/angular-builders/tree/12.x.x)
- [Version 11](https://github.com/just-jeb/angular-builders/tree/11.x.x)
- [Version 10](https://github.com/just-jeb/angular-builders/tree/10.x.x)
Expand Down
2 changes: 1 addition & 1 deletion examples/bazel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"private": true,
"devDependencies": {
"@angular-builders/bazel": "^13.1.2",
"@angular/cli": "13.3.7"
"@angular/cli": "^14.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/custom-webpack/full-cycle-app/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@
}
}
},
"defaultProject": "full-cycle-app",
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": false
}
}
26 changes: 13 additions & 13 deletions examples/custom-webpack/full-cycle-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "13.3.9",
"@angular/common": "13.3.9",
"@angular/compiler": "13.3.9",
"@angular/core": "13.3.9",
"@angular/forms": "13.3.9",
"@angular/platform-browser": "13.3.9",
"@angular/platform-browser-dynamic": "13.3.9",
"@angular/router": "13.3.9",
"@angular/animations": "14.0.0",
"@angular/common": "14.0.0",
"@angular/compiler": "14.0.0",
"@angular/core": "14.0.0",
"@angular/forms": "14.0.0",
"@angular/platform-browser": "14.0.0",
"@angular/platform-browser-dynamic": "14.0.0",
"@angular/router": "14.0.0",
"rxjs": "7.5.5",
"tslib": "2.3.1",
"zone.js": "0.11.5"
},
"devDependencies": {
"@angular-builders/custom-webpack": "13.1.0",
"@angular-devkit/build-angular": "13.3.7",
"@angular/cli": "13.3.7",
"@angular/compiler-cli": "13.3.9",
"@angular/language-service": "13.3.9",
"@angular-devkit/build-angular": "14.0.0",
"@angular/cli": "14.0.0",
"@angular/compiler-cli": "14.0.0",
"@angular/language-service": "14.0.0",
"@types/jasmine": "3.10.3",
"@types/node": "16.11.25",
"cypress": "9.6.1",
Expand All @@ -41,7 +41,7 @@
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.7.0",
"puppeteer": "13.7.0",
"ts-node": "10.5.0",
"ts-node": "10.8.1",
"typescript": "4.6.4"
}
}
6 changes: 3 additions & 3 deletions examples/custom-webpack/sanity-app-esm/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": false
},
"newProjectRoot": "projects",
"projects": {
Expand Down Expand Up @@ -171,6 +172,5 @@
}
}
}
},
"defaultProject": "sanity-app-esm"
}
}
24 changes: 12 additions & 12 deletions examples/custom-webpack/sanity-app-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
},
"private": true,
"dependencies": {
"@angular/animations": "13.3.9",
"@angular/common": "13.3.9",
"@angular/compiler": "13.3.9",
"@angular/core": "13.3.9",
"@angular/forms": "13.3.9",
"@angular/platform-browser": "13.3.9",
"@angular/platform-browser-dynamic": "13.3.9",
"@angular/router": "13.3.9",
"@angular/animations": "14.0.0",
"@angular/common": "14.0.0",
"@angular/compiler": "14.0.0",
"@angular/core": "14.0.0",
"@angular/forms": "14.0.0",
"@angular/platform-browser": "14.0.0",
"@angular/platform-browser-dynamic": "14.0.0",
"@angular/router": "14.0.0",
"rxjs": "7.5.5",
"tslib": "2.3.1",
"zone.js": "0.11.5"
},
"devDependencies": {
"@angular-builders/custom-webpack": "13.1.0",
"@angular-devkit/build-angular": "13.3.7",
"@angular/cli": "13.3.7",
"@angular/compiler-cli": "13.3.9",
"@angular-devkit/build-angular": "14.0.0",
"@angular/cli": "14.0.0",
"@angular/compiler-cli": "14.0.0",
"@cypress/schematic": "1.6.0",
"@types/jasmine": "3.10.3",
"@types/node": "16.11.25",
Expand All @@ -46,4 +46,4 @@
"puppeteer": "13.7.0",
"typescript": "4.6.4"
}
}
}
2 changes: 1 addition & 1 deletion examples/custom-webpack/sanity-app-esm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2017",
"target": "es2020",
"module": "es2020",
"lib": [
"es2020",
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-webpack/sanity-app/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@
}
}
},
"defaultProject": "sanity-app",
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": false
}
}
26 changes: 13 additions & 13 deletions examples/custom-webpack/sanity-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "13.3.9",
"@angular/common": "13.3.9",
"@angular/compiler": "13.3.9",
"@angular/core": "13.3.9",
"@angular/forms": "13.3.9",
"@angular/platform-browser": "13.3.9",
"@angular/platform-browser-dynamic": "13.3.9",
"@angular/router": "13.3.9",
"@angular/animations": "14.0.0",
"@angular/common": "14.0.0",
"@angular/compiler": "14.0.0",
"@angular/core": "14.0.0",
"@angular/forms": "14.0.0",
"@angular/platform-browser": "14.0.0",
"@angular/platform-browser-dynamic": "14.0.0",
"@angular/router": "14.0.0",
"rxjs": "7.5.5",
"tslib": "2.3.1",
"zone.js": "0.11.5"
},
"devDependencies": {
"@angular-builders/custom-webpack": "13.1.0",
"@angular-devkit/build-angular": "13.3.7",
"@angular/cli": "13.3.7",
"@angular/compiler-cli": "13.3.9",
"@angular/language-service": "13.3.9",
"@angular-devkit/build-angular": "14.0.0",
"@angular/cli": "14.0.0",
"@angular/compiler-cli": "14.0.0",
"@angular/language-service": "14.0.0",
"@types/jasmine": "3.10.3",
"@types/node": "16.11.25",
"cypress": "9.6.1",
Expand All @@ -40,7 +40,7 @@
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.7.0",
"puppeteer": "13.7.0",
"ts-node": "10.5.0",
"ts-node": "10.8.1",
"typescript": "4.6.4"
}
}
4 changes: 2 additions & 2 deletions examples/jest/multiple-apps/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@
}
}
},
"defaultProject": "my-first-app",
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": false
}
}
30 changes: 15 additions & 15 deletions examples/jest/multiple-apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@
},
"private": true,
"dependencies": {
"@angular/animations": "13.3.9",
"@angular/common": "13.3.9",
"@angular/compiler": "13.3.9",
"@angular/core": "13.3.9",
"@angular/forms": "13.3.9",
"@angular/platform-browser": "13.3.9",
"@angular/platform-browser-dynamic": "13.3.9",
"@angular/router": "13.3.9",
"@angular/animations": "14.0.0",
"@angular/common": "14.0.0",
"@angular/compiler": "14.0.0",
"@angular/core": "14.0.0",
"@angular/forms": "14.0.0",
"@angular/platform-browser": "14.0.0",
"@angular/platform-browser-dynamic": "14.0.0",
"@angular/router": "14.0.0",
"rxjs": "7.5.5",
"tslib": "2.3.1",
"zone.js": "0.11.5"
},
"devDependencies": {
"@angular-builders/jest": "^13.0.4",
"@angular-devkit/build-angular": "13.3.7",
"@angular/cli": "13.3.7",
"@angular/compiler-cli": "13.3.9",
"@angular/language-service": "13.3.9",
"@angular-devkit/build-angular": "14.0.0",
"@angular/cli": "14.0.0",
"@angular/compiler-cli": "14.0.0",
"@angular/language-service": "14.0.0",
"@types/jasmine": "3.10.3",
"@types/node": "16.11.25",
"cypress": "9.6.1",
"jasmine-core": "4.0.1",
"jest": "27.5.1",
"ng-packagr": "13.2.1",
"ts-node": "10.5.0",
"jest": "28.1.0",
"ng-packagr": "14.0.0",
"ts-node": "10.8.1",
"typescript": "4.6.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"declarationMap": true,
"target": "es2015",
"target": "es2020",
"declaration": true,
"inlineSources": true,
"types": [],
Expand Down
4 changes: 2 additions & 2 deletions examples/jest/simple-app/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@
}
}
},
"defaultProject": "simple-app",
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": false
}
}
28 changes: 14 additions & 14 deletions examples/jest/simple-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@
},
"private": true,
"dependencies": {
"@angular/animations": "13.3.9",
"@angular/common": "13.3.9",
"@angular/compiler": "13.3.9",
"@angular/core": "13.3.9",
"@angular/forms": "13.3.9",
"@angular/platform-browser": "13.3.9",
"@angular/platform-browser-dynamic": "13.3.9",
"@angular/router": "13.3.9",
"@angular/animations": "14.0.0",
"@angular/common": "14.0.0",
"@angular/compiler": "14.0.0",
"@angular/core": "14.0.0",
"@angular/forms": "14.0.0",
"@angular/platform-browser": "14.0.0",
"@angular/platform-browser-dynamic": "14.0.0",
"@angular/router": "14.0.0",
"rxjs": "7.5.5",
"tslib": "2.3.1",
"zone.js": "0.11.5"
},
"devDependencies": {
"@angular-builders/jest": "^13.0.4",
"@angular-devkit/build-angular": "13.3.7",
"@angular/cli": "13.3.7",
"@angular/compiler-cli": "13.3.9",
"@angular/language-service": "13.3.9",
"@angular-devkit/build-angular": "14.0.0",
"@angular/cli": "14.0.0",
"@angular/compiler-cli": "14.0.0",
"@angular/language-service": "14.0.0",
"@types/jasmine": "3.10.3",
"@types/node": "16.11.25",
"cypress": "9.6.1",
"jasmine-core": "4.0.1",
"jest": "27.5.1",
"jest": "28.1.0",
"jest-junit": "13.0.0",
"ts-node": "10.5.0",
"ts-node": "10.8.1",
"typescript": "4.6.4"
}
}
14 changes: 8 additions & 6 deletions examples/jest/simple-app/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { TestBed, async } from '@angular/core/testing';
import { TestBed, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component';

describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [AppComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [AppComponent],
}).compileComponents();
})
);

it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
Expand Down
4 changes: 2 additions & 2 deletions examples/timestamp/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@
}
}
},
"defaultProject": "example",
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": false
}
}
Loading

0 comments on commit 3b09c27

Please sign in to comment.