Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
完善
Browse files Browse the repository at this point in the history
  • Loading branch information
sentsin committed Sep 17, 2017
1 parent 56006ae commit c568876
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
1.8.5/
*.iml
.idea/
.ipr
.iws
*~
~*
*.diff
*.patch
*.bak
.DS_Store
Thumbs.db
.svn/
*.swp
.nojekyll
.project
.settings/
node_modules/
_site/
.npmignore
release/
skin/moon/
src/skin/moon/
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ var task = {
.pipe(gulp.dest('./dist'));

return gulp.src('./src/layer.js').pipe(uglify())
.pipe(header('/*! <%= pkg.name %>-v<%= pkg.version %> <%= pkg.description %> <%= pkg.license %> License <%= pkg.homepage %> By <%= pkg.author %> */\n ;', {pkg: pkg}))
.pipe(header('/*! <%= pkg.realname %>-v<%= pkg.version %> <%= pkg.description %> <%= pkg.license %> License <%= pkg.homepage %> By <%= pkg.author %> */\n ;', {pkg: pkg}))
.pipe(gulp.dest('./dist'));

}
,mobile: function() {
return gulp.src('./src/mobile/layer.js').pipe(uglify())
.pipe(header('/*! <%= pkg.name %> mobile-v<%= pkg.mobile %> <%= pkg.description %> <%= pkg.license %> License <%= pkg.homepage %>mobile By <%= pkg.author %> */\n ;', {pkg: pkg}))
.pipe(header('/*! <%= pkg.realname %> mobile-v<%= pkg.mobile %> <%= pkg.description %> <%= pkg.license %> License <%= pkg.homepage %>mobile By <%= pkg.author %> */\n ;', {pkg: pkg}))
.pipe(gulp.dest('./dist/mobile'));
}
,other: function(){
Expand Down
22 changes: 19 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "layer",
"name": "layui-layer",
"realname": "layer",
"version": "3.1.0",
"mobile": "2.0.0",
"description": "Web弹层组件",
Expand All @@ -10,7 +11,7 @@
},
"repository": {
"type": "https",
"url": "https://github.com/sentsin/layer.git"
"url": "git+https://github.com/sentsin/layer.git"
},
"author": "贤心",
"homepage": "http://layer.layui.com/",
Expand All @@ -21,5 +22,20 @@
"gulp-rename": "^1.2.2",
"gulp-header": "^1.8.8",
"del": "^2.2.2"
}
},
"bugs": {
"url": "https://github.com/sentsin/layer/issues"
},
"directories": {
"test": "test"
},
"dependencies": {},
"keywords": [
"layer",
"dialog",
"tips",
"alert",
"confirm",
"window"
]
}

1 comment on commit c568876

@dengzhiqiang
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gulp.task('layer', task.minjs); //压缩PC版本 应该是--> gulp.task('layer', task.layer)
gulp.task('mobile', task.mincss); //压缩Mobile文件 应该是--> gulp.task('layer', task.mobile)

Please sign in to comment.