Skip to content

Instantly share code, notes, and snippets.

@wihodges
Created January 17, 2014 18:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wihodges/8478326 to your computer and use it in GitHub Desktop.
Save wihodges/8478326 to your computer and use it in GitHub Desktop.
Foundation 5 + Statamic Theme Gruntfile
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
options: {
includePaths: ['bower_components/foundation/scss']
},
dist: {
options: {
outputStyle: 'compressed'
},
files: {
'css/app.css': 'scss/app.scss'
}
}
},
watch: {
grunt: { files: ['Gruntfile.js'] },
sass: {
files: 'scss/**/*.scss',
tasks: ['sass']
},
livereload: {
files: [
'*.html',
'*.php',
'js/**/*.{js,json}',
'css/*.css',
'img/**/*.{png,jpg,jpeg,gif,webp,svg}',
'../../_content/**',
'templates/**',
'partials/**'
],
options: {
livereload: true
}
}
}
});
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('build', ['sass']);
grunt.registerTask('default', ['build','watch']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment