Skip to content

A Phaser 3 Project Template for Typescript using Babel & es-lint

License

Notifications You must be signed in to change notification settings

rmartone/phaser3-project-template

Repository files navigation

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.

About

A Phaser 3 Project Template for Typescript using Babel & es-lint

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published