UNPKG

jquery.a11ybutton

Version:

When you intend to use a button in your HTML use a button, not a div, span, or anchor. However, if you can't use this plugin.

31 lines (29 loc) 942 B
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> */\n' }, build: { src: 'src/js/<%= pkg.name %>.js', dest: 'dist/<%= pkg.name %>.min.js' } }, jshint: { all: ['src/js/<%= pkg.name %>.js'] }, jasmine: { src: ['src/js/lib/jquery-1.11.0.js','src/js/jquery.a11yButton.js'], options: { specs: 'test/js/specs/a11yButtonSpec.js' } } }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-jasmine'); grunt.registerTask('default', ['uglify', 'jshint']); grunt.registerTask('travis', ['jshint','jasmine']); };