From c568876741b64556df9916ed678a6106e1e82899 Mon Sep 17 00:00:00 2001 From: sentsin Date: Sun, 17 Sep 2017 13:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 23 +++++++++++++++++++++++ gulpfile.js | 4 ++-- package.json | 22 +++++++++++++++++++--- 3 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..18924b82 --- /dev/null +++ b/.gitignore @@ -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/ \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 78aacefc..1a3f0ddb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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(){ diff --git a/package.json b/package.json index 740d6888..6e48b956 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { - "name": "layer", + "name": "layui-layer", + "realname": "layer", "version": "3.1.0", "mobile": "2.0.0", "description": "Web弹层组件", @@ -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/", @@ -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" + ] }