Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

liufei/qshell-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qshell-bin

一键安装 qshell

作为命令行工具

全局

安装

npm i -g qshell-bin

使用

官方文档

本地

安装

npm i -D qshell-bin

使用

package.json中增加以下内容:

"scripts": {
  "deploy": "qshell account $ACCESS_KEY $SECRET_KEY user_qshell && qshell qupload .qsh
 ell.json"
}

创建.qshell.json文件,并填写配置:

{
  "src_dir": "",
  "bucket": "",
  "key_prefix": "",
  "rescan_local": true,
  "skip_suffixes": ".html"
}

在项目编译完成后,执行以下命令上传文件到七牛 CDN:

npm run deploy

作为项目依赖

安装

npm i -D qshell-bin

使用

在代码中引入:

const qshell = require('qshell-bin')

qshell(['--version'])