怎样使用 miniprogram-ci 进行小程序代码的上传?

发布于 7 年前作者 yang224593 次浏览最后编辑 7 年前来自 ask
在vue项目中执行npm install miniprogram-ci --save 命令后,下面这个方法写在methods里面报错,轻微是什么原因呢?
const ci = require('miniprogram-ci')
;(async () => {
  const project = new ci.Project({
    appid: 'wxsomeappid',
    type: 'miniProgram',
    projectPath: 'the/project/path',
    privateKeyPath: 'the/path/to/privatekey',
    ignores: ['node_modules/**/*'],
  })
  const uploadResult = await ci.upload({
    project,
    version: '1.1.1',
    desc: 'hello',
    setting: {
      es6: true,
    },
    onProgressUpdate: console.log,
  })
  console.log(uploadResult)
})()

0 回复
暂无回复