Skip to content

Commit

Permalink
update to yFiles for HTML 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
HackbrettXXX committed Jun 10, 2020
1 parent 1d6d4e7 commit 41c9c22
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 41 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ yarn-error.log
testem.log
/typings
license.json
yfiles-typeinfo.js

# System Files
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ This sample application serves as a basic scaffold of how to integrate [yFiles f

## Version Information

- Angular CLI v9.0.4
- yFiles for HTML 2.2
- Angular CLI v9.1.7
- yFiles for HTML 2.3

## Getting Started

Expand Down
8 changes: 4 additions & 4 deletions integration-howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ Adding yFiles as a dependency is as easy as installing an external library from

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

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

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

- Reference the packed library in the `package.json` of the project:
```
"dependencies": {
...
"yfiles": "../yFiles-for-HTML-Complete-2.2.0.3-Evaluation/lib/es-modules/yfiles-22.0.3-eval.tgz"
"yfiles": "../yFiles-for-HTML-Complete-2.3-Evaluation/lib-dev/es-modules/yfiles-23.0.0-eval-dev.tgz"
},
```
Expand Down
66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.0",
"author": "yWorks GmbH <yfileshtml@yworks.com>",
"scripts": {
"preinstall": "cd ../yFiles-for-HTML-Complete-2.2.0.3-Evaluation/lib/es-modules && npm pack",
"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')\"",
"preinstall": "cd ../yFiles-for-HTML-Complete-2.3-Evaluation && npm install",
"postinstall": "node -e \"require('fs').copyFileSync('../yFiles-for-HTML-Complete-2.3-Evaluation/lib/license.json','./src/license.json')\"",
"ng": "ng",
"start": "ng serve",
"build": "node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng build",
Expand All @@ -14,38 +14,38 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~9.0.4",
"@angular/common": "~9.0.4",
"@angular/compiler": "~9.0.4",
"@angular/core": "~9.0.4",
"@angular/forms": "~9.0.4",
"@angular/platform-browser": "~9.0.4",
"@angular/platform-browser-dynamic": "~9.0.4",
"@angular/router": "~9.0.4",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"yfiles": "../yFiles-for-HTML-Complete-2.2.0.3-Evaluation/lib/es-modules/yfiles-22.0.3-eval.tgz",
"zone.js": "~0.10.2"
"@angular/animations": "~9.1.9",
"@angular/common": "~9.1.9",
"@angular/compiler": "~9.1.9",
"@angular/core": "~9.1.9",
"@angular/forms": "~9.1.9",
"@angular/platform-browser": "~9.1.9",
"@angular/platform-browser-dynamic": "~9.1.9",
"@angular/router": "~9.1.9",
"rxjs": "~6.5.5",
"tslib": "^2.0.0",
"yfiles": "../yFiles-for-HTML-Complete-2.3-Evaluation/lib-dev/es-modules/yfiles-23.0.0-eval-dev.tgz",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.4",
"@angular/cli": "~9.0.4",
"@angular/compiler-cli": "~9.0.4",
"@angular/language-service": "~9.0.4",
"@types/node": "^12.11.1",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.7.5"
"@angular-devkit/build-angular": "~0.901.7",
"@angular/cli": "~9.1.7",
"@angular/compiler-cli": "~9.1.9",
"@angular/language-service": "~9.1.9",
"@types/node": "^14.0.9",
"@types/jasmine": "~3.5.10",
"@types/jasminewd2": "~2.0.8",
"codelyzer": "^5.2.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.2",
"karma": "~5.0.9",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~3.3.1",
"karma-jasmine-html-reporter": "^1.5.4",
"protractor": "~5.4.4",
"ts-node": "~7.0.1",
"tslint": "~6.1.2",
"typescript": "~3.8.3"
}
}
1 change: 0 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- enhanced development support for yFiles -->
<script src="./yfiles-typeinfo.js"></script>
</head>
<body>
<app-root></app-root>
Expand Down

0 comments on commit 41c9c22

Please sign in to comment.