收藏
回答

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

在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)
})()


回答关注问题邀请回答
收藏

1 个回答

  • 敏
    2020-06-28

    开发者工具-》工具-》构建npm

    2020-06-28
    有用
    回复
登录 后发表内容
问题标签