Skip to content

Commit 0aa693b

Browse files
author
venkateshwar@divami.com
committed
Add gulp and minification task
1 parent ade9dd2 commit 0aa693b

File tree

11 files changed

+316
-7
lines changed

11 files changed

+316
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Slim-scroll (_JavaScript Scroll Library_) ~ 5KB compressed
1+
# Slim-scroll (_JavaScript Scroll Library_) ~ 4KB compressed
22

33
Slim scroll is a replacement of default scrollbar provided by browsers on Windows. This library lets you design the scroll-bar by using simple css properties. It is created using javascript and css.
44

5-
[Download](https://github.com/kamlekar/slim-scroll/releases/latest)  |  [Github](https://github.com/venkateshwar/slim-scroll/)  |  [Demo](https://rawgit.com/venkateshwar/slim-scroll/master/test/index.html)   |   [CDNjs](https://cdnjs.com/libraries/slim-scroll)
5+
[Download](https://github.com/kamlekar/slim-scroll/releases/latest)  |  [Github](https://github.com/venkateshwar/slim-scroll/)  |  [Demo](https://rawgit.com/venkateshwar/slim-scroll/master/tests/test1/index.html)   |   [CDNjs](https://cdnjs.com/libraries/slim-scroll)
66

77
**Tested on**: IE9+, Chrome and Firefox.
88

File renamed without changes.

dist/slimscroll.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.

gulpfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var minify = require('gulp-minify');
2+
var gulp = require('gulp');
3+
4+
gulp.task('default', function() {
5+
gulp.src('src/*.js')
6+
.pipe(minify({
7+
ext:{
8+
src:'.js',
9+
min:'.min.js'
10+
},
11+
exclude: ['tasks'],
12+
ignoreFiles: ['.combo.js', '-min.js']
13+
}))
14+
.pipe(gulp.dest('dist'))
15+
});

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,9 @@
2424
"bugs": {
2525
"url": "https://github.com/kamlekar/slim-scroll/issues"
2626
},
27-
"homepage": "https://github.com/kamlekar/slim-scroll#readme"
27+
"homepage": "https://github.com/kamlekar/slim-scroll#readme",
28+
"devDependencies": {
29+
"gulp": "^3.9.1",
30+
"gulp-minify": "^2.1.0"
31+
}
2832
}

slimscroll.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)