From 654bf072e7580eb486d4f64d79393d9787967a26 Mon Sep 17 00:00:00 2001 From: JeB Date: Wed, 19 Feb 2020 17:33:43 +0200 Subject: [PATCH 1/3] chore: update package dependencies --- package.json | 4 ++-- packages/custom-webpack/package.json | 6 +++--- packages/jest/package.json | 4 ++-- packages/timestamp/package.json | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index dde2b1924..ec99b3536 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "clean": "npx lerna clean" }, "devDependencies": { - "@angular/compiler": "^9.0.0-rc.5", - "@angular/compiler-cli": "^9.0.0-rc.5", + "@angular/compiler": "^9.0.0", + "@angular/compiler-cli": "^9.0.0", "@commitlint/cli": "^8.3.3", "@commitlint/config-conventional": "^8.3.3", "@types/jest": "^25.1.0", diff --git a/packages/custom-webpack/package.json b/packages/custom-webpack/package.json index 71d193f94..2bb0ea5a3 100644 --- a/packages/custom-webpack/package.json +++ b/packages/custom-webpack/package.json @@ -36,9 +36,9 @@ }, "builders": "builders.json", "dependencies": { - "@angular-devkit/architect": "^0.900.0-rc.2", - "@angular-devkit/build-angular": "^0.900.0-rc.2", - "@angular-devkit/core": "^9.0.0-rc.2", + "@angular-devkit/architect": "^0.900.0", + "@angular-devkit/build-angular": "^0.900.0", + "@angular-devkit/core": "^9.0.0", "lodash": "^4.17.10", "ts-node": "^8.5.2", "webpack-merge": "^4.2.1" diff --git a/packages/jest/package.json b/packages/jest/package.json index 803fdc513..107d74c9a 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -38,8 +38,8 @@ "ci": "./scripts/ci.sh" }, "dependencies": { - "@angular-devkit/architect": "^0.900.0-rc.2", - "@angular-devkit/core": "^9.0.0-rc.2", + "@angular-devkit/architect": "^0.900.0", + "@angular-devkit/core": "^9.0.0", "jest-preset-angular": "^8.0.0", "lodash": "^4.17.10" }, diff --git a/packages/timestamp/package.json b/packages/timestamp/package.json index cc3cdd29e..04eed1312 100644 --- a/packages/timestamp/package.json +++ b/packages/timestamp/package.json @@ -28,8 +28,8 @@ "@types/dateformat": "^3.0.0" }, "dependencies": { - "@angular-devkit/architect": "^0.900.0-rc.2", - "@angular-devkit/core": "^9.0.0-rc.2", + "@angular-devkit/architect": "^0.900.0", + "@angular-devkit/core": "^9.0.0", "dateformat": "^3.0.3" } } From b7d6b482ebd90e10dc6f70ccf1892b07a4431011 Mon Sep 17 00:00:00 2001 From: JeB Date: Wed, 19 Feb 2020 17:41:19 +0200 Subject: [PATCH 2/3] chore: update example dependencies --- .../examples/full-cycle-app/package.json | 26 ++++++++--------- .../examples/sanity-app/package.json | 26 ++++++++--------- .../jest/examples/multiple-apps/package.json | 28 +++++++++---------- .../jest/examples/simple-app/package.json | 26 ++++++++--------- packages/timestamp/example/package.json | 24 ++++++++-------- 5 files changed, 65 insertions(+), 65 deletions(-) diff --git a/packages/custom-webpack/examples/full-cycle-app/package.json b/packages/custom-webpack/examples/full-cycle-app/package.json index b05f65707..309c79c01 100644 --- a/packages/custom-webpack/examples/full-cycle-app/package.json +++ b/packages/custom-webpack/examples/full-cycle-app/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "~9.0.0-rc.5", - "@angular/common": "~9.0.0-rc.5", - "@angular/compiler": "~9.0.0-rc.5", - "@angular/core": "~9.0.0-rc.5", - "@angular/forms": "~9.0.0-rc.5", - "@angular/platform-browser": "~9.0.0-rc.5", - "@angular/platform-browser-dynamic": "~9.0.0-rc.5", - "@angular/router": "~9.0.0-rc.5", + "@angular/animations": "^9.0.0", + "@angular/common": "^9.0.0", + "@angular/compiler": "^9.0.0", + "@angular/core": "^9.0.0", + "@angular/forms": "^9.0.0", + "@angular/platform-browser": "^9.0.0", + "@angular/platform-browser-dynamic": "^9.0.0", + "@angular/router": "^9.0.0", "rxjs": "~6.5.2", "tslib": "^1.10.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-builders/custom-webpack": "latest", - "@angular-devkit/build-angular": "~0.900.0-rc.5", - "@angular/cli": "^9.0.0-rc.5", - "@angular/compiler-cli": "~9.0.0-rc.5", - "@angular/language-service": "~9.0.0-rc.5", + "@angular-devkit/build-angular": "^0.900.0", + "@angular/cli": "^9.0.0", + "@angular/compiler-cli": "^9.0.0", + "@angular/language-service": "^9.0.0", "@types/jasmine": "~3.3.13", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", @@ -44,6 +44,6 @@ "protractor": "^5.4.2", "ts-node": "~8.1.1", "tslint": "~5.16.0", - "typescript": "~3.6.4" + "typescript": "~3.7.5" } } diff --git a/packages/custom-webpack/examples/sanity-app/package.json b/packages/custom-webpack/examples/sanity-app/package.json index ffa16846e..f6c3ce28d 100644 --- a/packages/custom-webpack/examples/sanity-app/package.json +++ b/packages/custom-webpack/examples/sanity-app/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "~9.0.0-rc.5", - "@angular/common": "~9.0.0-rc.5", - "@angular/compiler": "~9.0.0-rc.5", - "@angular/core": "~9.0.0-rc.5", - "@angular/forms": "~9.0.0-rc.5", - "@angular/platform-browser": "~9.0.0-rc.5", - "@angular/platform-browser-dynamic": "~9.0.0-rc.5", - "@angular/router": "~9.0.0-rc.5", + "@angular/animations": "^9.0.0", + "@angular/common": "^9.0.0", + "@angular/compiler": "^9.0.0", + "@angular/core": "^9.0.0", + "@angular/forms": "^9.0.0", + "@angular/platform-browser": "^9.0.0", + "@angular/platform-browser-dynamic": "^9.0.0", + "@angular/router": "^9.0.0", "rxjs": "~6.5.2", "tslib": "^1.10.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-builders/custom-webpack": "latest", - "@angular-devkit/build-angular": "~0.900.0-rc.5", - "@angular/cli": "^9.0.0-rc.5", - "@angular/compiler-cli": "~9.0.0-rc.5", - "@angular/language-service": "~9.0.0-rc.5", + "@angular-devkit/build-angular": "^0.900.0", + "@angular/cli": "^9.0.0", + "@angular/compiler-cli": "^9.0.0", + "@angular/language-service": "^9.0.0", "@types/jasmine": "~3.3.13", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", @@ -43,6 +43,6 @@ "protractor": "^5.4.2", "ts-node": "~8.2.0", "tslint": "~5.16.0", - "typescript": "~3.6.4" + "typescript": "~3.7.5" } } diff --git a/packages/jest/examples/multiple-apps/package.json b/packages/jest/examples/multiple-apps/package.json index 2eb158b52..78943b810 100644 --- a/packages/jest/examples/multiple-apps/package.json +++ b/packages/jest/examples/multiple-apps/package.json @@ -11,25 +11,25 @@ }, "private": true, "dependencies": { - "@angular/animations": "~9.0.0-rc.5", - "@angular/common": "~9.0.0-rc.5", - "@angular/compiler": "~9.0.0-rc.5", - "@angular/core": "~9.0.0-rc.5", - "@angular/forms": "~9.0.0-rc.5", - "@angular/platform-browser": "~9.0.0-rc.5", - "@angular/platform-browser-dynamic": "~9.0.0-rc.5", - "@angular/router": "~9.0.0-rc.5", + "@angular/animations": "^9.0.0", + "@angular/common": "^9.0.0", + "@angular/compiler": "^9.0.0", + "@angular/core": "^9.0.0", + "@angular/forms": "^9.0.0", + "@angular/platform-browser": "^9.0.0", + "@angular/platform-browser-dynamic": "^9.0.0", + "@angular/router": "^9.0.0", "rxjs": "~6.5.2", "tslib": "^1.10.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-builders/jest": "latest", - "@angular-devkit/build-angular": "~0.900.0-rc.5", - "@angular-devkit/build-ng-packagr": "~0.900.0-rc.5", - "@angular/cli": "^9.0.0-rc.5", - "@angular/compiler-cli": "~9.0.0-rc.5", - "@angular/language-service": "~9.0.0-rc.5", + "@angular-devkit/build-angular": "^0.900.0", + "@angular-devkit/build-ng-packagr": "^0.900.0", + "@angular/cli": "^9.0.0", + "@angular/compiler-cli": "^9.0.0", + "@angular/language-service": "^9.0.0", "@types/jasmine": "~3.3.13", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", @@ -41,6 +41,6 @@ "protractor": "^5.4.2", "ts-node": "~8.2.0", "tslint": "~5.16.0", - "typescript": "~3.6.4" + "typescript": "~3.7.5" } } diff --git a/packages/jest/examples/simple-app/package.json b/packages/jest/examples/simple-app/package.json index 7ffcb8bff..7edf1d12d 100644 --- a/packages/jest/examples/simple-app/package.json +++ b/packages/jest/examples/simple-app/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "~9.0.0-rc.5", - "@angular/common": "~9.0.0-rc.5", - "@angular/compiler": "~9.0.0-rc.5", - "@angular/core": "~9.0.0-rc.5", - "@angular/forms": "~9.0.0-rc.5", - "@angular/platform-browser": "~9.0.0-rc.5", - "@angular/platform-browser-dynamic": "~9.0.0-rc.5", - "@angular/router": "~9.0.0-rc.5", + "@angular/animations": "^9.0.0", + "@angular/common": "^9.0.0", + "@angular/compiler": "^9.0.0", + "@angular/core": "^9.0.0", + "@angular/forms": "^9.0.0", + "@angular/platform-browser": "^9.0.0", + "@angular/platform-browser-dynamic": "^9.0.0", + "@angular/router": "^9.0.0", "rxjs": "~6.5.2", "tslib": "^1.10.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-builders/jest": "latest", - "@angular-devkit/build-angular": "~0.900.0-rc.5", - "@angular/cli": "^9.0.0-rc.5", - "@angular/compiler-cli": "~9.0.0-rc.5", - "@angular/language-service": "~9.0.0-rc.5", + "@angular-devkit/build-angular": "^0.900.0", + "@angular/cli": "^9.0.0", + "@angular/compiler-cli": "^9.0.0", + "@angular/language-service": "^9.0.0", "@types/jasmine": "~3.3.13", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", @@ -40,6 +40,6 @@ "protractor": "^5.4.2", "ts-node": "~8.2.0", "tslint": "~5.16.0", - "typescript": "~3.6.4" + "typescript": "~3.7.5" } } diff --git a/packages/timestamp/example/package.json b/packages/timestamp/example/package.json index 69cd6df00..30259f035 100644 --- a/packages/timestamp/example/package.json +++ b/packages/timestamp/example/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "~9.0.0-rc.5", - "@angular/common": "~9.0.0-rc.5", - "@angular/compiler": "~9.0.0-rc.5", - "@angular/core": "~9.0.0-rc.5", - "@angular/forms": "~9.0.0-rc.5", - "@angular/platform-browser": "~9.0.0-rc.5", - "@angular/platform-browser-dynamic": "~9.0.0-rc.5", - "@angular/router": "~9.0.0-rc.5", + "@angular/animations": "^9.0.0", + "@angular/common": "^9.0.0", + "@angular/compiler": "^9.0.0", + "@angular/core": "^9.0.0", + "@angular/forms": "^9.0.0", + "@angular/platform-browser": "^9.0.0", + "@angular/platform-browser-dynamic": "^9.0.0", + "@angular/router": "^9.0.0", "rxjs": "~6.5.2", "tslib": "^1.10.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-builders/timestamp": "latest", - "@angular-devkit/build-angular": "~0.900.0-rc.5", - "@angular/cli": "^9.0.0-rc.5", - "@angular/compiler-cli": "~9.0.0-rc.5", - "@angular/language-service": "~9.0.0-rc.5", + "@angular-devkit/build-angular": "^0.900.0", + "@angular/cli": "^9.0.0", + "@angular/compiler-cli": "^9.0.0", + "@angular/language-service": "^9.0.0", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^13.1.4", From 2fddb59485135e5b6e169f8f8c8532e1a614425a Mon Sep 17 00:00:00 2001 From: JeB Date: Wed, 19 Feb 2020 18:13:55 +0200 Subject: [PATCH 3/3] docs: update README and MIGRATION --- MIGRATION.MD | 2 ++ README.md | 6 ++++-- packages/jest/README.md | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/MIGRATION.MD b/MIGRATION.MD index c3944953a..c82f71a25 100644 --- a/MIGRATION.MD +++ b/MIGRATION.MD @@ -6,6 +6,8 @@ ## Jest builder 1. jest-preset-angular version has been updated to 8. If you have any custom Jest configuration, make sure it matches the preset [version](https://github.com/thymikee/jest-preset-angular/releases/tag/v8.0.0). +2. If you're using Ivy (enabled by default in version 9) make sure you run `ngcc` in a `postinstall` hook. For more details refer to [this](https://github.com/just-jeb/angular-builders/issues/679#issuecomment-587525674) issue. + # Migration from version 7 to version 8 ## Custom webpack builder diff --git a/README.md b/README.md index c7143e7f0..7fe9a3059 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,13 @@ 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 8 and incompatible with Angular CLI 7 +## The latest version of all the builders require Angular CLI 9 ## [Documentation for version 7](https://github.com/just-jeb/angular-builders/tree/7.x.x) -## [Migration guide from version 7 to version 8](./MIGRATION.MD) +## [Documentation for version 8](https://github.com/just-jeb/angular-builders/tree/8.x.x) + +## [Migration guide](./MIGRATION.MD) # Builders diff --git a/packages/jest/README.md b/packages/jest/README.md index 9eae29445..4d0c618cf 100644 --- a/packages/jest/README.md +++ b/packages/jest/README.md @@ -54,6 +54,10 @@ The builder comes to provide zero configuration setup for Jest while keeping the ``` - Run the tests: `ng test` +## Ivy compatibility + +Ivy compiler is enabled by default in version 9 so if you use it, make sure you run `ngcc` in a `postinstall` hook. For more details refer to [this](https://github.com/just-jeb/angular-builders/issues/679#issuecomment-587525674) issue. + ## Multi-projects workspace support The builder supports multi-project workspaces out of the box, the only thing required is editing _tsconfig.spec.json_ in the relevant project directory as described [above](#updating-typescript-configurations).