Skip to content

Commit 35d4152

Browse files
authored
Merge pull request #110 from flowjs/angular-17-migration
Angular 17 support
2 parents 57d83ee + 673246b commit 35d4152

33 files changed

+2783
-2201
lines changed

angular.json

+92-108
Original file line numberDiff line numberDiff line change
@@ -6,113 +6,6 @@
66
"version": 1,
77
"newProjectRoot": "projects",
88
"projects": {
9-
"ngx-flow-demo": {
10-
"root": "",
11-
"sourceRoot": "src",
12-
"projectType": "application",
13-
"prefix": "app",
14-
"schematics": {},
15-
"architect": {
16-
"build": {
17-
"builder": "@angular-devkit/build-angular:browser",
18-
"options": {
19-
"outputPath": "dist/ngx-flow-demo",
20-
"index": "src/index.html",
21-
"main": "src/main.ts",
22-
"polyfills": "src/polyfills.ts",
23-
"tsConfig": "src/tsconfig.app.json",
24-
"assets": [
25-
"src/favicon.ico",
26-
"src/assets"
27-
],
28-
"styles": [
29-
"src/styles.css"
30-
],
31-
"scripts": []
32-
},
33-
"configurations": {
34-
"production": {
35-
"fileReplacements": [
36-
{
37-
"replace": "src/environments/environment.ts",
38-
"with": "src/environments/environment.prod.ts"
39-
}
40-
],
41-
"optimization": false,
42-
"outputHashing": "all",
43-
"sourceMap": true,
44-
"namedChunks": false,
45-
"aot": false,
46-
"extractLicenses": true,
47-
"vendorChunk": false,
48-
"buildOptimizer": false
49-
},
50-
"development": {
51-
"fileReplacements": [
52-
{
53-
"replace": "src/environments/environment.ts",
54-
"with": "src/environments/environment.prod.ts"
55-
}
56-
],
57-
"optimization": false,
58-
"outputHashing": "all",
59-
"sourceMap": true,
60-
"namedChunks": false,
61-
"aot": false,
62-
"extractLicenses": true,
63-
"vendorChunk": false,
64-
"buildOptimizer": false
65-
}
66-
}
67-
},
68-
"serve": {
69-
"builder": "@angular-devkit/build-angular:dev-server",
70-
"options": {
71-
"browserTarget": "ngx-flow-demo:build"
72-
},
73-
"configurations": {
74-
"production": {
75-
"browserTarget": "ngx-flow-demo:build:browser"
76-
}
77-
}
78-
},
79-
"extract-i18n": {
80-
"builder": "@angular-devkit/build-angular:extract-i18n",
81-
"options": {
82-
"browserTarget": "ngx-flow-demo:build"
83-
}
84-
},
85-
"test": {
86-
"builder": "@angular-devkit/build-angular:karma",
87-
"options": {
88-
"main": "src/test.ts",
89-
"polyfills": "src/polyfills.ts",
90-
"tsConfig": "src/tsconfig.spec.json",
91-
"karmaConfig": "src/karma.conf.js",
92-
"styles": [
93-
"src/styles.css"
94-
],
95-
"scripts": [],
96-
"assets": [
97-
"src/favicon.ico",
98-
"src/assets"
99-
]
100-
}
101-
},
102-
"lint": {
103-
"builder": "@angular-devkit/build-angular:tslint",
104-
"options": {
105-
"tsConfig": [
106-
"src/tsconfig.app.json",
107-
"src/tsconfig.spec.json"
108-
],
109-
"exclude": [
110-
"**/node_modules/**"
111-
]
112-
}
113-
}
114-
}
115-
},
1169
"ngx-flow": {
11710
"projectType": "library",
11811
"root": "projects/ngx-flow",
@@ -137,12 +30,103 @@
13730
"test": {
13831
"builder": "@angular-devkit/build-angular:karma",
13932
"options": {
140-
"main": "projects/ngx-flow/src/test.ts",
33+
"polyfills": [
34+
"zone.js",
35+
"zone.js/testing"
36+
],
14137
"tsConfig": "projects/ngx-flow/tsconfig.spec.json",
14238
"karmaConfig": "projects/ngx-flow/karma.conf.js"
14339
}
14440
}
14541
}
42+
},
43+
"ngx-flow-demo": {
44+
"projectType": "application",
45+
"schematics": {},
46+
"root": "projects/ngx-flow-demo",
47+
"sourceRoot": "projects/ngx-flow-demo/src",
48+
"prefix": "app",
49+
"architect": {
50+
"build": {
51+
"builder": "@angular-devkit/build-angular:application",
52+
"options": {
53+
"outputPath": "dist/ngx-flow-demo",
54+
"index": "projects/ngx-flow-demo/src/index.html",
55+
"browser": "projects/ngx-flow-demo/src/main.ts",
56+
"polyfills": [
57+
"zone.js"
58+
],
59+
"tsConfig": "projects/ngx-flow-demo/tsconfig.app.json",
60+
"assets": [
61+
"projects/ngx-flow-demo/src/favicon.ico",
62+
"projects/ngx-flow-demo/src/assets"
63+
],
64+
"styles": [
65+
"projects/ngx-flow-demo/src/styles.css"
66+
],
67+
"scripts": []
68+
},
69+
"configurations": {
70+
"production": {
71+
"budgets": [
72+
{
73+
"type": "initial",
74+
"maximumWarning": "500kb",
75+
"maximumError": "1mb"
76+
},
77+
{
78+
"type": "anyComponentStyle",
79+
"maximumWarning": "2kb",
80+
"maximumError": "4kb"
81+
}
82+
],
83+
"outputHashing": "all"
84+
},
85+
"development": {
86+
"optimization": false,
87+
"extractLicenses": false,
88+
"sourceMap": true
89+
}
90+
},
91+
"defaultConfiguration": "production"
92+
},
93+
"serve": {
94+
"builder": "@angular-devkit/build-angular:dev-server",
95+
"configurations": {
96+
"production": {
97+
"buildTarget": "ngx-flow-demo:build:production"
98+
},
99+
"development": {
100+
"buildTarget": "ngx-flow-demo:build:development"
101+
}
102+
},
103+
"defaultConfiguration": "development"
104+
},
105+
"extract-i18n": {
106+
"builder": "@angular-devkit/build-angular:extract-i18n",
107+
"options": {
108+
"buildTarget": "ngx-flow-demo:build"
109+
}
110+
},
111+
"test": {
112+
"builder": "@angular-devkit/build-angular:karma",
113+
"options": {
114+
"polyfills": [
115+
"zone.js",
116+
"zone.js/testing"
117+
],
118+
"tsConfig": "projects/ngx-flow-demo/tsconfig.spec.json",
119+
"assets": [
120+
"projects/ngx-flow-demo/src/favicon.ico",
121+
"projects/ngx-flow-demo/src/assets"
122+
],
123+
"styles": [
124+
"projects/ngx-flow-demo/src/styles.css"
125+
],
126+
"scripts": []
127+
}
128+
}
129+
}
146130
}
147131
}
148132
}

browserslist

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@
44
#
55
# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed
66

7-
> 0.5%
8-
last 2 versions
9-
Firefox ESR
10-
not dead
11-
not IE 9-11
7+
defaults

0 commit comments

Comments
 (0)