migrate-yfiles-ts-app
migrate-yfiles-app supports TypeScript files as well now.
DEPRECATED: This migration tool is deprecated, asTool that helps with the migration of typescript files that reference old yFiles for HTML API.
Usage
Install via
$ npm install -g migrate-yfiles-ts-app
then run
$ migrate-yfiles-ts-app --project path/to/tsconfig.json [--fix --out out/path]
Options
-
--project
: Path to the project'stsconfig.json
(default:./tsconfig.json
) -
--fix
The tool is able to perform some transformations on its own. Enable to make use of this feature (default: disabled). -
--out/-o
: If you don't want the tool to apply changes in-place you can specify a separate out path (default:./
).
Tests
In order to run the tests put the yFiles type definition file of yFiles for HTML 1.3 in the root folder.
About
This tool is built on top of TSLint and adds some custom
rules which detect API changes. If your IDE natively supports TSLint you might as well add
those custom rules to your TSLint settings instead of running this tool from console. Have a
look at tslint.json
for available rules.
License
MIT