Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 85e22e8

Browse files
committed
build: upgrade Angular to 12 and Cesium to 1.82
1 parent 1734fb0 commit 85e22e8

File tree

16 files changed

+10434
-12648
lines changed

16 files changed

+10434
-12648
lines changed

‎.browserslistrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
last 1 Chrome version
1212
last 1 Firefox version
1313
last 2 Edge major versions
14-
last 2 Safari major version
14+
last 2 Safari major versions
1515
last 2 iOS major versions
1616
Firefox ESR
1717
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.

‎angular.json‎

Lines changed: 32 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"projects": {
66
"cesium-angular-example": {
77
"projectType": "application",
8-
"schematics": {},
8+
"schematics": {
9+
"@schematics/angular:application": {
10+
"strict": true
11+
}
12+
},
913
"root": "",
1014
"sourceRoot": "src",
1115
"prefix": "app",
@@ -18,7 +22,6 @@
1822
"main": "src/main.ts",
1923
"polyfills": "src/polyfills.ts",
2024
"tsConfig": "tsconfig.app.json",
21-
"aot": true,
2225
"assets": [
2326
"src/favicon.ico",
2427
"src/assets",
@@ -39,33 +42,36 @@
3942
},
4043
"configurations": {
4144
"production": {
42-
"fileReplacements": [
43-
{
44-
"replace": "src/environments/environment.ts",
45-
"with": "src/environments/environment.prod.ts"
46-
}
47-
],
48-
"optimization": true,
49-
"outputHashing": "all",
50-
"sourceMap": false,
51-
"namedChunks": false,
52-
"extractLicenses": true,
53-
"vendorChunk": false,
54-
"buildOptimizer": true,
5545
"budgets": [
5646
{
5747
"type": "initial",
58-
"maximumWarning": "2mb",
59-
"maximumError": "5mb"
48+
"maximumWarning": "500kb",
49+
"maximumError": "1mb"
6050
},
6151
{
6252
"type": "anyComponentStyle",
63-
"maximumWarning": "6kb",
64-
"maximumError": "10kb"
53+
"maximumWarning": "2kb",
54+
"maximumError": "4kb"
6555
}
66-
]
56+
],
57+
"fileReplacements": [
58+
{
59+
"replace": "src/environments/environment.ts",
60+
"with": "src/environments/environment.prod.ts"
61+
}
62+
],
63+
"outputHashing": "all"
64+
},
65+
"development": {
66+
"buildOptimizer": false,
67+
"optimization": false,
68+
"vendorChunk": true,
69+
"extractLicenses": false,
70+
"sourceMap": true,
71+
"namedChunks": true
6772
}
68-
}
73+
},
74+
"defaultConfiguration": "production"
6975
},
7076
"serve": {
7177
"builder": "@angular-builders/custom-webpack:dev-server",
@@ -75,8 +81,12 @@
7581
"configurations": {
7682
"production": {
7783
"browserTarget": "cesium-angular-example:build:production"
84+
},
85+
"development": {
86+
"browserTarget": "cesium-angular-example:build:development"
7887
}
79-
}
88+
},
89+
"defaultConfiguration": "development"
8090
},
8191
"extract-i18n": {
8292
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -106,31 +116,6 @@
106116
],
107117
"scripts": []
108118
}
109-
},
110-
"lint": {
111-
"builder": "@angular-devkit/build-angular:tslint",
112-
"options": {
113-
"tsConfig": [
114-
"tsconfig.app.json",
115-
"tsconfig.spec.json",
116-
"e2e/tsconfig.json"
117-
],
118-
"exclude": [
119-
"**/node_modules/**"
120-
]
121-
}
122-
},
123-
"e2e": {
124-
"builder": "@angular-devkit/build-angular:protractor",
125-
"options": {
126-
"protractorConfig": "e2e/protractor.conf.js",
127-
"devServerTarget": "cesium-angular-example:serve"
128-
},
129-
"configurations": {
130-
"production": {
131-
"devServerTarget": "cesium-angular-example:serve:production"
132-
}
133-
}
134119
}
135120
}
136121
}

‎e2e/protractor.conf.js‎

Lines changed: 0 additions & 37 deletions
This file was deleted.

‎e2e/src/app.e2e-spec.ts‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎e2e/src/app.po.ts‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎e2e/tsconfig.json‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎extra-webpack.config.js‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
module.exports = {
2-
node: {
3-
fs: "empty",
4-
Buffer: false,
5-
http: "empty",
6-
https: "empty",
7-
zlib: "empty"
2+
resolve: {
3+
fallback: {
4+
fs: "empty",
5+
Buffer: false,
6+
http: "empty",
7+
https: "empty",
8+
zlib: "empty"
9+
}
810
},
911
module: {
1012
unknownContextCritical: false

‎karma.conf.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ module.exports = function (config) {
1313
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
1622
clearContext: false // leave Jasmine Spec Runner output visible in browser
1723
},
1824
jasmineHtmlReporter: {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /