Skip to content

Commit 5dbc19e

Browse files
committed
update version after merge
2 parents ecd5fa6 + e1e33b6 commit 5dbc19e

File tree

5 files changed

+40
-36
lines changed

5 files changed

+40
-36
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ build/Release
2525
# Dependency directory
2626
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
2727
node_modules
28+
29+
.DS_Store

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ build/Release
2525
# Dependency directory
2626
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
2727
node_modules
28+
29+
.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gulp.task('oss', function(){
1515
secretAccessKey: '*********',
1616
endpoint: 'http://oss-cn-***.aliyuncs.com',
1717
apiVersion: '2013-10-15',
18-
prefix: 'assets/js',
18+
prefix: 'assets/js', //for no prefix: prefix: ''
1919
bucket: 'test'
2020
};
2121
//./js/a.js -> <prefix>/a.js

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function oss(option) {
3939
}
4040
var getFileKey = function(){
4141
return option.prefix
42-
+ ((!option.prefix || option.prefix[option.prefix.length - 1]) === '/' ? '' : '/')
42+
+ ((!option.prefix || (option.prefix[option.prefix.length - 1]) === '/') ? '' : '/')
4343
+ (option.versioning ? version + '/' : '')
4444
+ path.relative(file.base, file.path);
4545
};

package.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
2-
"name": "gulp-alioss",
3-
"version": "0.1.2",
4-
"description": "A plugin for Gulp that uploads files to Aliyun OSS",
5-
"main": "index.js",
6-
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
8-
},
9-
"repository": {
10-
"type": "git",
11-
"url": "https://github.com/wefound/gulp-alioss"
12-
},
13-
"engines": {
14-
"node": "*"
15-
},
16-
"dependencies": {
17-
"gulp-util": "~2.2.9",
18-
"minimatch": "^2.0.4",
19-
"moment": "~2.7.0",
20-
"through2": "~0.4.0",
21-
"q": "~1.0.0",
22-
"aliyun-sdk": "~1.3.5"
23-
},
24-
"keywords": [
25-
"gulp",
26-
"plugin",
27-
"aliyun",
28-
"oss"
29-
],
30-
"author": "junqiang <mail@junqiang.wang> (http://junqiang.wang)",
31-
"license": "MIT",
32-
"bugs": {
33-
"url": "https://github.com/wefound/gulp-alioss/issues"
34-
},
35-
"homepage": "https://github.com/wefound/gulp-alioss"
2+
"name": "gulp-alioss",
3+
"version": "0.1.3",
4+
"description": "A plugin for Gulp that uploads files to Aliyun OSS",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/wefound/gulp-alioss"
12+
},
13+
"engines": {
14+
"node": "*"
15+
},
16+
"dependencies": {
17+
"gulp-util": "~2.2.9",
18+
"minimatch": "^2.0.4",
19+
"moment": "~2.7.0",
20+
"through2": "~0.4.0",
21+
"q": "~1.0.0",
22+
"aliyun-sdk": "~1.3.5"
23+
},
24+
"keywords": [
25+
"gulp",
26+
"plugin",
27+
"aliyun",
28+
"oss"
29+
],
30+
"author": "junqiang <mail@junqiang.wang> (http://junqiang.wang)",
31+
"license": "MIT",
32+
"bugs": {
33+
"url": "https://github.com/wefound/gulp-alioss/issues"
34+
},
35+
"homepage": "https://github.com/wefound/gulp-alioss"
3636
}

0 commit comments

Comments
 (0)