Skip to content

Commit 41c9c22

Browse files
committed
update to yFiles for HTML 2.3
1 parent 1d6d4e7 commit 41c9c22

File tree

5 files changed

+39
-41
lines changed

5 files changed

+39
-41
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ yarn-error.log
4141
testem.log
4242
/typings
4343
license.json
44-
yfiles-typeinfo.js
4544

4645
# System Files
4746
.DS_Store

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 v9.0.4
12-
- yFiles for HTML 2.2
11+
- Angular CLI v9.1.7
12+
- yFiles for HTML 2.3
1313

1414
## Getting Started
1515

integration-howto.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ Adding yFiles as a dependency is as easy as installing an external library from
1919

2020
1. Add yFiles for HTML as npm dependency to the created project:
2121

22-
- If you have a fresh yFiles for HTML package, you need to `npm pack` the library first by running `npm pack`
23-
in `<yfiles-package>/lib/es-modules/`. This creates a tarball that can be installed as npm dependency in
22+
- If you have a fresh yFiles for HTML package, you need to prepare the library package first by running `npm install` in the
23+
package folder. This creates the development library and a tarball that can be installed as npm dependency in
2424
other projects. See also [Working with the yFiles npm Module](https://docs.yworks.com/yfileshtml/#/dguide/yfiles_npm_module#yfiles_npm_module).
2525

26-
Note: This sample project runs `npm pack` as `preinstall` script in the `package.json`.
26+
Note: This sample project runs `npm install` as `preinstall` script in the `package.json`.
2727

2828
- Reference the packed library in the `package.json` of the project:
2929
```
3030
"dependencies": {
3131
...
32-
"yfiles": "../yFiles-for-HTML-Complete-2.2.0.3-Evaluation/lib/es-modules/yfiles-22.0.3-eval.tgz"
32+
"yfiles": "../yFiles-for-HTML-Complete-2.3-Evaluation/lib-dev/es-modules/yfiles-23.0.0-eval-dev.tgz"
3333
},
3434
```
3535

package.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.1.0",
44
"author": "yWorks GmbH <[email protected]>",
55
"scripts": {
6-
"preinstall": "cd ../yFiles-for-HTML-Complete-2.2.0.3-Evaluation/lib/es-modules && npm pack",
7-
"postinstall": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-2.2.0.3-Evaluation/ide-support/yfiles-typeinfo.js','./src/yfiles-typeinfo.js')\" && node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-2.2.0.3-Evaluation/lib/license.json','./src/license.json')\"",
6+
"preinstall": "cd ../yFiles-for-HTML-Complete-2.3-Evaluation && npm install",
7+
"postinstall": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-2.3-Evaluation/lib/license.json','./src/license.json')\"",
88
"ng": "ng",
99
"start": "ng serve",
1010
"build": "node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng build",
@@ -14,38 +14,38 @@
1414
},
1515
"private": true,
1616
"dependencies": {
17-
"@angular/animations": "~9.0.4",
18-
"@angular/common": "~9.0.4",
19-
"@angular/compiler": "~9.0.4",
20-
"@angular/core": "~9.0.4",
21-
"@angular/forms": "~9.0.4",
22-
"@angular/platform-browser": "~9.0.4",
23-
"@angular/platform-browser-dynamic": "~9.0.4",
24-
"@angular/router": "~9.0.4",
25-
"rxjs": "~6.5.4",
26-
"tslib": "^1.10.0",
27-
"yfiles": "../yFiles-for-HTML-Complete-2.2.0.3-Evaluation/lib/es-modules/yfiles-22.0.3-eval.tgz",
28-
"zone.js": "~0.10.2"
17+
"@angular/animations": "~9.1.9",
18+
"@angular/common": "~9.1.9",
19+
"@angular/compiler": "~9.1.9",
20+
"@angular/core": "~9.1.9",
21+
"@angular/forms": "~9.1.9",
22+
"@angular/platform-browser": "~9.1.9",
23+
"@angular/platform-browser-dynamic": "~9.1.9",
24+
"@angular/router": "~9.1.9",
25+
"rxjs": "~6.5.5",
26+
"tslib": "^2.0.0",
27+
"yfiles": "../yFiles-for-HTML-Complete-2.3-Evaluation/lib-dev/es-modules/yfiles-23.0.0-eval-dev.tgz",
28+
"zone.js": "~0.10.3"
2929
},
3030
"devDependencies": {
31-
"@angular-devkit/build-angular": "~0.900.4",
32-
"@angular/cli": "~9.0.4",
33-
"@angular/compiler-cli": "~9.0.4",
34-
"@angular/language-service": "~9.0.4",
35-
"@types/node": "^12.11.1",
36-
"@types/jasmine": "~3.3.8",
37-
"@types/jasminewd2": "~2.0.3",
38-
"codelyzer": "^5.1.2",
39-
"jasmine-core": "~3.4.0",
40-
"jasmine-spec-reporter": "~4.2.1",
41-
"karma": "~4.1.0",
42-
"karma-chrome-launcher": "~2.2.0",
43-
"karma-coverage-istanbul-reporter": "~2.0.1",
44-
"karma-jasmine": "~2.0.1",
45-
"karma-jasmine-html-reporter": "^1.4.0",
46-
"protractor": "~5.4.0",
47-
"ts-node": "~7.0.0",
48-
"tslint": "~5.15.0",
49-
"typescript": "~3.7.5"
31+
"@angular-devkit/build-angular": "~0.901.7",
32+
"@angular/cli": "~9.1.7",
33+
"@angular/compiler-cli": "~9.1.9",
34+
"@angular/language-service": "~9.1.9",
35+
"@types/node": "^14.0.9",
36+
"@types/jasmine": "~3.5.10",
37+
"@types/jasminewd2": "~2.0.8",
38+
"codelyzer": "^5.2.2",
39+
"jasmine-core": "~3.5.0",
40+
"jasmine-spec-reporter": "~5.0.2",
41+
"karma": "~5.0.9",
42+
"karma-chrome-launcher": "~3.1.0",
43+
"karma-coverage-istanbul-reporter": "~3.0.3",
44+
"karma-jasmine": "~3.3.1",
45+
"karma-jasmine-html-reporter": "^1.5.4",
46+
"protractor": "~5.4.4",
47+
"ts-node": "~7.0.1",
48+
"tslint": "~6.1.2",
49+
"typescript": "~3.8.3"
5050
}
5151
}

src/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88

99
<!-- enhanced development support for yFiles -->
10-
<script src="./yfiles-typeinfo.js"></script>
1110
</head>
1211
<body>
1312
<app-root></app-root>

0 commit comments

Comments
 (0)