Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
chore: upgrade Angular 8 to 11 (#240)
Browse files Browse the repository at this point in the history
* fix: package.json & package-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-ANGULARCORE-1070902

* Complete pre-requisites: https://update.angular.io/?l=2&v=8.2-11.0

* roll back to "@angular/core": "~8.2.14"

* downgrade zones.js

* upgrade angular to 9

* > If you use TestBed.get, you should instead use TestBed.inject. This new method has the same behavior, but is type safe.

* Run ng update @angular/core@10 @angular/cli@10

* Run ng update @angular/core @angular/cli to upgrade to v11

* remove "karma-coverage-istanbul-reporter"

* remove node-sass (deprecated)

* get coverage & testing working again

* fix tests

* update coverage reporting

* add coveralls back

* build error fixed (routerOptions)

* bump version

* fix coverage reporting on console

* remove gitter - no longer active

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
  • Loading branch information
tboeckmann and snyk-bot committed Feb 15, 2021
1 parent 8f94cda commit 0bf6822
Show file tree
Hide file tree
Showing 37 changed files with 8,908 additions and 5,272 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -2,7 +2,6 @@
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmailchain%2Fmailchain-web.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmailchain%2Fmailchain-web?ref=badge_shield)
[![Build Status](https://travis-ci.com/mailchain/mailchain-web.svg?branch=master)](https://travis-ci.com/mailchain/mailchain-web)
[![Coverage Status](https://coveralls.io/repos/github/mailchain/mailchain-web/badge.svg?branch=master)](https://coveralls.io/github/mailchain/mailchain-web?branch=master)
[![Join the chat at https://gitter.im/Mailchain/community](https://badges.gitter.im/Mailchain/mailchain.svg)](https://gitter.im/Mailchain/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

<!-- @import "[TOC]" {cmd="toc" depthFrom=1 depthTo=6 orderedList=false} -->

Expand Down
9 changes: 6 additions & 3 deletions angular.json
Expand Up @@ -17,6 +17,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/mailchain-web",
"index": "src/index.html",
"main": "src/main.ts",
Expand All @@ -33,8 +34,7 @@
"node_modules/jquery/dist/jquery.js",
"node_modules/popper.js/dist/umd/popper.js",
"node_modules/bootstrap/dist/js/bootstrap.js"
],
"es5BrowserSupport": true
]
},
"configurations": {
"production": {
Expand All @@ -47,7 +47,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
Expand All @@ -58,6 +57,10 @@
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
]
}
Expand Down

0 comments on commit 0bf6822

Please sign in to comment.