Skip to content

Commit

Permalink
Add gulp and minification task
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Nov 27, 2017
1 parent ade9dd2 commit 0aa693b
Show file tree
Hide file tree
Showing 11 changed files with 316 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Slim-scroll (_JavaScript Scroll Library_) ~ 5KB compressed
# Slim-scroll (_JavaScript Scroll Library_) ~ 4KB compressed

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.

[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)
[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)

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

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions dist/slimscroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var minify = require('gulp-minify');
var gulp = require('gulp');

gulp.task('default', function() {
gulp.src('src/*.js')
.pipe(minify({
ext:{
src:'.js',
min:'.min.js'
},
exclude: ['tasks'],
ignoreFiles: ['.combo.js', '-min.js']
}))
.pipe(gulp.dest('dist'))
});
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@
"bugs": {
"url": "https://github.com/kamlekar/slim-scroll/issues"
},
"homepage": "https://github.com/kamlekar/slim-scroll#readme"
"homepage": "https://github.com/kamlekar/slim-scroll#readme",
"devDependencies": {
"gulp": "^3.9.1",
"gulp-minify": "^2.1.0"
}
}
2 changes: 0 additions & 2 deletions slimscroll.min.js

This file was deleted.

Loading

0 comments on commit 0aa693b

Please sign in to comment.