Skip to content

Instantly share code, notes, and snippets.

@pragmaticivan
Forked from danielfttorres/gruntfile.js
Created December 15, 2013 21:44
Show Gist options
  • Save pragmaticivan/7978594 to your computer and use it in GitHub Desktop.
Save pragmaticivan/7978594 to your computer and use it in GitHub Desktop.
// 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