![Phaser Logo](../assets/logo.png "Phaser Logo")
A Phaser 3 project template using webpack, SASS, Babel ES6, and eslinter set to Aribnb preset. Includes a folder of example scripts to help start your development.
We need Node.js to install and run scripts.
Run the appropriate command in your terminal:
Command | Description |
---|---|
npm install |
Install dependencies and launch browser with examples. |
yarn start |
Launch browser to show the examples. Press Ctrl + c to kill http-server process. |
yarn deploy |
Create a distributed version of the build that's minified and uglified. |
yarn docs |
Generate ESDocs for the examples. |
yarn jsdocs |
Generate JsDocs for the examples. |
yarn lint |
Run the linter, defaults to using airbnb style guide (https://github.com/airbnb/javascript). |
yarn lint:fix-dry-run |
Run the linter and automatically fix without saving changes. |
yarn lint:fix |
Run the linter and automatically fix problems and save changes. |
yarn test |
Run the unit tests. Looks for files matching the pattern *.test.js . |
yarn test:watch |
Run the unit tests but keep watch for changes. Press Ctrl + c to kill the watch process. |