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.
Command | Description |
---|---|
yarn install |
Install project dependencies |
yarn dev |
Builds project and open web server, watching for changes |
yarn build |
Builds code bundle with production settings (minification, no source maps, etc..) |
yarn start |
Run a web server to serve built code bundle |
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.
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