scottmcdonnell / phaser-typescript-webpack-starter

A simple starter example for using Phaser with Webpack and TypeScript.
MIT License
1 stars 1 forks source link

Phaser skeleton w/ TypeScript and WebPack

About

A simple example using Phaser with TypeScript and WebPack.

Based on lean/phaser-es6-webpack and the-simian/slush-phaser-webpack and also AngularClass/angular2-webpack-starter.

This is a fork of mgiambalvo/phaser-typescript-webpack-starter to add npm commands below and karma test framework.

Setup

# install the repo with npm
npm install

# start the dev server
npm start

Server

# development
npm run server

# production
npm run build:prod && npm run server:prod

Test

npm run test

Clean

# clean all cache node modules etc
npm run clean

# awesome-typescript-loader has its own cache which can be cleared 
# worth trying if you are seeing strange results!
npm run clean:typescript