Skip to content

Commit 8b0be45

Browse files
committed
feat: upgrade project to Angular 18
1 parent 1723560 commit 8b0be45

File tree

16 files changed

+6486
-5364
lines changed

16 files changed

+6486
-5364
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ trim_trailing_whitespace = true
1010

1111
[*.ts]
1212
quote_type = single
13+
ij_typescript_use_double_quotes = false
1314

1415
[*.md]
1516
max_line_length = off

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# Compiled output
44
/dist

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ cd ngx-annotate-text-workspace/
135135
ng generate library ngx-annotate-text
136136
ng add @angular-eslint/schematics
137137
npm install prettier
138+
ng build ngx-annotate-text
139+
ng lint
140+
ng test ngx-annotate-text
138141
```
139142

140143
### Build

angular.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
"browser": "src/main.ts",
1919
"polyfills": ["zone.js"],
2020
"tsConfig": "tsconfig.app.json",
21-
"assets": ["src/favicon.ico", "src/assets"],
21+
"assets": [
22+
{
23+
"glob": "**/*",
24+
"input": "public"
25+
}
26+
],
2227
"styles": ["src/styles.css"],
2328
"scripts": []
2429
},
@@ -27,13 +32,13 @@
2732
"budgets": [
2833
{
2934
"type": "initial",
30-
"maximumWarning": "500kb",
31-
"maximumError": "1mb"
35+
"maximumWarning": "500kB",
36+
"maximumError": "1MB"
3237
},
3338
{
3439
"type": "anyComponentStyle",
35-
"maximumWarning": "2kb",
36-
"maximumError": "4kb"
40+
"maximumWarning": "2kB",
41+
"maximumError": "4kB"
3742
}
3843
],
3944
"outputHashing": "all"
@@ -59,18 +64,19 @@
5964
"defaultConfiguration": "development"
6065
},
6166
"extract-i18n": {
62-
"builder": "@angular-devkit/build-angular:extract-i18n",
63-
"options": {
64-
"buildTarget": "ngx-annotate-text-workspace:build"
65-
}
67+
"builder": "@angular-devkit/build-angular:extract-i18n"
6668
},
6769
"test": {
6870
"builder": "@angular-devkit/build-angular:karma",
6971
"options": {
7072
"polyfills": ["zone.js", "zone.js/testing"],
7173
"tsConfig": "tsconfig.spec.json",
72-
"karmaConfig": "karma.conf.js",
73-
"assets": ["src/favicon.ico", "src/assets"],
74+
"assets": [
75+
{
76+
"glob": "**/*",
77+
"input": "public"
78+
}
79+
],
7480
"styles": ["src/styles.css"],
7581
"scripts": []
7682
}
@@ -119,8 +125,5 @@
119125
}
120126
}
121127
}
122-
},
123-
"cli": {
124-
"schematicCollections": ["@angular-eslint/schematics"]
125128
}
126129
}

0 commit comments

Comments
 (0)