File tree Expand file tree Collapse file tree 5 files changed +40
-36
lines changed
Expand file tree Collapse file tree 5 files changed +40
-36
lines changed Original file line number Diff line number Diff 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
2727node_modules
28+
29+ .DS_Store
Original file line number Diff line number Diff 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
2727node_modules
28+
29+ .DS_Store
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments