bocchi
Version:
A cli build tool for userscript
21 lines (19 loc) • 485 B
JavaScript
import {
bocchi
} from "./chunk-IRWH3324.js";
// src/cli.ts
import yargs from "yargs";
yargs(process.argv.slice(2)).usage("A cli build tool for userscript").showHelpOnFail(true).demandCommand(1, "").command(
"dev",
"build development file with watch mode",
() => {
},
() => bocchi({ mode: "development" })
).command(
"build",
"build production file",
() => {
},
() => bocchi({ mode: "production" })
).alias({ v: "version", h: "help" }).argv;