0.0.5 • Published 2 years ago
qiniu-sync v0.0.5
qiniu-sync
Usage
download config template from here.
exec command
pnpx qiniu-sync [path-to-listen] [-c <path-to-config-json>]
Parameters
path-to-listen
default:
process.cwd()
path-to-config-json
config file name(JSON file)
default:config.json
Config
{
"dir": "", // local path to sync
"accessKey": "", // qiniu accessKey
"secretKey": "", // qiniu secretKey
"bucket": "", // qiniu bucket
"prefix": "", // create subdirectory in bucket if prefix is set.
"ignore": "", // ignore rule to skip upload files.
"image": {
"slim": false // whether imagemin compress image files(now support .png, jpeg(jpg))
},
"logResourceUrl": {
"https": true // use https link
}
}