cr-react-cli
Version:
Create react files with a single command
23 lines (22 loc) • 557 B
TypeScript
import BaseAction from '../base.action';
interface Inputs {
name: string;
type: string;
}
export interface ComponentOptions {
typescript?: boolean;
redux?: boolean;
style?: boolean;
test?: boolean;
story?: boolean;
proptypes?: boolean;
index?: boolean;
class?: boolean;
path?: string;
fileName?: string;
}
declare class CreateComponentAction extends BaseAction {
handle(inputs: Inputs, options?: ComponentOptions): Promise<void>;
private createComponentFolder;
}
export default CreateComponentAction;