UNPKG

beesbuild

Version:

构建工具链

23 lines (22 loc) 578 B
import * as options from "../variables.mjs"; import { init } from "./utils.mjs"; import { rimraf } from "./rm-file.mjs"; import { build } from "./build.mjs"; import { publish } from "./publish.mjs"; import { sync } from "./sync.mjs"; const createProgram = (program) => { const inst = init(options, program); program.configureHelp({ sortSubcommands: true, subcommandTerm: (cmd) => cmd.name() // 显示名称,而非用法 }); inst.next(build); inst.next(rimraf); inst.next(publish); inst.next(sync); return inst.end(); }; export { createProgram };