Skip to content

Instantly share code, notes, and snippets.

@rabellamy
Created May 5, 2014 14:24
Show Gist options
  • Save rabellamy/fde89599d2bdc8174ed1 to your computer and use it in GitHub Desktop.
Save rabellamy/fde89599d2bdc8174ed1 to your computer and use it in GitHub Desktop.
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
compass: {
files: ['sass/{,**/}*.scss'],
tasks: ['compass:dev']
},
livereload: {
options: {
livereload: true
},
files: ['stylesheets/style.css']
},
js: {
files: [
'js/{,**/}*.js',
'!js/{,**/}*.min.js'
],
tasks: ['jshint']
}
},
compass: {
options: {
config: 'config.rb',
bundleExec: true
},
dev: {
options: {
environment: 'development'
}
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'js/{,**/}*.js',
'!js/{,**/}*.min.js'
]
},
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', [
'compass:dev',
'watch'
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment