3 module.exports = function (grunt) {
7 grunt.loadNpmTasks('grunt-contrib-concat');
8 grunt.loadNpmTasks('grunt-contrib-connect');
9 grunt.loadNpmTasks('grunt-contrib-uglify');
10 grunt.loadNpmTasks('grunt-contrib-watch');
13 pkg: grunt.file.readJSON('package.json'),
26 'src/content_editable.js',
28 'src/vendor/textarea_caret.js',
31 dest: 'dist/jquery.textcomplete.js'
38 '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
39 '<%= grunt.template.today("yyyy-mm-dd") %> */',
40 sourceMap: 'dist/jquery.textcomplete.min.map'
44 'dist/jquery.textcomplete.min.js': [
45 'dist/jquery.textcomplete.js'
63 tasks: ['concat', 'uglify']
68 grunt.registerTask('default', ['connect', 'watch']);
69 grunt.registerTask('build', ['concat', 'uglify']);