Minimalistic setup.
Install node.js
Clone the repository and add your own repository as origin
git clone https://github.com/maakep/phaser3-typescript-template your-game
git remote set-url origin https://github.com/your-user/your-game.git
npm i
With this repo you'll need to download & replace the type definitions (located in /src/phaser.d.ts) with the ones from typescript docs to get the latest type definitions, or create a solution to do it automatically.
npm run build
or
npm run watch
npm start
then browse to http://localhost:8080