mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
16 lines
405 B
JavaScript
16 lines
405 B
JavaScript
const path = require('path');
|
|
const { dev } = require('@vant/cli');
|
|
const { exec } = require('child_process');
|
|
|
|
const gulpConfig = path.resolve(__dirname, './compiler.js');
|
|
|
|
async function run() {
|
|
await dev();
|
|
|
|
const p = exec(`npx gulp -f ${gulpConfig} buildExample --color`);
|
|
p.stdout.on('data', (stdout) => console.info(stdout));
|
|
p.stderr.on('data', (stderr) => console.info(stderr));
|
|
}
|
|
|
|
run();
|