Skip to content

Instantly share code, notes, and snippets.

@luisdalmolin
Created May 6, 2013 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luisdalmolin/5529249 to your computer and use it in GitHub Desktop.
Save luisdalmolin/5529249 to your computer and use it in GitHub Desktop.
Grunt Boilerplate
module.exports = function(grunt) {
grunt.initConfig({
coffee: {
compile: {
files: {
'assets/js/main.js': 'assets/js/coffee/main.coffee',
}
}
},
sass: {
dist: {
files: {
'assets/css/main.css': 'assets/css/scss/main.scss'
}
}, options: {
'compass': true,
'style': 'compressed'
}
},
uglify: {
my_target: {
files: {
'assets/js/main.min.js': ['assets/js/main.js']
}
}
},
watch: {
coffee: {
files: ['assets/js/coffee/*.coffee'],
tasks: ['coffee', 'uglify']
},
sass: {
files: ['assets/css/scss/*'],
tasks: 'sass'
}
}
});
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['coffee', 'sass', 'watch']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment