A Gulp generator for Sails.js to replace default Grunt tasks.
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>
$ npm install sails-generate-gulp
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
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
The sails-generate-gulp module is released under the ICS license.
https://github.com/groupe-sii/sails-generate-gulp/blob/master/LICENSE