Skip to content

Instantly share code, notes, and snippets.

@jtrussell
Created September 13, 2013 19:19
Show Gist options
  • Save jtrussell/6554877 to your computer and use it in GitHub Desktop.
Save jtrussell/6554877 to your computer and use it in GitHub Desktop.
Demo Gruntfile
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: 'web_static/js/development/**/*.js'
},
concat: {
scripts: {
src: 'web_static/js/development/**/*.js',
dest: 'web_static/js/production/app.js'
}
},
uglify: {
all: {
src: '<%= concat.scripts.dest %>',
dest: 'web_static/css/production/app.min.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', [
'jshint',
'concat',
'uglify'
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment