UNPKG

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

28 lines (27 loc) 691 B
/** * `prod` * * --------------------------------------------------------------- * * This Grunt tasklist will be executed instead of `default` when * your Sails app is lifted in a production environment (e.g. using * `NODE_ENV=production node app`). * * For more information see: * http://sailsjs.org/documentation/anatomy/my-app/tasks/register/prod-js * */ module.exports = function(grunt) { grunt.registerTask('prod', [ 'compileAssets', 'concat', 'uglify', 'cssmin', 'sails-linker:prodJs', 'sails-linker:prodStyles', 'sails-linker:devTpl', 'sails-linker:prodJsJade', 'sails-linker:prodStylesJade', 'sails-linker:devTplJade' ]); };