怎样使用 miniprogram-ci 进行小程序代码的上传?
发布于 5 年前 作者 yang22 4463 次浏览 来自 问答
在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)
})()

回到顶部