-
-
Save pragmaticivan/7978594 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %> | |
(function () { | |
"use strict"; | |
module.exports = function (grunt) { | |
// Project Configuration | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
jade: { | |
files: ['app/views/**/*.jade'], | |
options: { | |
livereload: true | |
} | |
}, | |
javascripts: { | |
files: ['public/js/*.js', 'assets/javascripts/**/*.js', 'app.js', 'app/**/*.js', 'settings/**/*.js'], | |
tasks: ['jshint'], | |
options: { | |
livereload: true | |
} | |
}, | |
stylesheets: { | |
files: ['app/stylesheets/**/*.sass'], | |
options: { | |
livereload: true | |
} | |
} | |
}, | |
nodemon: { | |
dev: { | |
options: { | |
file: 'app.js', | |
args: [], | |
ignoredFiles: ['README.md', 'node_modules/**', '.DS_Store'], | |
watchedExtensions: ['jade', 'css', 'js'], | |
watchedFolders: ['app', 'public', 'config'], | |
debug: true, | |
delayTime: 1, | |
env: { | |
PORT: 3000 | |
}, | |
cwd: __dirname | |
} | |
} | |
}, | |
concurrent: { | |
tasks: ['nodemon', 'watch'], | |
options: { | |
logConcurrentOutput: true | |
} | |
} | |
}); | |
//Load NPM tasks | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-nodemon'); | |
grunt.loadNpmTasks('grunt-concurrent'); | |
//Default task(s). | |
grunt.registerTask('default', ['concurrent']); | |
}; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment