UNPKG

final-events

Version:

Event Dispatcher with bubbling feature

35 lines (33 loc) 993 B
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: ['src/polyfills.js', 'src/init-browser.js', 'src/event.js', 'src/dispatcher.js'], dest: 'build/final-events.js' } }, uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: ['src/polyfills.js', 'src/init-browser.js', 'src/event.js', 'src/dispatcher.js'], dest: 'build/final-events.min.js' } }, watch: { scripts: { files: ['src/*.js'], tasks: ['uglify', 'concat'] } } }); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.registerTask('default', ['uglify', 'concat']); };