Skip to content

Commit 6e5ee26

Browse files
committed
gulp & package.json
1 parent 7b45396 commit 6e5ee26

5 files changed

+40
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/*

gulpfile.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var gulp = require('gulp');
2+
var uglify = require("gulp-uglify");
3+
var rename = require('gulp-rename');
4+
5+
6+
gulp.task('min', function() {
7+
gulp.src('jquery.tablesort.js')
8+
.pipe(uglify({preserveComments: 'license'}))
9+
.pipe(rename('jquery.tablesort.min.js'))
10+
.pipe(gulp.dest('.'));
11+
});

jquery.tablesort.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
A simple, lightweight jQuery plugin for creating sortable tables.
33
https://github.com/kylefox/jquery-tablesort
4-
Version 0.0.4 - modified by kelesi (compatibility with floatThead and forcing redraw after tablesort:start trigger) - removed flicker
4+
Version 0.0.4
55
*/
66

77
$(function() {
@@ -14,7 +14,7 @@ $(function() {
1414
this.$thead = this.$table.find('thead');
1515
this.settings = $.extend({}, $.tablesort.defaults, settings);
1616
this.$sortCells = this.$thead.length > 0 ? this.$thead.find('th:not(.no-sort)') : this.$table.find('th:not(.no-sort)');
17-
this.$sortCells.bind('click.tablesort', function() {
17+
this.$sortCells.bind('click.tablesort', function() {
1818
self.sort($(this));
1919
});
2020
this.index = null;
@@ -76,7 +76,7 @@ $(function() {
7676
return 0;
7777
}
7878
});
79-
79+
8080
$.each(sortedMap, function(i, entry) {
8181
table.append(entry.row);
8282
});

jquery.tablesort.min.js

+1-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "jquery-tablesort",
3+
"version": "0.0.4",
4+
"description": "A simple, lightweight jQuery plugin for creating sortable tables.",
5+
"main": "jquery.tablesort.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/kylefox/jquery-tablesort.git"
12+
},
13+
"author": "Kyle Fox <[email protected]>",
14+
"license": "MIT",
15+
"bugs": {
16+
"url": "https://github.com/kylefox/jquery-tablesort/issues"
17+
},
18+
"homepage": "https://github.com/kylefox/jquery-tablesort#readme",
19+
"devDependencies": {
20+
"gulp": "^3.9.0",
21+
"gulp-rename": "^1.2.2",
22+
"gulp-uglify": "^1.4.1"
23+
}
24+
}

0 commit comments

Comments
 (0)