Skip to content

Commit

Permalink
Update Angular to 12
Browse files Browse the repository at this point in the history
- also update Clarity and ngx-markdown to v12
- align jasmine version w/ newly generated v12 project
- regenerate package-lock.json

Commands used
    npx @angular/cli@11 update @angular/core@11 @angular/cli@11 ngx-markdown@11
    npx ng update @clr/angular@5 @clr/icons@5
    npx @angular/cli@12 update @angular/core@12 @angular/cli@12
    npx ng update @clr/angular@12 @clr/icons@12

After the update, the Angular build process emits a few new warnings:
  - A warning about deep imports (caused by the clarity styles).
    For a workaround see: angular/angular#35615 (comment)

  - Warnings about Clarity's usage of the now deprecated SASS division
    operator. For more information see: vmware-archive/clarity#6331
  • Loading branch information
raphinesse committed Mar 23, 2022
1 parent dc328b3 commit e4d7fc6
Show file tree
Hide file tree
Showing 7 changed files with 5,716 additions and 8,550 deletions.
14 changes: 9 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/hobbyfarm-admin",
"index": "src/index.html",
"main": "src/main.ts",
Expand All @@ -42,7 +41,13 @@
"node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js",
"node_modules/ngx-markdown-editor/assets/highlight.js/highlight.min.js",
"node_modules/ngx-markdown-editor/assets/marked.min.js"
]
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"local": {
Expand All @@ -63,9 +68,7 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand All @@ -81,7 +84,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down
Loading

0 comments on commit e4d7fc6

Please sign in to comment.