1 Star 0 Fork 632

Taopper/NocoBase

forked from NocoBase/NocoBase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.fatherrc.ts 764 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenos 提交于 2020-12-24 07:35 . chore: allow specific build package
import { readdirSync } from 'fs';
import { join } from 'path';
// utils must build before core
// runtime must build before renderer-react
const headPkgs = [
'database',
'resourcer',
'actions',
'client',
'server'
];
const tailPkgs = [];
const otherPkgs = readdirSync(join(__dirname, 'packages')).filter(
(pkg) => {
return !['father-build', 'app'].includes(pkg) && pkg.charAt(0) !== '.' && !headPkgs.includes(pkg) && !tailPkgs.includes(pkg)
},
);
let pkgs = [];
if (process.argv.length > 2) {
pkgs = process.argv;
pkgs.shift();
pkgs.shift();
} else {
pkgs = [...headPkgs, ...otherPkgs, ...tailPkgs];
}
console.log(pkgs);
export default {
target: 'node',
cjs: { type: 'babel', lazy: true },
// disableTypeCheck: true,
pkgs,
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/Taopper/nocobase.git
git@gitee.com:Taopper/nocobase.git
Taopper
nocobase
NocoBase
develop

搜索帮助