Skip to content

Instantly share code, notes, and snippets.

@bmelton
Created May 30, 2014 17:15
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 bmelton/08691bca80721c05ad33 to your computer and use it in GitHub Desktop.
Save bmelton/08691bca80721c05ad33 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
js: {
src: [
'static/js/lib/jquery-1.10.2.min.js',
'static/js/lib/angular.min.js',
'static/js/lib/angular-animate.min.js',
'static/js/angular-linkify.min.js',
'static/js/ui-bootstrap-0.7.0.min.js',
'static/js/lib/angular-route.min.js',
'static/js/lib/angular-loader.min.js',
'static/js/lib/angular-resource.min.js',
'static/js/lib/angular-sanitize.min.js',
'static/js/app.js',
],
dest: 'static/js/build/production.js',
},
css: {
src: [
'static/lib/bootstrap-3.0.0/dist/css/bootstrap.css',
'static/css/sprites.css',
'static/css/search-types.css',
'static/css/style.css',
],
dest: 'static/css/production.css',
}
},
uglify: {
build: {
src: 'static/js/build/production.js',
dest: 'static/js/build/production.min.js',
}
},
cssmin: {
build: {
src: 'static/css/production.css',
dest: 'static/css/production.min.css',
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-css');
grunt.registerTask('default', ['concat', 'uglify', 'cssmin']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment