Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.23 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.23 KB

Phaser 3 Webpack Project Template for Typescript

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.

Requirements

Node.js is required to install dependencies and run scripts.

Available Commands

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.)

Writing Code

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).

About

This was my attempt at a TypeScript version of phaser3-project-template that relies on es-lint and babel.