Forké depuis https://github.com/samme/brunch-phaser-typescript
A Brunch skeleton for making games with Phaser 3 and TypeScript. (Why Brunch?)
brunch new <project> -s samme/brunch-phaser-typescript
- Install (if you don't have them):
- Run:
brunch new <project> -s samme/brunch-phaser-typescript
npm run start
orbrunch watch --server
watches the project with continuous rebuild.npm run build
orbrunch build --production
builds a minified project for production.
- Make:
Phaser is managed through npm.
npm ls --production
Update with:
npm update
See the npm.static
entry in brunch-config.
npm install -S <package-name>
and then import as appropriate in your code.
Add the unminified script to vendor.
# List
npm list --dev --depth=0
# Add (http://brunch.io/plugins)
npm install -D plugin-name