Skip to content

Commit

Permalink
added grunt enabled config option
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmithson committed Oct 7, 2013
1 parent 8025bb8 commit c32e4c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/app/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ module.exports = function (sails) {
* @api private
*/
function loadGrunt (cb) {
if (!sails.config.grunt.enabled) {
sails.log.verbose('Skipping app Gruntfile...');
return cb();
}

sails.log.verbose('Loading app Gruntfile...');

// TODO:
Expand Down
4 changes: 4 additions & 0 deletions lib/configuration/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ module.exports = function (sails) {
// Paths for application modules and key files
paths: paths,

grunt: {
enabled: true
},

// Default model properties
adapters: {
'default': 'disk',
Expand Down

0 comments on commit c32e4c5

Please sign in to comment.