Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
aliyun-oss-deploy
Advanced tools
An aliyun oss deploy tool, putObject and putStream are all supported.
一个用于部署静态资源到 aliyun oss 的模块,支持 putObject 和 putStream。可以代码方式或者 cli 方式调用!
npm i --save-dev aliyun-oss-deploy
const deploy = require('aliyun-oss-deploy');
deploy(path, ossConfig[, prefix, byStream]);
注意:prefix 用来配置资源版本号比较合适,默认为空;byStream 默认为 false,表示使用 putObject 方法!
aliyun-oss-deploy -p ./dist -c .aliossrc -d static
帮助文档:
aliyun-oss-deploy --help
Options:
--version Show version number [boolean]
-p, --filePath Set your upload files path [string]
-d, --prefix Set the target dir of upload [string]
-c, --aliossrc Set your .aliossrc file path [string]
-s, --useStream Upload file by putStream [boolean]
--help Show help [boolean]
可以在 package.json 中直接使用
{
"script": {
"deploy": "aliyun-oss-deploy -p ./dist"
}
}
无论是代码方式还是 cli 方式,aliyun oss 配置文件都是下面的数据结构!
需要注意的是:对于 CLI 方法,配置文件必须是 JSON 格式(双引号)!
{
"accessKeyId": "your accessKeyId",
"accessKeySecret": "your accessKeySecret",
"region": "your region",
"bucket": "your bucket"
}
注意:region
是区分 endpoint 的区域分类。
ISC@hustcc.
FAQs
An aliyun oss deploy tool, putObject and putStream are all supported.
We found that aliyun-oss-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.