@bve/cdn-cli
upload project to CDN
Last updated a year ago by shihuajunze .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @bve/cdn-cli 
SYNC missed versions from official npm registry.

简介

项目上传到CDN,目前只支持七牛云、腾讯云

安装

npm install -g @bve/cdn-cli

初始化

生成配置文件

bve-cdn init

在当前目录生成cdn.config.js

/**
 * qiniu 配置文件
 * @param {String} cdn cdn类型
 * @param {String} bucket cdn服务配置(在cdn上可以查到)
 * @param {String} accessKey cdn服务配置(在cdn上可以查到)
 * @param {String} secretKey cdn服务配置(在cdn上可以查到)
 * @param {Object} glob 上传文件配置
 * @param {String} glob.pattern 匹配要上传的文件
 * @param {Array||String} glob.ignore 匹配要排除的文件
 */

module.exports = {
  cdn: 'qiniu',
  bucket: '',
  accessKey: '',
  secretKey: '',
  glob: {
    pattern: '',
    ignore: [],
  }
}

上传文件

配置好配置文件后,执行:

bve-cdn upload

执行其它配置文件

bve-cdn upload ./cdn.dev.config.js

其它

bve-cdn help

Current Tags

  • 0.0.6                                ...           latest (a year ago)

4 Versions

  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 5
Last Month 0
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |