Skip to content

Commit 9b70411

Browse files
committed
#10: license
1 parent 503c127 commit 9b70411

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

Gruntfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// TODO: append license comment to min.js file
2-
31
function loadConfig(path) {
42
var glob = require('glob');
53
var object = {};

dist/jquery.tagsinput-revisited.min.js

Lines changed: 5 additions & 1 deletion
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = function(grunt) {
22
grunt.registerTask('assets:production',
33
[
44
'cssmin:plugin',
5-
'uglify:plugin'
5+
'uglify:plugin',
6+
'file_append:plugin'
67
]);
78
};

grunt-tasks/options/file_append.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
plugin: {
3+
files: [
4+
{
5+
prepend: "/* jQuery Tags Input Revisited Plugin\n\n* Copyright (c) Krzysztof Rusnarczyk\n* Licensed under the MIT license */\n",
6+
input: 'dist/jquery.tagsinput-revisited.min.js',
7+
output: 'dist/jquery.tagsinput-revisited.min.js'
8+
}
9+
]
10+
}
11+
};

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222
"devDependencies": {
2323
"glob": "^7.1.1",
2424
"grunt": "^1.0.1",
25+
"grunt-cli": "^1.2.0",
2526
"grunt-contrib-cssmin": "^1.0.2",
2627
"grunt-contrib-uglify": "^2.0.0",
2728
"grunt-contrib-watch": "^1.0.0",
29+
"grunt-file-append": "0.0.7",
2830
"grunt-newer": "^1.2.0",
2931
"jit-grunt": "^0.10.0",
3032
"load-grunt-tasks": "^3.5.2",
31-
"time-grunt": "^1.4.0",
32-
"grunt-cli": "^1.2.0"
33+
"time-grunt": "^1.4.0"
3334
}
3435
}

0 commit comments

Comments
 (0)