@stacksjs/stx
Version:
A performant UI Framework. Powered by Bun.
34 lines • 2.16 kB
TypeScript
/**
* Register story commands with a CLI instance
* This is a helper for manual CLI integration
*/
export declare function registerStoryCommands(cli: any): void;
/**
* Run story CLI directly (for standalone usage)
*/
export declare function runStoryCLI(args?: string[]): Promise<void>;
/**
* CLI command definitions for integration with @stacksjs/clapp
*/
export declare const storyCommands: {
/**
* Main story command (defaults to dev)
*/
'story': { description: 'Component showcase and testing'; options: { port: { alias: 'p'; type: 'number'; description: 'Server port (default: 6006)' }; open: { alias: 'o'; type: 'boolean'; description: 'Open browser automatically' }; host: { type: 'string'; description: 'Host to bind to' } }; action: (options: { port?: number, open?: boolean, host?: string }) => any };
/**
* Story dev subcommand
*/
'story:dev': { description: 'Start story development server'; options: { port: { alias: 'p'; type: 'number'; description: 'Server port (default: 6006)' }; open: { alias: 'o'; type: 'boolean'; description: 'Open browser automatically' }; host: { type: 'string'; description: 'Host to bind to' } }; action: (options: { port?: number, open?: boolean, host?: string }) => any };
/**
* Story build subcommand
*/
'story:build': { description: 'Build static story site'; options: { outDir: { alias: 'o'; type: 'string'; description: 'Output directory' } }; action: (options: { outDir?: string }) => any };
/**
* Story preview subcommand
*/
'story:preview': { description: 'Preview built story site'; options: { port: { alias: 'p'; type: 'number'; description: 'Server port (default: 4173)' }; open: { alias: 'o'; type: 'boolean'; description: 'Open browser automatically' } }; action: (options: { port?: number, open?: boolean }) => any };
/**
* Story test subcommand
*/
'story:test': { description: 'Run visual regression tests'; options: { update: { alias: 'u'; type: 'boolean'; description: 'Update snapshots' }; filter: { alias: 'f'; type: 'string'; description: 'Filter components by name' } }; action: (options: { update?: boolean, filter?: string }) => any }
};