Skip to content

Commit

Permalink
gulp stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylefox committed Oct 9, 2015
1 parent 8192e84 commit 2a1f3bc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
*.log
node_modules/*
11 changes: 11 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var gulp = require('gulp');
var uglify = require("gulp-uglify");
var rename = require('gulp-rename');


gulp.task('min', function() {
gulp.src('jquery.modal.js')
.pipe(uglify({preserveComments: 'license'}))
.pipe(rename('jquery.modal.min.js'))
.pipe(gulp.dest('.'));
});
2 changes: 1 addition & 1 deletion jquery.modal.min.js

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

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"repository": "kylefox/jquery-modal",
"bugs": "https://github.com/kylefox/jquery-modal/issues",
"license": "MIT",
"author": "Kyle Fox <[email protected]> (https://kylefox.ca/)"
"author": "Kyle Fox <[email protected]> (https://kylefox.ca/)",
"devDependencies": {
"gulp": "^3.9.0",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.4.1",
}
}

0 comments on commit 2a1f3bc

Please sign in to comment.