phaser/scripts/tsgen
Richard Davey a9793f3261
Merge pull request #6030 from xmahle/handle-nullable-in-parser
Handle nullable in parser.parseType
2022-04-14 16:13:50 +01:00
..
bin Supports new FX Component 2021-10-18 17:59:31 +01:00
jsdoc-plugins Added in the TypeScript defs generator to the main repo 2019-05-08 23:23:57 +01:00
src Merge pull request #6030 from xmahle/handle-nullable-in-parser 2022-04-14 16:13:50 +01:00
test TSGen build 2021-10-27 17:22:16 +01:00
jsdoc-tsd.conf.json Ignore IE9 build 2021-03-08 15:06:12 +00:00
README.md Updated Parser and README 2019-05-10 16:05:20 +01:00
tsconfig.json Added in the TypeScript defs generator to the main repo 2019-05-08 23:23:57 +01: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.