Beginner: Decent boilerplate/template for Phaser, TypeScript, and Webpack/Rollup?

My repo so far: GitHub - Nezteb/phaser-missile-command

I’m awful with webpack/rollup. I basically want:

  • Code to all live as separate TypeScript files in src/
  • Running yarn build compiles TS, bundles JS, puts these (and an index.html) into dist/
  • Running yarn start serves the dist/ folder in order to play the game in a browser

Are there any good resources/boilerplates/templates for this kind of setup that anyone is aware of? If not I’ll have to slowly cobble together my own.

Thanks for any and all information/tips!

is worth a try.

1 Like

Hello @Nezteb !
Nobody likes to spend tons of hours to create the basic setup. Better use the time to create games :wink: That is why I created this repository, maybe you find it helpful (in case you go for webpack or parcel).

1 Like