JSPM

hexo-deployer-upyun-pro

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q40264F
  • License ISC

Hexo deployer plugin for UPYUN, with auto remote cleaning feature.

Package Exports

  • hexo-deployer-upyun-pro
  • hexo-deployer-upyun-pro/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hexo-deployer-upyun-pro) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

hexo-deployer-upyun-pro

Hexo 博客又拍云部署插件,支持自动清理远程多余文件。

本项目修改至 hexo-deployer-upyun2019(https://github.com/abcdGJJ/hexo-deployer-upyun2019) 版本,增加自动清理远端多余文件功能。

安装

npm install hexo-deployer-upyun-pro --save

用法

编辑根目录的_config.yml文件的deploy字段

配置又拍云存储的服务名称、操作员名称、操作员密码

deploy:
  - type: upyun # 必须是 upyun
    serviceName: 服务名称
    operatorName: 操作员名称
    operatorPassword: 操作员密码
    path: / # 上传目录(选填,默认为根目录)
    autoclean: false # 是否开启自动清理远端多余文件(可选,默认为 false,如果为 true,则会删除本地 public 文件夹中不存在而远端服务名对应 path 下存在的文件)