Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-gulpfile-advanced

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-gulpfile-advanced

A yeoman generator to build gulpfiles easily

  • 0.0.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

generator-gulpfile-advanced Build Status

A generator powered by Yeoman which gives a user the abilitiy to create all Gulp tasks they need to build, run or develop one's application.

NPM

Prerequisites

$ npm install -g yo generator-gulpfile-advanced

gulpfile-generator

Usage

  • Go to the root path of your project
  • To launch global generator:
$ yo gulpfile-advanced
  • Then select the tasks you want in your application
  • To launch sub-generator in order to add new tasks (after launching the global generator):
$ yo gulpfile-advanced:taskName
  • And now you can launch your task with gulp:
$ gulp taskName
  • Or launch in watch mode:
$ gulp taskName:watch
  • With the "custom" sub-generator you have the ability to make a custom task with existant tasks in your gulpfiles
  • For example if I want to create a task named "dev" which can transpile less, create a webserver and minify html:
$ yo gulpfile:custom
What would you call your custom task?
> dev
Which tasks do you want in your custom task ?
> less:watch, webserver:watch, minify-html:watch

Sub-generators

Development installation

$ git clone https://github.com/bnjjj/generator-gulpfile-advanced.git
$ cd generator-gulpfile-advanced
$ git submodule init
$ git submodule update
$ npm link

Contributing

  • The long goal of this generator is for it to be used with other sub-generators - ones I haven't developed too. Each sub-generator is isolated in its own git repository so that everyone can request pulls or file more precise issues.

  • Furthermore you can develop your own sub-generator; after you have tested don't hesitate to request a pull so that I can integrate it as a sub-module in the main generator. This way you will still be the sole owner of your work and are free to edit it as you please.

  • Here are the pre-requisites for your pull requests to be accepted:

    • Have your files well documented
    • Have automated tests
    • Keep the same structure so as to keep everything unified
  • The structure of the sub-generators has to be as follows:

    • One file per task
    • Task files have to be located in the "templates" directory et bear the same name as the task
    • An "index.js" file at the root of your sub-generator will allow for configuration
  • If you're interested in developing:

    • Clone the project and integrate your own generator in the "generators" directory
    • When you're done with development, integrate as a Git sub-module

Contributers

Big thanks to WaxAndWane for the translation


Made by Coenen Benjamin with love

Keywords

FAQs

Package last updated on 25 Aug 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc