User Tools

Site Tools


schule:klassen:2022:wsem:boulders:vsc:start

Einrichten der Entwicklungsumgebung

Ordnerstruktur:

Installation der benötigten node-Module:

npm init
npm install phaser typescript

Konfiguration des Compilers

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/**/*"]
}
schule/klassen/2022/wsem/boulders/vsc/start.txt · Last modified: by 127.0.0.1