/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/taro-cli/postinstall.js
14 строк
478 B
NobodyZheng
taro 4.x主包适配效能插件 (#17492)
09 апр 2025, 04:39
Не верифицирован
09 апр 2025, 04:39
4a4d818
Код
Авторство
О чём код?
const { exec } = require('child_process') const axios = require('axios') axios.get('https://taro.jd.com/', { timeout: 5000 }) .then(() => { exec('./bin/taro global-config add-plugin @jdtaro/plugin-build-report-performance@latest --registry http://registry.m.jd.com', (error, _stdout, _stderr) => { if (error) { console.error(`install performance plugin error: ${error}`) } }) console.log('cli postinstall success') }) .catch(() => { })