@swell/cli
Version:
Swell's command line interface/utility
22 lines (21 loc) • 735 B
TypeScript
interface TestTemplateOptions {
/** App id from swell.json, used for SWELL_APP_ID and settings() */
appId: string;
}
interface WriteTestsOptions extends TestTemplateOptions {
/** Absolute path to the app root */
appPath: string;
/** Overwrite existing files if present */
overwrite: boolean;
}
interface ScaffoldResult {
/** Files that were created or overwritten */
createdFiles: string[];
/** Files that were skipped because they already exist */
skippedFiles: string[];
/** Whether package.json was updated */
packageJsonUpdated: boolean;
/** Warning messages to display to user */
warnings: string[];
}
export type { ScaffoldResult, TestTemplateOptions, WriteTestsOptions };