{"size": 644, "ext": "js", "max_stars_repo_path": "test228-miniprogram-ci/preview.js", "max_stars_repo_name": "zymseo/test-code", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test228-miniprogram-ci/preview.js", "max_issues_repo_name": "zymseo/test-code", "max_issues_repo_issues_event_min_datetime": "2020-08-09T13:55:38.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-18T08:41:46.000Z", "max_forks_repo_path": "test228-miniprogram-ci/preview.js", "max_forks_repo_name": "zhaoyiming0803/test-code", "max_forks_repo_forks_event_min_datetime": "2019-05-15T03:08:49.000Z", "max_forks_repo_forks_event_max_datetime": "2019-05-15T03:08:49.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 24.7692307692, "max_line_length": 69, "alphanum_fraction": 0.6335403727}
const ci = require('miniprogram-ci')
const path = require('path')
const {appid} = require('./config')

;(async () => {
  const project = new ci.Project({
    appid,
    type: 'miniProgram',
    projectPath: 'wxApp',
    privateKeyPath: path.resolve('./private.wx2233cfeacd62ed7b.key'),
    ignores: ['node_modules/**/*'],
  })

  const previewResult = await ci.preview({
    project,
    desc: 'hello', // 此备注将显示在“小程序助手”开发版列表中
    setting: {
      es6: true,
    },
    qrcodeFormat: 'image',
    qrcodeOutputDest: path.resolve('./images/qrcode.jpg'),
    onProgressUpdate: console.log
  })

  console.log('previewResult: ', previewResult)
})()