phaser-lifecycle-plugin

v0.1.0
A Phaser 3 plugin to make it easier to have custom objects hook into Phaser's lifecycle events - preupdate, postupdate, etc.
phaser phaser plugin game engine

build:library

webpack --mode production --config config/webpack.config.js

build:tests

webpack --mode development --config config/webpack.test.config.js

watch:library

webpack --mode development --config config/webpack.config.js --watch

watch:tests

webpack --mode development --config config/webpack.test.config.js --watch

serve

browser-sync start --server "." --directory --watch --startPath "/end-to-end-tests"

dev

concurrently "npm run watch:tests" "npm run watch:library" "npm run serve"

dev:cypress

concurrently "npm run watch:tests" "npm run watch:library" "cypress open"

test:jest

jest --config=./config/jest.config.js

pretest:cypress

npm run build:tests

test:cypress

cypress run

doc

esdoc -c ./config/esdoc.json

predeploy:doc

npm run doc

deploy:doc

gh-pages --branch gh-pages --dist ./docs/build --dest docs

prepublishOnly

npm run build:library

pull-types

curl https://raw.githubusercontent.com/photonstorm/phaser3-docs/master/typescript/phaser.d.ts --create-dirs --location --output ./types/phaser.d.ts
npm i phaser-lifecycle-plugin

Metadata

  • MIT
  • Whatever
  • Michael Hadley
  • released 8/26/2018

Downloads

Maintainers