Skip to content

Commit 432202d

Browse files
committed
Update for yFiles for HTML 2.6
1 parent 78f4b92 commit 432202d

File tree

8 files changed

+58
-39
lines changed

8 files changed

+58
-39
lines changed

.eslintrc.cjs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/* eslint-env node */
2-
require("@rushstack/eslint-patch/modern-module-resolution");
2+
require('@rushstack/eslint-patch/modern-module-resolution')
33

44
module.exports = {
5-
"root": true,
6-
"extends": [
7-
"plugin:vue/vue3-essential",
8-
"eslint:recommended",
9-
"@vue/eslint-config-typescript/recommended"
10-
]
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript'
10+
],
11+
parserOptions: {
12+
ecmaVersion: 'latest'
13+
}
1114
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This sample application serves as a basic scaffold of how to integrate [yFiles f
99
## Version Information
1010

1111
- create-vue v3.3
12-
- yFiles for HTML 2.5
12+
- yFiles for HTML 2.6
1313

1414
## Getting Started
1515

@@ -43,7 +43,7 @@ This basic yFiles integration can be used as a starting point to test the capabi
4343

4444
You can browse through the demos and look for features that you find interesting for your use case and integrate it in this basic component to build a more sophisticated application.
4545

46-
The yFiles package also contains a more extensive [Vue.js integration demo](https://live.yworks.com/demos/toolkit/vue2/index.html) ([GitHub](https://github.com/yWorks/yfiles-for-html-demos/blob/master/demos/toolkit/vuejs)) and another [Vue CLI demo](https://live.yworks.com/demos/toolkit/vue2-cli/index.html) ([GitHub](https://github.com/yWorks/yfiles-for-html-demos/tree/master/demos/toolkit/vue-cli)), as well as a specialized [Vue.js Template Node Style](https://live.yworks.com/demos/style/vuejstemplatenodestyle/index.html) ([GitHub](https://github.com/yWorks/yfiles-for-html-demos/tree/master/demos/style/vuejstemplatenodestyle)) that leverages the powerful data binding and conditional rendering features of Vue.js.
46+
The yFiles package also contains a more extensive [Vue integration demo](https://live.yworks.com/demos/toolkit/vue/index.html) ([GitHub](https://github.com/yWorks/yfiles-for-html-demos/blob/master/demos/toolkit/vue)), as well as a specialized [Vue.js Template Node Style](https://live.yworks.com/demos/style/vue-template-node-style/index.html) ([GitHub](https://github.com/yWorks/yfiles-for-html-demos/tree/master/demos/style/vue-template-node-style)) that leverages the powerful data binding and conditional rendering features of Vue.js.
4747

4848
Furthermore, there is an extensive [Developer's Guide](https://docs.yworks.com/yfileshtml/#/dguide/introduction#top) that covers anything from graph creation and styling to automatic layouts and advanced customizations.
4949

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
4+
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>yfiles-vue-integration</title>
77
</head>

integration-howto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ the following options:
1717
- `Add Vue Router for Single Page Application development?` No
1818
- `Add Pinia for state management?` No
1919
- `Add Vitest for Unit testing?` No
20-
- `Add Cypress for both Unit and End-to-End testing?` No
20+
- `Add an End-to-End Testing Solution?` No
2121
- `Add ESLint for code quality?` Yes
2222
- `Add Prettier for code formatting?` No
2323

@@ -30,7 +30,7 @@ Adding yFiles as a dependency is almost as easy as installing an external librar
3030
```
3131
"dependencies": {
3232
...
33-
"yfiles": "../yFiles-for-HTML-Complete-2.5.0.4-Evaluation/lib-dev/yfiles-25.0.4+eval-dev.tgz"
33+
"yfiles": "../yFiles-for-HTML-Complete-2.6-Evaluation/lib-dev/yfiles-26.0.0+eval-dev.tgz"
3434
},
3535
```
3636

package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,29 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "run-p type-check build-only",
9-
"preview": "vite preview --port 4173",
9+
"preview": "vite preview",
1010
"build-only": "vite build",
11-
"type-check": "vue-tsc --noEmit",
11+
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
1212
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
1313
"postinstall": "npm run copy-eval-license",
14-
"copy-eval-license": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-2.5.0.4-Evaluation/lib/license.json','./src/license.json')\""
14+
"copy-eval-license": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-2.6-Evaluation/lib/license.json','./src/license.json')\""
1515
},
1616
"dependencies": {
17-
"vue": "^3.2.37",
18-
"yfiles": "../yFiles-for-HTML-Complete-2.5.0.4-Evaluation/lib-dev/yfiles-25.0.4+eval-dev.tgz"
17+
"vue": "^3.3.4",
18+
"yfiles": "../yFiles-for-HTML-Complete-2.6-Evaluation/lib-dev/yfiles-26.0.0+eval-dev.tgz"
1919
},
2020
"devDependencies": {
21-
"@rushstack/eslint-patch": "^1.1.0",
22-
"@types/node": "^16.11.45",
23-
"@vitejs/plugin-vue": "^3.0.1",
24-
"@vue/eslint-config-typescript": "^11.0.0",
25-
"@vue/tsconfig": "^0.1.3",
26-
"eslint": "^8.5.0",
27-
"eslint-plugin-vue": "^9.0.0",
21+
"@rushstack/eslint-patch": "^1.2.0",
22+
"@tsconfig/node18": "^2.0.1",
23+
"@types/node": "^18.16.17",
24+
"@vitejs/plugin-vue": "^4.2.3",
25+
"@vue/eslint-config-typescript": "^11.0.3",
26+
"@vue/tsconfig": "^0.4.0",
27+
"eslint": "^8.39.0",
28+
"eslint-plugin-vue": "^9.11.0",
2829
"npm-run-all": "^4.1.5",
29-
"typescript": "~4.7.4",
30-
"vite": "^3.0.1",
31-
"vue-tsc": "^0.38.8"
30+
"typescript": "~5.1.6",
31+
"vite": "^4.3.9",
32+
"vue-tsc": "^1.8.1"
3233
}
3334
}

tsconfig.config.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2-
"extends": "@vue/tsconfig/tsconfig.node.json",
3-
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*"],
2+
"extends": "@vue/tsconfig/tsconfig.dom.json",
3+
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4+
"exclude": ["src/**/__tests__/*"],
45
"compilerOptions": {
56
"composite": true,
6-
"types": ["node"]
7+
"baseUrl": ".",
8+
"paths": {
9+
"@/*": ["./src/*"]
10+
}
711
}
812
}

tsconfig.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
{
2-
"extends": "@vue/tsconfig/tsconfig.web.json",
3-
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4-
"compilerOptions": {
5-
"baseUrl": ".",
6-
"paths": {
7-
"@/*": ["./src/*"]
8-
}
9-
},
2+
"files": [],
103
"references": [
114
{
12-
"path": "./tsconfig.config.json"
5+
"path": "./tsconfig.node.json"
6+
},
7+
{
8+
"path": "./tsconfig.app.json"
139
}
1410
]
1511
}

tsconfig.node.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "@tsconfig/node18/tsconfig.json",
3+
"include": [
4+
"vite.config.*",
5+
"vitest.config.*",
6+
"cypress.config.*",
7+
"nightwatch.conf.*",
8+
"playwright.config.*"
9+
],
10+
"compilerOptions": {
11+
"composite": true,
12+
"module": "ESNext",
13+
"types": ["node"]
14+
}
15+
}

0 commit comments

Comments
 (0)