phaser/scripts/tsgen
2020-04-10 21:22:39 +02:00
..
bin adding bacl lost files 2020-04-10 21:18:32 +02:00
jsdoc-plugins adding bacl lost files 2020-04-10 21:18:32 +02:00
src adding bacl lost files 2020-04-10 21:18:32 +02:00
test adding back lost files again 2020-04-10 21:22:39 +02:00
jsdoc-tsd.conf.json adding bacl lost files 2020-04-10 21:18:32 +02:00
README.md adding bacl lost files 2020-04-10 21:18:32 +02:00
tsconfig.json adding bacl lost files 2020-04-10 21:18:32 +02:00

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.