Skip to content

Instantly share code, notes, and snippets.

@sunilw
Created July 23, 2014 22:44
Show Gist options
  • Save sunilw/b867dbe5f2e6b500a960 to your computer and use it in GitHub Desktop.
Save sunilw/b867dbe5f2e6b500a960 to your computer and use it in GitHub Desktop.
module.exports = function (grunt){
grunt.initConfig({
compass : {
dist : {
options : {
cssDir : 'sw-inc/css',
sassDir : 'sass'
}
}
}, // ends compass task definitions
watch : {
files : [ '*php', 'js/*', 'sass/*' ],
tasks : ['compass'],
options : {
livereload: true
}
}, // ends watch task definition
concurrent : {
target1 : ['watch'],
options : {
logConcurrentOutput : true
}
} // ends concurrent
}); // end task defintions
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.registerTask( 'default' , ['concurrent:target1', 'concurrent:target2'] ) ;
} ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment