0.2.5 • Published 10 months ago

oss-deploy v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

oss-deploy

自动部署前端项目到 oss

使用

npm i oss-deploy -D

在 package.json 中添加命令

{
  "scripts": {
    "pub": "oss-deploy"
  }
}

配置

  • 配置文件默认在项目根目录下
  • 配置文件默认为 oss-deploy.config.json
  • 配置文件可以添加环境,如 oss-deploy.config.dev.json

在项目根目录下创建 oss-deploy.config.json 文件

{
  "domain": "https://demo.com",
  "accessKeyId": "xxxxx",
  "accessKeySecret": "xxx",
  "bucket": "bucket-name",
  "region": "oss-cn-beijing",
  "build": "npm run build"
}

配置项

  • domain 自定义域名可为空
  • accessKeyId 阿里云 accessKeyId
  • accessKeySecret 阿里云 accessKeySecret
  • bucket 阿里云 bucket
  • region 阿里云 region
  • build 打包命令 默认为 npm run build
  • dist 打包目录 默认为 dist
  • barkApi bark 推送地址
  • refreshFilePath 刷新文件路径 默认为 ./refresh.txt
0.2.5

10 months ago

0.2.4

10 months ago

0.2.3

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.10

11 months ago

0.1.9

11 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.3

12 months ago

1.0.0

12 months ago