Skip to content

Commit

Permalink
Updated Parser and README
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 10, 2019
1 parent 9ed98e9 commit 9a4ea21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions scripts/tsgen/README.md
@@ -0,0 +1,7 @@
## TypeScript Defs Generation Tool

The TypeScript defs generation tool is called `tsgen` and is written in TypeScript. Build it by running `npm run build-tsgen`. This will compile the parser locally.

You can then run `npm run tsgen` to build the actual defs. They will replace the file located in the root `types` folder. Once the parser is built you only need use this command. Use it to re-generate the defs if you have modified the Phaser source code and wish to test your change worked.

There is also a test script available: `npm run test-ts` which will compile a test TypeScript project and output any compilation errors to `output.txt`.
2 changes: 1 addition & 1 deletion scripts/tsgen/bin/Parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a4ea21

Please sign in to comment.