Skip to content

Commit 710b3aa

Browse files
committed
Merge pull request #59 from talgautb/master
add gulp
2 parents e3a5287 + 850a347 commit 710b3aa

File tree

7 files changed

+60
-24
lines changed

7 files changed

+60
-24
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
*.DS_Store
1+
*.DS_Store
2+
/node_modules/

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,28 @@ Example:
327327
```
328328

329329

330+
## Build tasks
331+
332+
### Installing dependencies
333+
You must have node amd npm installed in order to run the compile and compress tasks.
334+
335+
Terminal:
336+
```
337+
// (Optional) Install Gulp module globally
338+
npm install gulp -g
339+
340+
// Install multiscroll's build dependencies
341+
npm install
342+
```
343+
344+
### Task commands
345+
```
346+
// Compress the JS
347+
gulp js
348+
349+
// or just
350+
gulp
351+
```
330352

331353
## Who is using multiscroll.js
332354
If you want your page to be listed here. Please <a href="mailto:[email protected]">contact me</a> with the URL

dist/jquery.multiscroll.min.js

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

gulpfile.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*-------------------------------------------------------------------
2+
Required plugins
3+
-------------------------------------------------------------------*/
4+
var gulp = require('gulp');
5+
var rename = require('gulp-rename');
6+
var uglify = require('gulp-uglify');
7+
8+
gulp.task('js', function() {
9+
gulp.src('./jquery.multiscroll.js')
10+
.pipe(uglify({
11+
preserveComments: 'license'
12+
}))
13+
.pipe(rename({suffix: '.min'}))
14+
.pipe(gulp.dest('./dist'));
15+
});
16+
17+
// Watcher
18+
gulp.task('default', ['js']);

jquery.multiscroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* multiscroll.js 0.1.7 Beta
33
* https://github.com/alvarotrigo/multiscroll.js
44
* MIT licensed

0 commit comments

Comments
 (0)