Skip to content

Commit f6ef2b2

Browse files
committed
Merge branch 'master' of github.com:xoxco/jQuery-Tags-Input
2 parents 7a050e1 + da0368c commit f6ef2b2

11 files changed

+96
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
bower_components

Gruntfile.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
function loadConfig(path) {
2+
var glob = require('glob');
3+
var object = {};
4+
var key;
5+
6+
glob.sync('*', {cwd: path}).forEach(function(option) {
7+
key = option.replace(/\.js$/,'');
8+
object[key] = require(path + option);
9+
});
10+
11+
return object;
12+
}
13+
14+
module.exports = function(grunt) {
15+
grunt.loadTasks('grunt-tasks');
16+
17+
require('time-grunt')(grunt);
18+
19+
// Only load tasks when they are needed
20+
require('jit-grunt')(grunt, {
21+
ngtemplates: 'grunt-angular-templates'
22+
});
23+
24+
var config = {
25+
pkg: grunt.file.readJSON('package.json'),
26+
env: process.env
27+
};
28+
29+
grunt.util._.extend(config, loadConfig('./grunt-tasks/options/'));
30+
grunt.initConfig(config);
31+
};

dist/jquery.tagsinput.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.tagsinput.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grunt-tasks/assets_production.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = function(grunt) {
2+
grunt.registerTask('assets:production',
3+
[
4+
'cssmin:plugin',
5+
'uglify:plugin'
6+
]);
7+
};

grunt-tasks/options/cssmin.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
options: {
3+
shorthandCompacting: false
4+
},
5+
plugin: {
6+
files: {
7+
'dist/jquery.tagsinput.min.css': ['src/jquery.tagsinput.css']
8+
}
9+
}
10+
};

grunt-tasks/options/uglify.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
options: {
3+
mangle: true
4+
},
5+
plugin: {
6+
files: {
7+
'dist/jquery.tagsinput.min.js': ['src/jquery.tagsinput.js']
8+
}
9+
}
10+
};

jquery.tagsinput.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "jQuery-Tags-Input",
3+
"version": "1.3.3",
4+
"description": "",
5+
"main": "jquery.tagsinput.js",
6+
"directories": {
7+
"test": "test"
8+
},
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/xoxco/jQuery-Tags-Input.git"
15+
},
16+
"author": "",
17+
"license": "ISC",
18+
"bugs": {
19+
"url": "https://github.com/xoxco/jQuery-Tags-Input/issues"
20+
},
21+
"homepage": "https://github.com/xoxco/jQuery-Tags-Input",
22+
"devDependencies": {
23+
"glob": "^4.3.1",
24+
"grunt": "^0.4.5",
25+
"grunt-contrib-cssmin": "^0.10.0",
26+
"grunt-contrib-uglify": "^0.6.0",
27+
"grunt-contrib-watch": "^0.6.1",
28+
"grunt-newer": "^0.8.0",
29+
"jit-grunt": "^0.8.0",
30+
"load-grunt-tasks": "^0.6.0",
31+
"time-grunt": "^0.4.0",
32+
"grunt-cli": "^0.1.13"
33+
}
34+
}
File renamed without changes.

0 commit comments

Comments
 (0)