kojiwakayama / generator-node-gulp

Create a Node.js module with yo, including gulp and Mocha unit tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# node gulp [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-url]][daviddm-image] [![Coverage Status][coveralls-image]][coveralls-url]

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-node-gulp.

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-node-gulp /usr/local/lib/node_modules/generator-node-gulp/.

settings.json

By default, the file looks something like this.

{
  "meta": {
    "githubUsername": "stefanbuck",
    "authorName": "Stefan Buck",
    "authorEmail": "me@stefanbuck.com",
    "authorUrl": "www.stefanbuck.com"
  },
  "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 node-gulp

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.

Support

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

Articles

Some recommended articles for the start with node.

Team

License

MIT License

Logo by Koji Wakayama

About

Create a Node.js module with yo, including gulp and Mocha unit tests.

License:MIT License


Languages

Language:JavaScript 96.7%Language:PHP 3.3%