Skip to content

Commit e1e556c

Browse files
update angular
1 parent 215ac36 commit e1e556c

File tree

9 files changed

+27831
-25620
lines changed

9 files changed

+27831
-25620
lines changed

SampleApp/angular.json

Lines changed: 154 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,155 @@
1-
{
2-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"version": 1,
4-
"newProjectRoot": "projects",
5-
"projects": {
6-
"ng6SampleApp": {
7-
"root": "",
8-
"sourceRoot": "src",
9-
"projectType": "application",
10-
"prefix": "app",
11-
"schematics": {
12-
"@schematics/angular:component": {
13-
"styleext": "scss",
14-
"spec": false
15-
},
16-
"@schematics/angular:class": {
17-
"spec": false
18-
},
19-
"@schematics/angular:directive": {
20-
"spec": false
21-
},
22-
"@schematics/angular:guard": {
23-
"spec": false
24-
},
25-
"@schematics/angular:module": {
26-
"spec": false
27-
},
28-
"@schematics/angular:pipe": {
29-
"spec": false
30-
},
31-
"@schematics/angular:service": {
32-
"spec": false
33-
}
34-
},
35-
"architect": {
36-
"build": {
37-
"builder": "@angular-devkit/build-angular:browser",
38-
"options": {
39-
"outputPath": "dist/ng6SampleApp",
40-
"index": "src/index.html",
41-
"main": "src/main.ts",
42-
"polyfills": "src/polyfills.ts",
43-
"tsConfig": "src/tsconfig.app.json",
44-
"assets": [
45-
"src/favicon.ico",
46-
"src/assets",
47-
{
48-
"glob": "**/*",
49-
"input": "node_modules/ng2-pdfjs-viewer/pdfjs",
50-
"output": "/assets/pdfjs"
51-
}
52-
],
53-
"styles": [
54-
"./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
55-
"src/styles.scss"
56-
],
57-
"scripts": []
58-
},
59-
"configurations": {
60-
"production": {
61-
"fileReplacements": [
62-
{
63-
"replace": "src/environments/environment.ts",
64-
"with": "src/environments/environment.prod.ts"
65-
}
66-
],
67-
"optimization": true,
68-
"outputHashing": "all",
69-
"sourceMap": false,
70-
"extractCss": true,
71-
"namedChunks": false,
72-
"aot": true,
73-
"extractLicenses": true,
74-
"vendorChunk": false,
75-
"buildOptimizer": true
76-
}
77-
}
78-
},
79-
"serve": {
80-
"builder": "@angular-devkit/build-angular:dev-server",
81-
"options": {
82-
"browserTarget": "ng6SampleApp:build"
83-
},
84-
"configurations": {
85-
"production": {
86-
"browserTarget": "ng6SampleApp:build:production"
87-
}
88-
}
89-
},
90-
"extract-i18n": {
91-
"builder": "@angular-devkit/build-angular:extract-i18n",
92-
"options": {
93-
"browserTarget": "ng6SampleApp:build"
94-
}
95-
},
96-
"test": {
97-
"builder": "@angular-devkit/build-angular:karma",
98-
"options": {
99-
"main": "src/test.ts",
100-
"polyfills": "src/polyfills.ts",
101-
"tsConfig": "src/tsconfig.spec.json",
102-
"karmaConfig": "src/karma.conf.js",
103-
"styles": [
104-
"./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
105-
"src/styles.scss"
106-
],
107-
"scripts": [],
108-
"assets": [
109-
"src/favicon.ico",
110-
"src/assets"
111-
]
112-
}
113-
},
114-
"lint": {
115-
"builder": "@angular-devkit/build-angular:tslint",
116-
"options": {
117-
"tsConfig": [
118-
"src/tsconfig.app.json",
119-
"src/tsconfig.spec.json"
120-
],
121-
"exclude": [
122-
"**/node_modules/**"
123-
]
124-
}
125-
}
126-
}
127-
},
128-
"ng6SampleApp-e2e": {
129-
"root": "e2e/",
130-
"projectType": "application",
131-
"architect": {
132-
"e2e": {
133-
"builder": "@angular-devkit/build-angular:protractor",
134-
"options": {
135-
"protractorConfig": "e2e/protractor.conf.js",
136-
"devServerTarget": "ng6SampleApp:serve"
137-
}
138-
},
139-
"lint": {
140-
"builder": "@angular-devkit/build-angular:tslint",
141-
"options": {
142-
"tsConfig": "e2e/tsconfig.e2e.json",
143-
"exclude": [
144-
"**/node_modules/**"
145-
]
146-
}
147-
}
148-
}
149-
}
150-
}
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ng6SampleApp": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {
12+
"@schematics/angular:component": {
13+
"styleext": "scss",
14+
"spec": false
15+
},
16+
"@schematics/angular:class": {
17+
"spec": false
18+
},
19+
"@schematics/angular:directive": {
20+
"spec": false
21+
},
22+
"@schematics/angular:guard": {
23+
"spec": false
24+
},
25+
"@schematics/angular:module": {
26+
"spec": false
27+
},
28+
"@schematics/angular:pipe": {
29+
"spec": false
30+
},
31+
"@schematics/angular:service": {
32+
"spec": false
33+
}
34+
},
35+
"architect": {
36+
"build": {
37+
"builder": "@angular-devkit/build-angular:browser",
38+
"options": {
39+
"outputPath": "dist/ng6SampleApp",
40+
"index": "src/index.html",
41+
"main": "src/main.ts",
42+
"polyfills": [
43+
"zone.js"
44+
],
45+
"tsConfig": "src/tsconfig.app.json",
46+
"assets": [
47+
"src/favicon.ico",
48+
"src/assets",
49+
{
50+
"glob": "**/*",
51+
"input": "node_modules/ng2-pdfjs-viewer/pdfjs",
52+
"output": "/assets/pdfjs"
53+
}
54+
],
55+
"styles": [
56+
"./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
57+
"src/styles.scss"
58+
],
59+
"scripts": []
60+
},
61+
"configurations": {
62+
"production": {
63+
"fileReplacements": [
64+
{
65+
"replace": "src/environments/environment.ts",
66+
"with": "src/environments/environment.prod.ts"
67+
}
68+
],
69+
"optimization": true,
70+
"outputHashing": "all",
71+
"sourceMap": false,
72+
"extractCss": true,
73+
"namedChunks": false,
74+
"aot": true,
75+
"extractLicenses": true,
76+
"vendorChunk": false,
77+
"buildOptimizer": true
78+
}
79+
}
80+
},
81+
"serve": {
82+
"builder": "@angular-devkit/build-angular:dev-server",
83+
"options": {
84+
"buildTarget": "ng6SampleApp:build"
85+
},
86+
"configurations": {
87+
"production": {
88+
"buildTarget": "ng6SampleApp:build:production"
89+
}
90+
}
91+
},
92+
"extract-i18n": {
93+
"builder": "@angular-devkit/build-angular:extract-i18n",
94+
"options": {
95+
"buildTarget": "ng6SampleApp:build"
96+
}
97+
},
98+
"test": {
99+
"builder": "@angular-devkit/build-angular:karma",
100+
"options": {
101+
"main": "src/test.ts",
102+
"polyfills": [
103+
"zone.js"
104+
],
105+
"tsConfig": "src/tsconfig.spec.json",
106+
"karmaConfig": "src/karma.conf.js",
107+
"styles": [
108+
"./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
109+
"src/styles.scss"
110+
],
111+
"scripts": [],
112+
"assets": [
113+
"src/favicon.ico",
114+
"src/assets"
115+
]
116+
}
117+
},
118+
"lint": {
119+
"builder": "@angular-devkit/build-angular:tslint",
120+
"options": {
121+
"tsConfig": [
122+
"src/tsconfig.app.json",
123+
"src/tsconfig.spec.json"
124+
],
125+
"exclude": [
126+
"**/node_modules/**"
127+
]
128+
}
129+
}
130+
}
131+
},
132+
"ng6SampleApp-e2e": {
133+
"root": "e2e/",
134+
"projectType": "application",
135+
"architect": {
136+
"e2e": {
137+
"builder": "@angular-devkit/build-angular:protractor",
138+
"options": {
139+
"protractorConfig": "e2e/protractor.conf.js",
140+
"devServerTarget": "ng6SampleApp:serve"
141+
}
142+
},
143+
"lint": {
144+
"builder": "@angular-devkit/build-angular:tslint",
145+
"options": {
146+
"tsConfig": "e2e/tsconfig.e2e.json",
147+
"exclude": [
148+
"**/node_modules/**"
149+
]
150+
}
151+
}
152+
}
153+
}
154+
}
151155
}

SampleApp/browserslist

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
2-
# For additional information regarding the format and rule options, please see:
3-
# https://github.com/browserslist/browserslist#queries
4-
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed
5-
> 0.5%
6-
last 2 versions
7-
Firefox ESR
8-
not dead
9-
# IE 9-11
1+
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed
5+
last 1 Chrome version
6+
last 1 Firefox version
7+
last 2 Edge major versions
8+
last 2 Safari major versions
9+
last 2 iOS major versions
10+
Firefox ESR
11+
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
12+
13+
Chrome >= 80
14+
Edge >= 80
15+
Firefox >= 78
16+
Safari >= 13
17+
iOS >= 13
18+
Opera >= 67

SampleApp/e2e/tsconfig.e2e.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
{
2-
"extends": "../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "../out-tsc/app",
5-
"module": "commonjs",
6-
"target": "es5",
7-
"types": [
8-
"jasmine",
9-
"jasminewd2",
10-
"node"
11-
]
12-
}
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/app",
5+
"module": "commonjs",
6+
"target": "ES2022",
7+
"types": [
8+
"jasmine",
9+
"jasminewd2",
10+
"node"
11+
]
12+
}
1313
}
2.87 MB
Binary file not shown.

0 commit comments

Comments
 (0)