Skip to content

Commit 99fe6fa

Browse files
Merge pull request #3361 from Tony133/feat/upgrade-angular-v21-standalone-components
feat(): upgrade angular v21.x with standalone components 🔥
2 parents 1b3d1df + 6f5d035 commit 99fe6fa

File tree

215 files changed

+11104
-8481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+11104
-8481
lines changed

.browserslistrc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2-
# For additional information regarding the format and rule options, please see:
3-
# https://github.com/browserslist/browserslist#queries
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below
42

5-
# You can see what browsers were selected by your queries by running:
6-
# npx browserslist
3+
# For additional information regarding the format and rule options, please see
4+
5+
# <https://github.com/browserslist/browserslist#queries>
6+
7+
# You can see what browsers were selected by your queries by running
8+
9+
# npx browserslist
710

811
> 0.5%
912
last 2 versions
1013
Firefox ESR
1114
not dead
12-
not IE 9-11 # For IE 9-11 support, remove 'not'.
15+
not IE 9-11 # For IE 9-11 support, remove 'not'.
16+
not kaios 2.5
17+
not op_mini all

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(The MIT License)
22

3-
Copyright (c) 2017-2025 Kamil Myśliwiec <http://kamilmysliwiec.com>
3+
Copyright (c) 2017-present Kamil Myśliwiec <http://kamilmysliwiec.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

angular.json

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
"projectType": "application",
1010
"architect": {
1111
"build": {
12-
"builder": "@angular-devkit/build-angular:browser",
12+
"builder": "@angular-devkit/build-angular:application",
1313
"options": {
1414
"aot": true,
1515
"allowedCommonJsDependencies": ["prismjs"],
16-
"outputPath": "dist",
17-
"main": "src/main.ts",
16+
"outputPath": {
17+
"base": "dist",
18+
"browser": ""
19+
},
1820
"index": "src/index.html",
1921
"tsConfig": "src/tsconfig.app.json",
2022
"polyfills": ["zone.js"],
@@ -27,7 +29,8 @@
2729
"src/mstile-150x150.png",
2830
"src/_redirects"
2931
],
30-
"styles": ["src/styles.scss"]
32+
"styles": ["src/styles.scss"],
33+
"browser": "src/main.ts"
3134
},
3235
"configurations": {
3336
"production": {
@@ -78,33 +81,38 @@
7881
}
7982
},
8083
"test": {
81-
"builder": "@angular-devkit/build-angular:karma",
82-
"options": {
83-
"main": "src/test.ts",
84-
"karmaConfig": "./karma.conf.js",
85-
"polyfills": ["zone.js"],
86-
"tsConfig": "src/tsconfig.spec.json",
87-
"styles": ["src/styles.scss"],
88-
"assets": ["src/assets"]
89-
}
90-
},
91-
"lint": {
92-
"builder": "@angular-devkit/build-angular:tslint",
93-
"options": {
94-
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
95-
"exclude": ["**/node_modules/**"]
96-
}
84+
"builder": "@angular/build:unit-test"
9785
}
9886
}
9987
}
10088
},
10189
"schematics": {
10290
"@schematics/angular:component": {
10391
"prefix": "app",
104-
"style": "scss"
92+
"style": "scss",
93+
"type": "component"
10594
},
10695
"@schematics/angular:directive": {
107-
"prefix": "app"
96+
"prefix": "app",
97+
"type": "directive"
98+
},
99+
"@schematics/angular:service": {
100+
"type": "service"
101+
},
102+
"@schematics/angular:guard": {
103+
"typeSeparator": "."
104+
},
105+
"@schematics/angular:interceptor": {
106+
"typeSeparator": "."
107+
},
108+
"@schematics/angular:module": {
109+
"typeSeparator": "."
110+
},
111+
"@schematics/angular:pipe": {
112+
"typeSeparator": "."
113+
},
114+
"@schematics/angular:resolver": {
115+
"typeSeparator": "."
108116
}
109117
},
110118
"cli": {

karma.conf.js

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

lighthouserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"categories:seo": [
2121
"error",
22-
{ "minScore": 0.67, "aggregationMethod": "optimistic" }
22+
{ "minScore": 0.5, "aggregationMethod": "optimistic" }
2323
],
2424
"categories:pwa": "off",
2525

0 commit comments

Comments
 (0)