sails-generate-frontend
Version:
Default generator for frontend code files in new Sails projects. Creates the default contents of the `assets/` folder when you run `sails new` on the command-line. Also creates a subset of the boilerplate Grunt task files (in `tasks/`); specifically, the
22 lines (19 loc) • 464 B
JavaScript
/**
* `clean`
*
* ---------------------------------------------------------------
*
* Remove the files and folders in your Sails app's web root
* (conventionally a hidden directory called `.tmp/public`).
*
* For usage docs see:
* https://github.com/gruntjs/grunt-contrib-clean
*
*/
module.exports = function(grunt) {
grunt.config.set('clean', {
dev: ['.tmp/public/**'],
build: ['www']
});
grunt.loadNpmTasks('grunt-contrib-clean');
};