init
This commit is contained in:
14
scripts/ci/preview.js
Normal file
14
scripts/ci/preview.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const ci = require('miniprogram-ci')
|
||||
const { createProject, getBaseSetting, getPreviewOutput } = require('./shared')
|
||||
|
||||
ci.preview({
|
||||
project: createProject(),
|
||||
desc: process.env.WEAPP_DESC || 'codex preview',
|
||||
qrcodeFormat: 'image',
|
||||
qrcodeOutputDest: getPreviewOutput(),
|
||||
setting: getBaseSetting(),
|
||||
onProgressUpdate() {}
|
||||
}).catch(error => {
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
})
|
||||
Reference in New Issue
Block a user