giovanebribeiro / hapi-app-generator

Another HapiJS app generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hapi-app-generator Build Status npm version david dm

NPM

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

About

Another HapiJS app generator

License:MIT License


Languages

Language:JavaScript 100.0%