generator-hapijs

0.2.0 • Public • Published

generator-hapi Build Status Code Climate

Yeoman generator for scaffolding Hapijs modules

Getting Started

Installation

To install generator-hapi from npm, run:

$ npm install -g generator-hapijs

Generated Directory Structure

This hapijs generator assumes that you want your project structure to look like this:

-project
--module
---module-ctrl.js
---module-dao.js
---module-routes.js
---module-test.js

Usage

Main

Scaffolds out a hapijs project.

$ yo hapijs  

Module

Scaffolds out a module to an existing hapijs project

$ yo hapijs:module foo  

Endpoint

Scaffolds out a new endpoint for an existing module

$ yo hapijs:endpoint  

Contributing

To run tests:

npm test

To install your local version of this package rather than the NPM published version:

npm link

Readme

Keywords

Package Sidebar

Install

npm i generator-hapijs

Weekly Downloads

6

Version

0.2.0

License

MIT

Last publish

Collaborators

  • toymachiner62