UNPKG

angular-build-info

Version:

🛠 A CLI to generate an easily importable `build.ts` file containing various details about the application build

31 lines (28 loc) • 695 B
import yargs from "yargs"; import signale from "signale"; const args = yargs(process.argv) .command( "init", "Generate a placeholder `build.ts` file", () => {}, () => { signale.info("Generating placeholder file"); } ) .option("verbose", { alias: "v", type: "boolean", description: "Show detailed logs", }) .option("message", { alias: "m", type: "string", description: "Specify a build message", }) .option("no-git", { alias: "g", type: "boolean", description: "Specify to skip git information", }) .help().argv; export default args;