zby-nova-upload

0.0.9 • Public • Published

started

install

npm install zby-nova-upload

config.json

{
    "region" : "your region",
    "accessKeyId" : "your access key id",
    "accessKeySecret" : "your access secret",
    "bucket" : "your bucket",
    
    "ossPath" : "your oss nova courses path",
    "ossHost" : "your oss domain"
}

api

uploadNovaZip

'use strict';
 
var zbyNovaUpload = require('zby-nova-upload');
 
var test = async function(){
    var sourceNovaZipPath  = 'd:/test/course/2018032003-1.7.2.zip';
    var cocosFileFolder = 'd:/test/nova';
    var ossConfig = require('./config.json');
 
    var s = await zbyNovaUpload.uploadNovaZip(sourceNovaZipPath, cocosFileFolder, ossConfig);
    console.log(s);
};
 
test();

also in cli

npm install -g zby-nova-upload
 
and put ali-oss config.json file into somewhere
 
znova upload "d:/test/course/2018032003-1.7.2.zip" "d:/test/nova" "z:/workspaces/zby-nova-upload/test/config.json"
znova upload "d:/test/course/2018032003-1.7.2.zip" "d:/test/nova" "z:/workspaces/zby-nova-upload/test/config.json" -d
 
or
 
znova u "d:/test/course/2018032003-1.7.2.zip" "d:/test/nova" "z:/workspaces/zby-nova-upload/test/config.json"
znova u "d:/test/course/2018032003-1.7.2.zip" "d:/test/nova" "z:/workspaces/zby-nova-upload/test/config.json" -d
 
or
 
znova | znova -h for help

version

0.0.4.20200806

  1. move to gitlab

0.0.3.20190218

  1. update qiao.util.all@0.2.2

0.0.2.20190122

  1. update qiao.util.all@0.2.0
  2. add dev mode
  3. oss config bug fix

0.0.1.20190117

  1. nova upload ok
  2. add ?cocos=version
  3. rm temp folder
  4. update qiao.util.all
  5. update check zip method
  6. add znova
  7. 取消注释

Readme

Keywords

Package Sidebar

Install

npm i zby-nova-upload

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

10.1 kB

Total Files

7

Last publish

Collaborators

  • npm_insistime
  • qiaowenbin