Skip to content

Commit 95ce425

Browse files
committed
Update for yFiles for HTML 2.4.0.0
1 parent 471228d commit 95ce425

30 files changed

+217
-375
lines changed

.browserslistrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR
17+
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.ts]
12+
quote_type = single
13+
1114
[*.md]
1215
max_line_length = off
1316
trim_trailing_whitespace = false

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
# profiling files
1414
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
1615

1716
# IDEs and editors
1817
/.idea

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ This sample application serves as a basic scaffold of how to integrate [yFiles f
88

99
## Version Information
1010

11-
- Angular CLI v10.2
12-
- yFiles for HTML 2.3
11+
- Angular CLI v12.1
12+
- yFiles for HTML 2.4
1313

1414
## Getting Started
1515

angular.json

Lines changed: 22 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"projects": {
66
"yfiles-angular-cli-integration": {
77
"projectType": "application",
8-
"schematics": {},
8+
"schematics": {
9+
"@schematics/angular:application": {
10+
"strict": true
11+
}
12+
},
913
"root": "",
1014
"sourceRoot": "src",
1115
"prefix": "app",
@@ -18,8 +22,7 @@
1822
"main": "src/main.ts",
1923
"polyfills": "src/polyfills.ts",
2024
"tsConfig": "tsconfig.app.json",
21-
"aot": true,
22-
"assets": ["src/yfiles-typeinfo.js", "src/assets"],
25+
"assets": ["src/favicon.ico", "src/assets"],
2326
"styles": ["src/styles.css"],
2427
"scripts": []
2528
},
@@ -31,39 +34,30 @@
3134
"with": "src/environments/environment.prod.ts"
3235
}
3336
],
34-
"optimization": true,
35-
"outputHashing": "all",
36-
"sourceMap": false,
37-
"extractCss": true,
38-
"namedChunks": false,
39-
"extractLicenses": true,
40-
"vendorChunk": false,
41-
"buildOptimizer": true,
42-
"budgets": [
43-
{
44-
"type": "initial",
45-
"maximumWarning": "2mb",
46-
"maximumError": "5mb"
47-
},
48-
{
49-
"type": "anyComponentStyle",
50-
"maximumWarning": "6kb",
51-
"maximumError": "10kb"
52-
}
53-
]
37+
"outputHashing": "all"
38+
},
39+
"development": {
40+
"buildOptimizer": false,
41+
"optimization": false,
42+
"vendorChunk": true,
43+
"extractLicenses": false,
44+
"sourceMap": true,
45+
"namedChunks": true
5446
}
55-
}
47+
},
48+
"defaultConfiguration": "production"
5649
},
5750
"serve": {
5851
"builder": "@angular-devkit/build-angular:dev-server",
59-
"options": {
60-
"browserTarget": "yfiles-angular-cli-integration:build"
61-
},
6252
"configurations": {
6353
"production": {
6454
"browserTarget": "yfiles-angular-cli-integration:build:production"
55+
},
56+
"development": {
57+
"browserTarget": "yfiles-angular-cli-integration:build:development"
6558
}
66-
}
59+
},
60+
"defaultConfiguration": "development"
6761
},
6862
"extract-i18n": {
6963
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -82,25 +76,6 @@
8276
"styles": ["src/styles.css"],
8377
"scripts": []
8478
}
85-
},
86-
"lint": {
87-
"builder": "@angular-devkit/build-angular:tslint",
88-
"options": {
89-
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"],
90-
"exclude": ["**/node_modules/**"]
91-
}
92-
},
93-
"e2e": {
94-
"builder": "@angular-devkit/build-angular:protractor",
95-
"options": {
96-
"protractorConfig": "e2e/protractor.conf.js",
97-
"devServerTarget": "yfiles-angular-cli-integration:serve"
98-
},
99-
"configurations": {
100-
"production": {
101-
"devServerTarget": "yfiles-angular-cli-integration:serve:production"
102-
}
103-
}
10479
}
10580
}
10681
}

browserslist

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

e2e/protractor.conf.js

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

e2e/src/app.e2e-spec.ts

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

e2e/src/app.po.ts

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

e2e/tsconfig.json

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

0 commit comments

Comments
 (0)