A fork of my Webpack & Typescript Starter and my Webpack & Phaser Starter.
Including, but not limited to, the following:
webpack
(d'oh)webpack-dev-server
for development & hot module reloadingbabel
for TypeScript transpiling, including stage 0 supporttslint
for code hygienemocha
,chai
&sinon
for testingistanbul
for code coveragephaser
,pixi.js
andp2
for the game enginephaser-debug
for improved debuggingphaser-glsl-loader
to simplify shader loadingtypings
for type definitions
Command | Description |
---|---|
npm start |
Start a dev server. |
npm run server |
Start a dev server. |
npm run server:reload |
Start a dev server with HMR enabled. |
npm run build |
Build the production version of the app. |
npm run build:prod |
Build the production version of the app. |
npm run build:dev |
Build the developement version of the app. |
npm run test |
Run the tests. |
npm run test:watch |
Run the tests & watch for changes. |
npm run test:coverage |
Run the test coverage analysis. |
npm run lint |
Lint the code. |
Hot Module Replacement doesn't really work with Phaser, so that isn't enabled by default when starting a dev server.