npm init npm install phaser typescript
Auf der obersten Verzeichnisebene im Projekt erstellen wir die Datei tsconfig.json:
{
"compilerOptions": {
"target": "es6",
"module": "es6",
"outDir": "./htdocs/js",
"sourceMap": true,
"types": [
"phaser"
],
"typeRoots": [
"./node_modules/phaser/types"
],
},
"include": ["./src/**/*"]
}