fes.js/.fatherrc.js

38 lines
885 B
JavaScript
Raw Normal View History

2020-12-18 18:23:00 +08:00
import { readdirSync } from "fs";
import { join } from "path";
2020-11-02 09:51:40 +08:00
// utils must build before core
// runtime must build before renderer-react
2020-12-09 13:10:48 +08:00
2020-12-18 18:23:00 +08:00
const headPkgs = [
"fes-runtime",
2020-12-30 14:25:14 +08:00
"fes-compiler",
2020-12-18 18:23:00 +08:00
"fes",
2020-12-19 15:59:38 +08:00
"fes-preset-built-in",
2020-12-18 18:23:00 +08:00
"fes-plugin-request",
"fes-plugin-access",
"fes-plugin-model",
"fes-plugin-layout",
2020-12-31 12:59:11 +08:00
"fes-plugin-icon",
"fes-plugin-locale",
2021-01-25 16:22:14 +08:00
"fes-plugin-enums",
"fes-plugin-jest",
2021-02-02 16:56:02 +08:00
"fes-plugin-vuex",
2021-02-01 20:02:02 +08:00
"create-fes-app",
2021-03-19 13:29:43 +08:00
"fes-plugin-qiankun"
2020-12-18 18:23:00 +08:00
];
2020-11-02 09:51:40 +08:00
const tailPkgs = [];
// const otherPkgs = readdirSync(join(__dirname, 'packages')).filter(
// (pkg) =>
// pkg.charAt(0) !== '.' && !headPkgs.includes(pkg) && !tailPkgs.includes(pkg),
// );
const otherPkgs = [];
export default {
2020-12-18 18:23:00 +08:00
target: "node",
cjs: { type: "babel", lazy: false },
disableTypeCheck: true,
pkgs: [...headPkgs, ...otherPkgs, ...tailPkgs],
};