Skip to content

Commit 2a1f3bc

Browse files
committed
gulp stuffs
1 parent 8192e84 commit 2a1f3bc

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
*.log
3+
node_modules/*

Diff for: 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.modal.js')
8+
.pipe(uglify({preserveComments: 'license'}))
9+
.pipe(rename('jquery.modal.min.js'))
10+
.pipe(gulp.dest('.'));
11+
});

Diff for: jquery.modal.min.js

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

Diff for: package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@
77
"repository": "kylefox/jquery-modal",
88
"bugs": "https://github.com/kylefox/jquery-modal/issues",
99
"license": "MIT",
10-
"author": "Kyle Fox <[email protected]> (http://kylefox.ca/)"
10+
"author": "Kyle Fox <[email protected]> (http://kylefox.ca/)",
11+
"devDependencies": {
12+
"gulp": "^3.9.0",
13+
"gulp-rename": "^1.2.2",
14+
"gulp-uglify": "^1.4.1",
15+
}
1116
}

0 commit comments

Comments
 (0)