diff --git a/.gitignore b/.gitignore index 6689892..99c555c 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,6 @@ yarn-error.log testem.log /typings license.json -yfiles-typeinfo.js # System Files .DS_Store diff --git a/README.md b/README.md index 684ad99..9f7e04c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/integration-howto.md b/integration-howto.md index 6d5b238..99e9171 100644 --- a/integration-howto.md +++ b/integration-howto.md @@ -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 `/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" }, ``` diff --git a/package.json b/package.json index 0291fb4..4946b97 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "0.1.0", "author": "yWorks GmbH ", "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", @@ -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" } } diff --git a/src/index.html b/src/index.html index 0e03067..50edc46 100644 --- a/src/index.html +++ b/src/index.html @@ -7,7 +7,6 @@ -