Socket
Book a DemoSign in
Socket

generator-hapi-plugin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-hapi-plugin

A hapi.js plugin generator for Yeoman

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Hapi.js Plugin generator

NPM version Build Status Dependency Status Coverage Status

Based of generator-node

This generator creates a new Node.js module, generating all the boilerplate you need to get started with best-of-breed form the gulp ecosystem. The generator also optionally installs additional gulp plugins, ee the list below.

Installation

Install the generator by running: npm install -g generator-hapi-plugin.

Features

  • Customize dependencies prompt by editing the settings.json file see.
  • Prefill prompt with the last used values for
    • GitHub username
    • Author's Name
    • Author's Email
    • Author's Homepage

devDependencies

dependencies

You can customize the dependencies prompt with your preferred one by editing the settings.json. The file is located in the root of the generator-hapi-plugin /usr/local/lib/node_modules/generator-hapi-plugin/.

settings.json

By default, the file looks something like this.

{
  "meta": {
    "githubUsername": "kwakayama",
    "authorName": "Kentaro Wakayama",
    "authorEmail": "wakayama.kentaro@gmail.com",
    "authorUrl": "www.wakayama.io"
  },
  "dependencies": [
    {
      "name": "lodash",
      "description": "A utility library"
    },
    {
      "name": "q",
      "description": "A library for promises"
    },
    {
      "name": "debug",
      "description": "tiny node.js debugging utility"
    }
  ]
}

Usage

At the command-line, cd into an empty directory, run this command and follow the prompts.

yo hapi-plugin

Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using gulp.

Support

Should you have any problems or wishes for improvements, feel free to open up an issue.

License

Copyright (c) 2014 Kentaro Wakayama. Licensed under the MIT License.

Keywords

yeoman-generator

FAQs

Package last updated on 06 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts