diff --git a/MIT-LICENSE.txt b/LICENSE-MIT.txt similarity index 100% rename from MIT-LICENSE.txt rename to LICENSE-MIT.txt diff --git a/grunt.js b/grunt.js new file mode 100644 index 0000000..3171fc3 --- /dev/null +++ b/grunt.js @@ -0,0 +1,66 @@ +/*global module:false*/ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: '', + meta: { + banner: '/*\n' + + ' * <%= pkg.title || pkg.name %>\n' + + ' * Version <%= pkg.version %>' + + '\n' + + ' * Relased: <%= grunt.template.today("yyyy-mm-dd") %>\n' + + ' *\n' + + ' * <%= pkg.homepage + "\n" %>' + + ' *\n' + + ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' + + ' *\n' + + ' * Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %>' + + '\n' + + ' */' + }, + + concat: { + dist: { + src: ['', '.js>'], + dest: 'dist/<%= pkg.name %>.js' + } + }, + min: { + dist: { + src: ['', ''], + dest: 'dist/<%= pkg.name %>.min.js' + } + }, + lint: { + files: ['grunt.js', 'src/**/*.js'] + }, + watch: { + files: '', + tasks: 'lint qunit' + }, + jshint: { + options: { + curly: true, + eqeqeq: true, + immed: true, + latedef: true, + newcap: true, + noarg: true, + sub: true, + undef: true, + boss: true, + eqnull: true, + browser: true + }, + globals: { + jQuery: true + } + }, + uglify: {} + }); + + // Default task. + grunt.registerTask('default', 'lint qunit concat min'); + +}; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..cbff3b7 --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "jquery.mentionsInput", + "title": "jquery.mentionsInput", + "description": "jquery.mentionsInput is a small, but awesome UI component that allows you to '@mention' someone in a text message.", + "version": "1.5", + "homepage": "http://podio.github.com/jquery-mentions-input/", + "author": { + "name": "Kenneth Auchenberg (Citrix Systems Inc)", + "url": "http://podio.com/" + }, + "repository": { + "type": "git", + "url": "https://github.com/podio/jquery-mentions-input.git" + }, + "bugs": { + "url": "https://github.com/podio/jquery-mentions-input/issues" + }, + "licenses": [ + { + "type": "MIT", + "url": "https://github.com/cowboy/grunt-jquery-example/blob/master/LICENSE-MIT" + } + ], + "dependencies": { + "jquery": "~1.5", + "underscorejs" : "~1.5" + }, + "keywords": [] +} \ No newline at end of file diff --git a/jquery.mentionsInput.js b/src/jquery.mentionsInput.js similarity index 100% rename from jquery.mentionsInput.js rename to src/jquery.mentionsInput.js