Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit 5c114c0

Browse files
committed
Merge pull request #654 from loopj/feature-build-version
Feature (build version)
2 parents 9e3b4be + b85d330 commit 5c114c0

File tree

4 files changed

+929
-887
lines changed

4 files changed

+929
-887
lines changed

Gruntfile.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = function(grunt) {
2+
3+
// Project configuration.
4+
grunt.initConfig({
5+
pkg: grunt.file.readJSON('package.json'),
6+
uglify: {
7+
options: {
8+
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
9+
compress: true
10+
},
11+
build: {
12+
src: 'src/<%= pkg.name %>.js',
13+
dest: 'build/<%= pkg.name %>.min.js'
14+
}
15+
}
16+
});
17+
18+
// Load the plugin that provides the "uglify" task.
19+
grunt.loadNpmTasks('grunt-contrib-uglify');
20+
21+
// Default task(s).
22+
grunt.registerTask('default', ['uglify']);
23+
24+
};

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "jquery-tokeninput",
3-
"version" : "1.6.1",
3+
"version" : "1.6.2",
44
"description" : "Tokeninput is a jQuery plugin which allows your users to select multiple items from a predefined list, using autocompletion as they type to find each item.",
55
"main" : [ "./src/jquery.tokeninput.js", "./styles/token-input.css" ],
66
"homepage" : "http://loopj.com/jquery-tokeninput",

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "jquery-tokeninput",
3+
"version": "2.0.0",
4+
"devDependencies": {
5+
"grunt": "~0.4.2",
6+
"grunt-contrib-jshint": "~0.6.3",
7+
"grunt-contrib-nodeunit": "~0.2.0",
8+
"grunt-contrib-uglify": "~0.3.2"
9+
}
10+
}

0 commit comments

Comments
 (0)