Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Last active December 15, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save elijahmanor/5331806 to your computer and use it in GitHub Desktop.
Save elijahmanor/5331806 to your computer and use it in GitHub Desktop.
Angry Birds of JavaScript: Mighty Eagle - Automation
npm install -g bower
npm install -g grunt-cli grunt-init
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'src/<%= pkg.name %>.js',
dest: 'build/<%= pkg.name %>.min.js'
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task(s).
grunt.registerTask('default', ['uglify']);
};
{
"name": "my-project-name",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-nodeunit": "~0.1.2"
}
}
npm install -g yo grunt-cli bower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment