Created
March 30, 2014 21:09
-
-
Save stackpoet/9879833 to your computer and use it in GitHub Desktop.
GruntFile.JS -Sass-Compass-Ugilfy-MatchDep-Susy-LiveReload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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