Skip to content

Instantly share code, notes, and snippets.

@grayghostvisuals
Created June 28, 2013 14:08
Show Gist options
  • Save grayghostvisuals/5884930 to your computer and use it in GitHub Desktop.
Save grayghostvisuals/5884930 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
compass: {
files: ['sass/**/*.{scss,sass}','sass/_partials/**/*.{scss,sass}'],
tasks: ['compass:dev']
},
bake: {
files: [ "HTML/**" ],
tasks: "bake:build"
},
livereload: {
files: ['*.html', '*.php', 'js/**/*.{js,json}', 'css/*.css','img/**/*.{png,jpg,jpeg,gif,webp,svg}'],
options: {
livereload: true,
},
},
},
bake: {
build: {
files: {
"index.html": "HTML/index.html"
}
}
},
compass: { // Task
dist: { // Target
options: { // Target options
sassDir: 'sass',
cssDir: 'css',
environment: 'production'
}
},
dev: { // Another target
options: {
sassDir: 'sass',
cssDir: 'css'
}
}
}
});
grunt.registerTask('default', ['compass:dev', 'watch']);
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-bake');
grunt.loadNpmTasks('grunt-contrib-watch');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment