1.0.1 • Published 7 years ago

sails-generate-gulp v1.0.1

Weekly downloads
3
License
ISC
Repository
-
Last release
7 years ago

image_squidhome@2x.png

sails-generate-gulp

A Gulp generator for Sails.js to replace default Grunt tasks.

Prerequisites

First, you will need to generate a sails application.

$ npm i sails -g
$ sails new <project-name> # Please stop the automatic `npm install` command before it installs sails dependencies and Grunt with it
$ cd <project-name>

Installation

$ npm install sails-generate-gulp

How to use ?

A .sailsrc file needs to be added to the working directory with the following:

{
    "generators": {
        "modules": {
            "gulp": "sails-generate-gulp",
        }
    }
}

Then launch:

$ sails generate gulp
$ npm install # To install newly added dependencies

What is it doing ?

It Will:

  • Remove the Gruntfile.js
  • Remove all Grunt tasks under tasks/ folder
  • Create the gulpfile.js to manage Gulp tasks
  • Create a whole new tasks/ folder with Gulp tasks
  • Update .sailsrc to disable grunt
  • Update package.json to remove old grunt dependencies
  • Update package.json to add gulp dependencies
  • Create a default SASS architecture under /assets/styles

License

The sails-generate-gulp module is released under the ICS license.

https://github.com/groupe-sii/sails-generate-gulp/blob/master/LICENSE