Skip to content

Commit

Permalink
docs: add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvin-Liu committed Jun 18, 2023
1 parent 2f50bdc commit 02bd07d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# STATIC-UPLOAD

上传静态资源到服务器,目前支持 aliyun oss。

## 安装

```bash
$ pnpm global add @vingogo/static-upload
```

## 配置文件

如果使用 OSS,则在项目根目录下创建 oss.config.js,配置上传基本信息:

```javascript
module.exports = {
bucket: 'vingogo',
region: 'oss-cn-guangzhou',
directory: 'dist',
prefix: `test`
};
```

## 使用

```bash
$ static-upload start
```

0 comments on commit 02bd07d

Please sign in to comment.