Skip to content

Commit 50f2968

Browse files
committedMar 25, 2017
添加ignore文件
2 parents d432e6f + 8b1ffaf commit 50f2968

File tree

6 files changed

+26
-0
lines changed

6 files changed

+26
-0
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# jQuery-plugins
2+
jquery 插件集合

‎gulpfile.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var gulp = require("gulp");
2+
var rename = require("gulp-rename");
3+
var uglify = require("gulp-uglify");
4+
5+
// smartAjax js 文件压缩
6+
gulp.task("sm-uglify",function(){
7+
gulp.src("./smartAjax/src/*.js")
8+
.pipe(uglify())
9+
.pipe(rename({
10+
suffix:".min"
11+
}))
12+
.pipe(gulp.dest("./smartAjax/dist"));
13+
});
14+
15+

‎package.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"devDependencies": {
3+
"gulp": "^3.9.1",
4+
"gulp-rename": "^1.2.2",
5+
"gulp-uglify": "^2.1.2"
6+
}
7+
}

‎smartAjax/dist/smartAjax.min.js

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

0 commit comments

Comments
 (0)
Please sign in to comment.