1.0.0 • Published 4 years ago

twopm-phaser-template v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Forked from https://github.com/geocine/phaser3-rollup-typescript

Original README below:


This is a Phaser 3 starter with TypeScript, Rollup for bundling and nollup as development server.

Available Commands

CommandDescription
yarn installInstall project dependencies
yarn devBuilds project and open web server, watching for changes
yarn buildBuilds code bundle with production settings (minification, no source maps, etc..)
yarn startRun a web server to serve built code bundle

Development

After cloning the repo, run yarn install from your project directory. Then, you can start the local development server by running yarn dev.

After starting the development server with yarn dev, you can edit any files in the src folder and nollup will automatically recompile and reload your browser (available at http://localhost:8080 by default).

The development server makes use of nollup which makes hot reload very fast.

Production

After running yarn build, the files you need for production will be on the dist folder. To test code on your dist folder, run yarn start and navigate to http://localhost:5000