1 Star 0 Fork 436

ryvius_key/element-plus

forked from element-plus/element-plus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bincomp.js 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
zazzaz 提交于 2020-11-26 23:09 . build: add type (#685)
/* eslint-disable @typescript-eslint/no-var-requires */
const cp = require('child_process')
const { getPackagesSync } = require('@lerna/project')
const ora = require('ora')
const chalk = require('chalk')
const spinner = ora(`${chalk.blue('Building...')}`).start()
const pkgs = getPackagesSync()
.map(pkg => pkg.name)
.filter(name =>
name.includes('@element-plus') &&
!name.includes('transition') &&
!name.includes('utils'),
)
const STEP = 4
const START = 0
const buildChild = (start, end) => {
let s = start
let e = end
const c1 = cp.spawn('node', ['./build/build.component.js', s, e])
c1.stdout.on('data', function (data) {
spinner.info(`${chalk.blue(data)}`)
})
c1.stderr.on('data', function (data) {
spinner.warn(`${chalk.red(data)}`)
})
c1.on('close', function (code) {
s += STEP
e += STEP
if (s > pkgs.length) {
spinner.succeed(`${chalk.green('Build done. Exit code ' + code)}`)
return
}
buildChild(s, e)
})
}
/**
* @link https://github.com/ezolenko/rollup-plugin-typescript2/issues/177
*/
buildChild(START, STEP)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ryvius_key/element-plus.git
git@gitee.com:ryvius_key/element-plus.git
ryvius_key
element-plus
element-plus
dev

搜索帮助

0d507c66 1850385 C8b1a773 1850385