Skip to content

Commit 38866ad

Browse files
committed
feat: upgrade to v19
1 parent 5ecc387 commit 38866ad

39 files changed

+7200
-25122
lines changed

.browserslistrc

-12
This file was deleted.

.editorconfig

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Editor configuration, see http://editorconfig.org
1+
# Editor configuration, see https://editorconfig.org
22
root = true
33

44
[*]
@@ -8,6 +8,10 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
1115
[*.md]
1216
max_line_length = off
1317
trim_trailing_whitespace = false

.github/workflows/ci.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v3
15-
- name: NPM Install
16-
uses: bahmutov/npm-install@v1.6.0
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
1717
with:
18-
install-command: npm ci --legacy-peer-deps
18+
node-version: 20
19+
cache: 'yarn'
20+
- name: Install
21+
run: yarn
1922
- name: Build
20-
run: npm run prod
23+
run: yarn build
2124
- name: Deploy to GitHub Pages
2225
if: success()
2326
uses: crazy-max/ghaction-github-pages@v3

.gitignore

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
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

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7+
/bazel-out
78

8-
# dependencies
9+
# Node
910
/node_modules
11+
npm-debug.log
12+
yarn-error.log
1013

1114
# IDEs and editors
12-
/.idea
15+
.idea/
1316
.project
1417
.classpath
1518
.c9/
1619
*.launch
1720
.settings/
1821
*.sublime-workspace
1922

20-
# IDE - VSCode
23+
# Visual Studio Code
2124
.vscode/*
2225
!.vscode/settings.json
2326
!.vscode/tasks.json
2427
!.vscode/launch.json
2528
!.vscode/extensions.json
29+
.history/*
2630

27-
# misc
31+
# Miscellaneous
2832
/.angular/cache
29-
/.sass-cache
33+
.sass-cache/
3034
/connect.lock
3135
/coverage
3236
/libpeerconnection.log
33-
npm-debug.log
34-
yarn-error.log
3537
testem.log
3638
/typings
3739

38-
# System Files
40+
# System files
3941
.DS_Store
4042
Thumbs.db

.prettierrc.js

-7
This file was deleted.

.vscode/settings.json

-3
This file was deleted.

LICENSE

-21
This file was deleted.

README.md

+41-11
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,59 @@
11
# Ngx-Echarts Starter Project
22

3-
A starter project for [ngx-echarts](https://github.com/xieziyu/ngx-echarts)
4-
5-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.8.
3+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.2.
64

75
## Development server
86

9-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
7+
To start a local development server, run:
8+
9+
```bash
10+
ng serve
11+
```
12+
13+
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
1014

1115
## Code scaffolding
1216

13-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
17+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
18+
19+
```bash
20+
ng generate component component-name
21+
```
22+
23+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
24+
25+
```bash
26+
ng generate --help
27+
```
1428

15-
## Build
29+
## Building
1630

17-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
31+
To build the project run:
32+
33+
```bash
34+
ng build
35+
```
36+
37+
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
1838

1939
## Running unit tests
2040

21-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
41+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
42+
43+
```bash
44+
ng test
45+
```
2246

2347
## Running end-to-end tests
2448

25-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
49+
For end-to-end (e2e) testing, run:
50+
51+
```bash
52+
ng e2e
53+
```
54+
55+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
2656

27-
## Further help
57+
## Additional Resources
2858

29-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
59+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.

angular.json

+42-57
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
44
"newProjectRoot": "projects",
5+
"cli": {
6+
"packageManager": "yarn"
7+
},
58
"projects": {
69
"ngx-echarts-starter": {
710
"projectType": "application",
@@ -15,104 +18,86 @@
1518
"prefix": "app",
1619
"architect": {
1720
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
21+
"builder": "@angular-devkit/build-angular:application",
1922
"options": {
2023
"outputPath": "dist/ngx-echarts-starter",
2124
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
25+
"browser": "src/main.ts",
26+
"polyfills": [
27+
"zone.js"
28+
],
2429
"tsConfig": "tsconfig.app.json",
30+
"inlineStyleLanguage": "scss",
2531
"assets": [
26-
"src/favicon.ico",
27-
"src/assets"
32+
{
33+
"glob": "**/*",
34+
"input": "public"
35+
}
2836
],
2937
"styles": [
3038
"src/styles.scss"
3139
],
32-
"scripts": [],
33-
"vendorChunk": true,
34-
"extractLicenses": false,
35-
"buildOptimizer": false,
36-
"sourceMap": true,
37-
"optimization": false,
38-
"namedChunks": true
40+
"scripts": []
3941
},
4042
"configurations": {
4143
"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,
5544
"budgets": [
5645
{
5746
"type": "initial",
58-
"maximumWarning": "2mb",
59-
"maximumError": "5mb"
47+
"maximumWarning": "500kB",
48+
"maximumError": "1MB"
6049
},
6150
{
6251
"type": "anyComponentStyle",
63-
"maximumWarning": "6kb",
64-
"maximumError": "10kb"
52+
"maximumWarning": "4kB",
53+
"maximumError": "8kB"
6554
}
66-
]
55+
],
56+
"outputHashing": "all"
57+
},
58+
"development": {
59+
"optimization": false,
60+
"extractLicenses": false,
61+
"sourceMap": true
6762
}
6863
},
69-
"defaultConfiguration": ""
64+
"defaultConfiguration": "production"
7065
},
7166
"serve": {
7267
"builder": "@angular-devkit/build-angular:dev-server",
73-
"options": {
74-
"browserTarget": "ngx-echarts-starter:build"
75-
},
7668
"configurations": {
7769
"production": {
78-
"browserTarget": "ngx-echarts-starter:build:production"
70+
"buildTarget": "ngx-echarts-starter:build:production"
71+
},
72+
"development": {
73+
"buildTarget": "ngx-echarts-starter:build:development"
7974
}
80-
}
75+
},
76+
"defaultConfiguration": "development"
8177
},
8278
"extract-i18n": {
83-
"builder": "@angular-devkit/build-angular:extract-i18n",
84-
"options": {
85-
"browserTarget": "ngx-echarts-starter:build"
86-
}
79+
"builder": "@angular-devkit/build-angular:extract-i18n"
8780
},
8881
"test": {
8982
"builder": "@angular-devkit/build-angular:karma",
9083
"options": {
91-
"main": "src/test.ts",
92-
"polyfills": "src/polyfills.ts",
84+
"polyfills": [
85+
"zone.js",
86+
"zone.js/testing"
87+
],
9388
"tsConfig": "tsconfig.spec.json",
94-
"karmaConfig": "karma.conf.js",
89+
"inlineStyleLanguage": "scss",
9590
"assets": [
96-
"src/favicon.ico",
97-
"src/assets"
91+
{
92+
"glob": "**/*",
93+
"input": "public"
94+
}
9895
],
9996
"styles": [
10097
"src/styles.scss"
10198
],
10299
"scripts": []
103100
}
104-
},
105-
"e2e": {
106-
"builder": "@angular-devkit/build-angular:protractor",
107-
"options": {
108-
"protractorConfig": "e2e/protractor.conf.js",
109-
"devServerTarget": "ngx-echarts-starter:serve"
110-
},
111-
"configurations": {
112-
"production": {
113-
"devServerTarget": "ngx-echarts-starter:serve:production"
114-
}
115-
}
116101
}
117102
}
118103
}

e2e/protractor.conf.js

-28
This file was deleted.

0 commit comments

Comments
 (0)