1.0.2 • Published 8 years ago
hapi-app-generator v1.0.2
hapi-app-generator

Another Hapi.js app generator (command line), with tests, ESLint support and modular structure.
Installation
# npm install -g hapi-app-generator
Options
Usage: hapigen [OPTION] <projectPath>
-g, --git Add .gitignore
-h, --help Display this help
-v, --version Show the version
-f, --force Force the execution, even if project name are not recommended, or project folder exists
<projectPath> is the path to project folder
Example
$ hapigen foo
*** Init process
* Create project folder
* Copy README.md
* Copy index.js
* Copy .eslintrc
* Create package.json
* Create 'src' folder structure
* Copy src/manifest.json
* Copy src/modules/hello/index.js
* Copy src/modules/hello/actions/hello.js
* Create 'test' folder
* Copy test/hello.test.js
Process finished successfully. To run the project, execute the commands:
$ cd foo
$ npm install
$ npm start
This project have the 'debug' module. To activate:
$ DEBUG=foo:* npm start
This project also have tests (with eslint). To run:
$ npm test