# generator-phaser-app

> Basic Phaser app

Latest version **1.1.0** (published 2017-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install generator-phaser-app
pnpm add generator-phaser-app
yarn add generator-phaser-app
bun add generator-phaser-app
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-11-02 |
| First published | 2017-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | denisovap2013 |
| Maintainers | denisovap2013 |
| Keywords | yeoman-generator, web-app, phaser, phaser-app, html5 |

## Links

- npm: https://www.npmjs.com/package/generator-phaser-app
- Repository: https://github.com/denisovap2013/generator-phaser-app
- Homepage: https://github.com/denisovap2013/generator-phaser-app#readme
- Issues: https://github.com/denisovap2013/generator-phaser-app/issues
- npm.io page: https://npm.io/package/generator-phaser-app

## Dependencies (1)

- [yeoman-generator](https://npm.io/package/yeoman-generator.md) ^2.0.1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-11-02
- 1.0.1 — 2017-10-28
- 1.0.0 — 2017-10-28
- 0.1.3 — 2017-10-28
- 0.1.2 — 2017-10-28
- 0.1.1 — 2017-10-28
- 0.1.0 — 2017-10-28

## README

# A generator for scaffolding a basic Phaser application

### The generator forms the following structure of the project.

* `index.html`  
* `gruntfile.js`  
* `package.json`  
* `assets`  
  * `images`  
    * `...`    
  * `...`  
* `src`  
  * `app.js`  
  * `states`  
    * `Boot.js`  
    * `Preload.js`  
    * `Game.js`  
* `scripts`  
  * `phaser.js`  
  * `app.js`  

##### After installing the module use `yo phaser-app` inside of your project folder ([Yeoman](http://yeoman.io/learning/index.html) is required).
During the scaffolding process, the generator will automatically install all node dependencies.  
The **_phaser.js_** full build is included by default into the **scripts** folder (_current version is 2.9.1_).  
However, it's recommended to visit the official [Phaser.io](http://phaser.io/) site to get the latest version (also you can find it on GitHub [photonstorm/phaser-ce](https://github.com/photonstorm/phaser-ce/tree/v2.9.1)).  

### __Gruntfile.js__ has several built-in tasks to maintain your project ( [Grunt](https://gruntjs.com/getting-started) module is required).
##### You can run following commands from the root directory of your project:
##### `grunt default` or just `grunt`
This task will compile all scripts in the "__src__" folder and its subfolders (The entry for the __*babelify*__ module is the __*app.js*__), then the lightweight server and the __*watch*__ module will be launched (this allows to automatically compile and update all your scripts onec they are changed).
**DO NOT** close the command prompt if you want the lightweight server and the __*watch*__ continue working.
From your browser you can go to `localhost:9001` or `127.0.0.1:9001` to test your project.

##### `grunt compile`
Translate javascript files from the ECMAScript6 to ECMAScript5 standard (not all browsers support new JavaScript standards)

##### `grunt build`
Creates the final version of the project with minified javascript files and place it to the __build__ folder. (During this process all previous files presented in the __build__ folder will be deleted)

---
_Source: https://npm.io/package/generator-phaser-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
