Skip to content

Instantly share code, notes, and snippets.

@stackpoet
Created March 30, 2014 21:09
Show Gist options
  • Save stackpoet/9879833 to your computer and use it in GitHub Desktop.
Save stackpoet/9879833 to your computer and use it in GitHub Desktop.
GruntFile.JS -Sass-Compass-Ugilfy-MatchDep-Susy-LiveReload
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.initConfig({
uglify: {
my_target: {
files: {
'_/js/script.js': ['_/components/js/*.js']
} //files
} //my_target
}, //uglify
compass: {
dev: {
options: {
config: 'config.rb'
} //options
} //dev
}, //compass
watch: {
options: { livereload: true },
scripts: {
files: ['_/components/js/*.js'],
tasks: ['uglify']
}, //script
sass: {
files: ['_/components/sass/*.scss'],
tasks: ['compass:dev']
}, //sass
html: {
files: ['*.html']
}
} //watch
}) //initConfig
grunt.registerTask('default', 'watch');
} //exports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment