// 局部模式
const shell = require('shelljs')
const fs = require('fs')
const files = fs.readdirSync('../packages/components').filter(name => !["theme-default", "index.ts", "types.ts","package.json","version.ts","Base"].includes(name))
// 解压的webhook
// const originUzipUrl = 'http://172.17.0.10:31000/ssh?projectName=fdj_test'
if (shell.exec('yarn build:theme').code !== 0) {
// 执行npm run build 命令
shell.echo('Error: get coding failed')
shell.exit(1)
}
if (shell.exec('yarn build:package').code !== 0) {
// 执行npm run build 命令
shell.echo('Error: build failed')
shell.exit(1)
}
files.map(item=>{
shell.cp(`../packages/components/${item}/README.md`,`../lib/${item}/README.md`)
})
shelljs
最新推荐文章于 2024-08-07 11:40:23 发布