Please refer to e.g. https://www.freecodecamp.org/news/how-to-build-a-simple-game-in-the-browser-with-phaser-3-and-typescript-bdc94719135/ for build up the enviorment, phaser and typescript.
I used NPM as the package manager.
Basically, you need to:
git clone --recursive path/to/this/repo.git
					or if you forgot the --recursive, run git submodule update --init --recursive inside the root folder to get the submodules inited.  npm i to install dependencies.  tsc to run the typescript compiler. It will keep running and detect any changes, which will trigger a re-compile.  bin/ and a HTML bin/index.html.  You can view the docs under docs/index.html.
				To generate the docs, first install typedoc then npx typedoc under the root folder.  
Generated using TypeDoc