在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jqnote/gulp-alioss开源软件地址(OpenSource Url):https://github.com/jqnote/gulp-alioss开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-ossAliyun Oss Client for Gulp Installnpm install gulp-alioss DEMOvar gulp = require('gulp');
var oss = require('gulp-alioss');
gulp.task('oss', function(){
var options = {
accessKeyId: '********',
secretAccessKey: '*********',
endpoint: 'http://oss-cn-***.aliyuncs.com',
apiVersion: '2013-10-15',
prefix: 'assets/js', //for no prefix: prefix: ''
bucket: 'test'
};
//./js/a.js -> <prefix>/a.js
// ......
//./js/b/a.js -> <prefix>/b/a.js
return gulp.src(['./js/**/*']).pipe(oss(options));
}); 操作结果cd /path/to/gulpfile.js/
gulp oss
[14:50:59] Using gulpfile ~/path/to/gulpfile.js
[14:50:59] Starting 'oss'...
[14:50:59] Finished 'oss' after *** ms
[14:50:59] OK: assets/a.js
[14:50:59] OK: assets/b/a.js
.... |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论