• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

youngmountain/generator-node-gulp: Create a Node.js module with yo, including gu ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

youngmountain/generator-node-gulp

开源软件地址(OpenSource Url):

https://github.com/youngmountain/generator-node-gulp

开源编程语言(OpenSource Language):

JavaScript 100.0%

开源软件介绍(OpenSource Introduction):

# 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 on generator-node

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

Installation

Install the generator by running: npm install -g generator-node-gulp.

Options

  • --test-framework=[framework]

    Defaults to mocha. Can be switched to another supported testing framework like jasmine.

  • --skip-install

    Skips the automatic execution of bower and npm after scaffolding has finished.

Features

  • Customize the dependencies prompt by editing the settings.json file see.
  • Prefills 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 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": "[email protected]",
    "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 an issue.

Articles

Some recommended articles to get you started with node.

Team

License

MIT License

Logo by Koji Wakayama




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap