Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kylesuss/8458888 to your computer and use it in GitHub Desktop.

Select an option

Save kylesuss/8458888 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
concat: {
options: {
separator: ';'
},
dist: {
src: ['js/jquery.js', 'js/pin.js', 'js/animation.js'],
dest: 'js/script.js'
}
},
uglify: {
js: {
files: {
'js/script.js': ['js/script.js']
}
}
},
watch: {
scripts: {
files: ['js/*.js'],
tasks: ['concat', 'uglify', 'jade']
}
},
jade: {
compile: {
options: {
debug: false
},
files: {
'index.html': ['index.jade']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.registerTask('default', ['concat', 'uglify', 'jade']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment