Skip to content

Instantly share code, notes, and snippets.

@abepetrillo
Created May 24, 2013 13:36
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 abepetrillo/5643554 to your computer and use it in GitHub Desktop.
Save abepetrillo/5643554 to your computer and use it in GitHub Desktop.
Example grunt config
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'src/<%= pkg.name %>.js',
dest: 'build/<%= pkg.name %>.min.js'
}
},
jshint: {
all: [
'public/javascripts/**/*.js',
'spec/javascripts/**/*_spec.js'
],
options: {
curly: true,
eqeqeq: true,
eqnull: true,
browser: true,
globals: {
jQuery: true
},
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-jshint');
// Default task(s).
grunt.registerTask('default', ['uglify']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment