A Phaser 3 project template with TypeScript support via Babel 7 and Webpack 4 that includes hot-reloading for development and production-ready builds. Also uses es-lint and prettier instead of tslint.
Node.js is required to install dependencies and run scripts.
Command | Description |
---|---|
npm install |
Installs project dependencies |
npm run lint |
Performs type checks using tsc with eslint |
npm start |
Builds the project and opens web browser to the local server |
npm run build |
Builds the code bundle with production settings (minification etc.) |
After cloning the repo, run npm install
from your project directory. Then, start your local development
server by running npm start
. When you edit project files in the src
folder, webpack will automatically
recompile and reload your server (available at http://localhost:8080
by default).
This was my attempt at a TypeScript version of phaser3-project-template that relies on es-lint and babel.