UNPKG

handoff-app

Version:

Automated documentation toolchain for building client side documentation from figma

28 lines (24 loc) 799 B
import { CommandModule } from 'yargs'; import Handoff from '../../'; import { SharedArgs } from '../types'; import { getSharedOptions } from '../utils'; export interface BuildAppArgs extends SharedArgs { skipComponents?: boolean; } const command: CommandModule<{}, BuildAppArgs> = { command: 'build:app', describe: 'Build the documentation application', builder: (yargs) => { return getSharedOptions(yargs).option('skip-components', { describe: 'Skip building components before building the app', type: 'boolean', default: false, }); return getSharedOptions(yargs); }, handler: async (args: BuildAppArgs) => { const handoff = new Handoff(args.debug, args.force); await handoff.build(args.skipComponents ?? false); }, }; export default command;