Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

Commit 9efeb8f

Browse files
committed
feat: upgrade to angular 10
BREAKING CHANGE: requires angular 10
1 parent 5ab8547 commit 9efeb8f

20 files changed

+1557
-1601
lines changed

browserslist renamed to .browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
# npx browserslist
77

88
> 5%
9+
not IE 9-11

angular.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,27 @@
55
"projects": {
66
"ngx-github-buttons": {
77
"projectType": "application",
8-
"schematics": {},
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
},
12+
"@schematics/angular:application": {
13+
"strict": true
14+
}
15+
},
916
"root": "",
1017
"sourceRoot": "src",
1118
"prefix": "app",
1219
"architect": {
1320
"build": {
1421
"builder": "@angular-devkit/build-angular:browser",
1522
"options": {
16-
"aot": true,
1723
"outputPath": "dist",
1824
"index": "src/index.html",
1925
"main": "src/main.ts",
2026
"polyfills": "src/polyfills.ts",
2127
"tsConfig": "tsconfig.app.json",
28+
"aot": true,
2229
"assets": [
2330
"src/favicon.ico",
2431
"src/assets"
@@ -47,12 +54,13 @@
4754
"budgets": [
4855
{
4956
"type": "initial",
50-
"maximumWarning": "2mb",
51-
"maximumError": "5mb"
57+
"maximumWarning": "500kb",
58+
"maximumError": "1mb"
5259
},
5360
{
5461
"type": "anyComponentStyle",
55-
"maximumWarning": "6kb"
62+
"maximumWarning": "2kb",
63+
"maximumError": "4kb"
5664
}
5765
]
5866
}
@@ -61,8 +69,7 @@
6169
"serve": {
6270
"builder": "@angular-devkit/build-angular:dev-server",
6371
"options": {
64-
"browserTarget": "ngx-github-buttons:build",
65-
"aot": true
72+
"browserTarget": "ngx-github-buttons:build"
6673
},
6774
"configurations": {
6875
"production": {

karma.conf.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Karma configuration file, see link for more information
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
33

4-
module.exports = function(config) {
4+
module.exports = function (config) {
55
config.set({
66
basePath: '',
77
frameworks: ['jasmine', '@angular-devkit/build-angular'],
@@ -10,29 +10,22 @@ module.exports = function(config) {
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
1212
require('karma-coverage-istanbul-reporter'),
13-
require('karma-mocha-reporter'),
1413
require('@angular-devkit/build-angular/plugins/karma'),
1514
],
1615
client: {
1716
clearContext: false, // leave Jasmine Spec Runner output visible in browser
1817
},
1918
coverageIstanbulReporter: {
20-
dir: require('path').join(__dirname, './coverage'),
19+
dir: require('path').join(__dirname, './coverage/zzz'),
2120
reports: ['html', 'lcovonly', 'text-summary'],
2221
fixWebpackSourcePaths: true,
2322
},
24-
reporters: ['mocha', 'kjhtml'],
23+
reporters: ['progress', 'kjhtml'],
2524
port: 9876,
2625
colors: true,
2726
logLevel: config.LOG_INFO,
2827
autoWatch: true,
2928
browsers: ['Chrome'],
30-
customLaunchers: {
31-
ChromeCI: {
32-
base: `${process.env['TRAVIS'] ? 'ChromeHeadless' : 'Chrome'}`,
33-
flags: process.env['TRAVIS'] ? ['--no-sandbox'] : [],
34-
},
35-
},
3629
singleRun: false,
3730
restartOnFileChange: true,
3831
});

0 commit comments

Comments
 (0)