Skip to content

Commit 4e52549

Browse files
committed
Added in the TypeScript defs generator to the main repo
1 parent e902bfe commit 4e52549

18 files changed

Lines changed: 2516 additions & 917 deletions

package-lock.json

Lines changed: 1074 additions & 914 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"license": "MIT",
1010
"licenseUrl": "http://www.opensource.org/licenses/mit-license.php",
1111
"main": "./src/phaser.js",
12+
"types": "./types/phaser.d.ts",
1213
"repository": {
1314
"type": "git",
1415
"url": "https://photonstorm@github.com/photonstorm/phaser.git"
@@ -35,7 +36,12 @@
3536
"lintfix": "eslint --config .eslintrc.json \"src/**/*.js\" --fix",
3637
"sloc": "node-sloc \"./src\" --include-extensions \"js\"",
3738
"bundleshaders": "node scripts/bundle-shaders.js",
38-
"postinstall": "node scripts/support.js"
39+
"postinstall": "node scripts/support.js",
40+
"build-tsgen": "cd scripts/tsgen && tsc",
41+
"tsgen": "cd scripts/tsgen && jsdoc -c jsdoc-tsd.conf.json",
42+
"test-ts": "cd scripts/tsgen/test && tsc > output.txt",
43+
"ts": "npm run tsgen && npm run test-ts",
44+
"tsdev": "cd scripts/tsgen && tsc && jsdoc -c jsdoc-tsd.conf.json"
3945
},
4046
"keywords": [
4147
"2d",
@@ -53,7 +59,7 @@
5359
"clean-webpack-plugin": "^0.1.19",
5460
"eslint": "^4.19.1",
5561
"eslint-plugin-es5": "^1.3.1",
56-
"fs-extra": "^6.0.0",
62+
"fs-extra": "^6.0.1",
5763
"node-sloc": "^0.1.11",
5864
"uglifyjs-webpack-plugin": "^1.3.0",
5965
"vivid-cli": "^1.1.2",
@@ -62,8 +68,12 @@
6268
"webpack-shell-plugin": "^0.5.0"
6369
},
6470
"dependencies": {
71+
"dts-dom": "^3.2.0",
6572
"eventemitter3": "^3.1.0",
6673
"exports-loader": "^0.7.0",
67-
"imports-loader": "^0.8.0"
74+
"imports-loader": "^0.8.0",
75+
"jsdoc": "^3.6.1",
76+
"path": "^0.12.7",
77+
"typescript": "^3.4.5"
6878
}
6979
}

0 commit comments

Comments
 (0)