Skip to content

Commit 53f264c

Browse files
committed
feat(workspace): upgrade to Angular 13
BREAKING CHANGE: Angular 13 support, IVY partial compilation
1 parent 79c73d1 commit 53f264c

24 files changed

+10546
-17280
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ speed-measure-plugin.json
3333
.history/*
3434

3535
# misc
36+
/.angular/cache
3637
/.sass-cache
3738
/connect.lock
3839
/coverage

angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"build": {
4848
"builder": "@angular-devkit/build-angular:browser",
4949
"options": {
50-
"deployUrl": "/elements/",
5150
"baseHref": "/elements/",
5251
"outputPath": "dist/elements-demo",
5352
"index": "projects/elements-demo/src/index.html",

package-lock.json

Lines changed: 10462 additions & 17203 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -42,55 +42,57 @@
4242
},
4343
"private": false,
4444
"dependencies": {
45-
"@angular/animations": "^12.1.0",
46-
"@angular/cdk": "^12.0.0",
47-
"@angular/common": "^12.1.0",
48-
"@angular/compiler": "^12.1.0",
49-
"@angular/core": "^12.1.0",
50-
"@angular/forms": "^12.1.0",
51-
"@angular/material": "^12.0.0",
52-
"@angular/platform-browser": "^12.1.0",
53-
"@angular/platform-browser-dynamic": "^12.1.0",
54-
"@angular/pwa": "^12.0.0",
55-
"@angular/router": "^12.1.0",
56-
"@angular/service-worker": "^12.1.0",
57-
"highlight.js": "^10.2.1",
58-
"ngx-highlightjs": "^4.1.1",
59-
"ngx-markdown": "^12.0.1",
45+
"@angular/animations": "^13.0.2",
46+
"@angular/cdk": "^13.0.2",
47+
"@angular/common": "^13.0.2",
48+
"@angular/compiler": "^13.0.2",
49+
"@angular/core": "^13.0.2",
50+
"@angular/forms": "^13.0.2",
51+
"@angular/material": "^13.0.2",
52+
"@angular/platform-browser": "^13.0.2",
53+
"@angular/platform-browser-dynamic": "^13.0.2",
54+
"@angular/pwa": "^13.0.3",
55+
"@angular/router": "^13.0.2",
56+
"@angular/service-worker": "^13.0.2",
57+
"highlight.js": "^11.3.1",
58+
"ngx-highlightjs": "^6.1.0",
59+
"ngx-markdown": "^13.0.0",
6060
"rxjs": "^6.6.3",
61-
"tslib": "^2.2.0",
61+
"tslib": "^2.3.1",
6262
"zone.js": "~0.11.4"
6363
},
6464
"devDependencies": {
65-
"@angular-builders/jest": "^12.1.0",
66-
"@angular-devkit/build-angular": "^12.1.0",
67-
"@angular-eslint/builder": "12.0.0",
68-
"@angular-eslint/eslint-plugin": "12.0.0",
69-
"@angular-eslint/eslint-plugin-template": "12.0.0",
70-
"@angular-eslint/schematics": "^12.1.0",
71-
"@angular-eslint/template-parser": "12.0.0",
72-
"@angular/cli": "^12.1.0",
73-
"@angular/compiler-cli": "^12.1.0",
65+
"@angular-builders/jest": "^13.0.0",
66+
"@angular-devkit/build-angular": "^13.0.3",
67+
"@angular-eslint/builder": "^13.0.1",
68+
"@angular-eslint/eslint-plugin": "^13.0.1",
69+
"@angular-eslint/eslint-plugin-template": "^13.0.1",
70+
"@angular-eslint/schematics": "^13.0.1",
71+
"@angular-eslint/template-parser": "^13.0.1",
72+
"@angular/cli": "^13.0.3",
73+
"@angular/compiler-cli": "^13.0.2",
7474
"@commitlint/cli": "^11.0.0",
7575
"@commitlint/config-conventional": "^11.0.0",
76-
"@types/jest": "^26.0.23",
76+
"@types/jest": "^27.0.3",
7777
"@types/systemjs": "^6.1.0",
78-
"@typescript-eslint/eslint-plugin": "4.23.0",
79-
"@typescript-eslint/parser": "4.23.0",
78+
"@typescript-eslint/eslint-plugin": "^5.4.0",
79+
"@typescript-eslint/parser": "^5.4.0",
8080
"all-contributors-cli": "^6.17.4",
8181
"compression": "^1.7.4",
8282
"cpx": "^1.5.0",
8383
"cz-conventional-changelog": "^3.3.0",
8484
"eslint": "^7.26.0",
8585
"express": "^4.17.1",
8686
"husky": "^4.3.8",
87-
"jest": "^27.0.6",
88-
"ng-packagr": "^12.0.0",
87+
"jest": "^27.3.1",
88+
"jest-preset-angular": "^11.0.0",
89+
"ng-packagr": "^13.0.6",
8990
"prettier": "^2.3.0",
9091
"pretty-quick": "^3.1.0",
92+
"raw-loader": "^4.0.2",
9193
"replace": "^1.2.0",
9294
"standard-version": "^9.3.0",
93-
"typescript": "4.3.4",
95+
"typescript": "4.4.4",
9496
"webpack-bundle-analyzer": "^4.4.1"
9597
},
9698
"keywords": [

projects/elements-demo/src/app/app.component.scss-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use '~@angular/material' as mat;
1+
@use '@angular/material' as mat;
22

33
@mixin demo-root-component-theme($theme) {
44
$primary: map-get($theme, primary);

projects/elements-demo/src/app/core/core.module.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ToolbarComponent } from './layout/toolbar/toolbar.component';
88
import { NavigationComponent } from './layout/navigation/navigation.component';
99
import { SponsorComponent } from './sponsor/sponsor.component';
1010
import { FooterComponent } from './layout/footer/footer.component';
11+
import { HIGHLIGHT_JS_PROVIDER } from './higlightjs/highlightjs.config';
1112

1213
@NgModule({
1314
declarations: [
@@ -24,18 +25,7 @@ import { FooterComponent } from './layout/footer/footer.component';
2425
// local
2526
SharedModule,
2627
],
27-
providers: [
28-
{
29-
provide: HIGHLIGHT_OPTIONS,
30-
useValue: {
31-
coreLibraryLoader: () => import('highlight.js/lib/core'),
32-
languages: {
33-
typescript: () => import('highlight.js/lib/languages/typescript'),
34-
xml: () => import('highlight.js/lib/languages/xml'),
35-
},
36-
},
37-
},
38-
],
28+
providers: [HIGHLIGHT_JS_PROVIDER],
3929
exports: [
4030
ToolbarComponent,
4131
NavigationComponent,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { HIGHLIGHT_OPTIONS } from 'ngx-highlightjs';
2+
3+
export const HIGHLIGHT_JS_PROVIDER = {
4+
provide: HIGHLIGHT_OPTIONS,
5+
useValue: {
6+
coreLibraryLoader: () => import('highlight.js/lib/core'),
7+
languages: {
8+
typescript: () => import('highlight.js/lib/languages/typescript'),
9+
xml: () => import('highlight.js/lib/languages/xml'),
10+
},
11+
},
12+
};

projects/elements-demo/src/app/core/layout/footer/footer.component.scss-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use '~@angular/material' as mat;
1+
@use '@angular/material' as mat;
22

33
@mixin demo-footer-component-theme($theme) {
44
$primary: map-get($theme, primary);

projects/elements-demo/src/app/core/layout/navigation/navigation.component.scss-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use '~@angular/material' as mat;
1+
@use '@angular/material' as mat;
22

33
@mixin demo-navigation-component-theme($theme) {
44
$primary: map-get($theme, primary);

projects/elements-demo/src/app/features/docs/api/api.component.scss-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use '~@angular/material' as mat;
1+
@use '@angular/material' as mat;
22

33
@mixin demo-api-component-theme($theme) {
44
$primary: map-get($theme, primary);

0 commit comments

Comments
 (0)