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-gulpA .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 dependenciesIt Will:
- Remove the
Gruntfile.js - Remove all Grunt tasks under
tasks/folder - Create the
gulpfile.jsto manage Gulp tasks - Create a whole new
tasks/folder with Gulp tasks - Update
.sailsrcto disable grunt - Update
package.jsonto remove old grunt dependencies - Update
package.jsonto 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
