module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), banner: '/*!\n'+ ' * Bootstrap Confirmation <%= pkg.version %>\n'+ ' * Copyright 2013 Nimit Suwannagate \n'+ ' * Copyright <%= grunt.template.today("yyyy") %> Damien "Mistic" Sorel \n'+ ' * Licensed under the Apache License, Version 2.0 (the "License")\n'+ ' */', // compress js uglify: { options: { banner: '<%= banner %>\n' }, dist: { files: { 'bootstrap-confirmation.min.js': [ 'bootstrap-confirmation.js' ] } } }, // jshint tests jshint: { lib: { files: { src: [ 'bootstrap-confirmation.js' ] } } } }); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.registerTask('default', [ 'uglify' ]); grunt.registerTask('test', [ 'jshint' ]); };