Skip to content

Instantly share code, notes, and snippets.

@lobre
Last active August 29, 2015 14:03
Show Gist options
  • Save lobre/02cea383786e7a5a734f to your computer and use it in GitHub Desktop.
Save lobre/02cea383786e7a5a734f to your computer and use it in GitHub Desktop.
Gruntfile
module.exports = function(grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
jshint: {
all: ['js/*.js']
},
compass: {
dist: {
options: {}
}
},
watch: {
js: {
files: ['js/*.js', '!js/*min.js'],
tasks: ['jshint'],
options: {
livereload: true,
spawn: false
}
},
css: {
files: ['css/*.css', '!css/*min.css'],
tasks: [],
options: {
livereload: true,
spawn: false
}
},
sass: {
files: ['sass/*.scss'],
tasks: ['compass'],
options: {
livereload: true,
spawn: false
}
},
html: {
files: ['*.html', '*/**.html'],
tasks: [],
options: {
livereload: true,
spawn: false
}
}
}
});
// Default task(s).
grunt.registerTask('default', []);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment