UNPKG

1.31 kBTypeScriptView Raw
1import type { PKJTOOL, STYLE, STRATEGY, LAYOUT } from '@omni-door/utils';
2import type { TPLS_ORIGIN_INITIAL, TPLS_INITIAL_RETURE } from './templates';
3export declare type ResultOfDependencies = string[] | {
4 add?: string[];
5 remove?: string[];
6};
7export declare type InitOptions = {
8 strategy: STRATEGY;
9 projectName: string;
10 initPath: string;
11 configFileName?: string;
12 git?: string;
13 ts: boolean;
14 test: boolean;
15 eslint: boolean;
16 prettier: boolean;
17 commitlint: boolean;
18 style: STYLE;
19 stylelint: boolean;
20 install: boolean;
21 pkgtool?: PKJTOOL;
22 layout?: LAYOUT;
23 isSlient?: boolean;
24 tag?: string;
25 tpls?: (tpls: TPLS_ORIGIN_INITIAL) => TPLS_INITIAL_RETURE;
26 dependencies?: (dependecies_default: string[]) => ResultOfDependencies;
27 devDependencies?: (devDependecies_default: string[]) => ResultOfDependencies;
28 error?: (err: any) => any;
29 success?: (results: any[]) => any;
30};
31export declare function $init({ strategy, projectName: project_name, initPath, configFileName, git, ts, test, eslint, prettier, commitlint, style, stylelint, install, layout, tag, tpls, pkgtool, isSlient, dependencies: dependencies_custom, devDependencies: devDependencies_custom, error, success }: InitOptions): Promise<void>;
32export default $init;