Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created September 25, 2012 20:30
Show Gist options
  • Save cowboy/3784257 to your computer and use it in GitHub Desktop.
Save cowboy/3784257 to your computer and use it in GitHub Desktop.
super basic gruntfile
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
meta: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= meta.name %> - v<%= meta.version %> */\n',
},
dist: {
src: 'src/<%= meta.name %>.js',
dest: 'dist/<%= meta.name %>.min.js',
},
},
});
// Default task.
grunt.registerTask('default', ['uglify']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment