UNPKG

1.31 kBTypeScriptView Raw
1import { PKJTOOL, STYLE, STRATEGY, DEVSERVER } from '@omni-door/utils';
2import { 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 npm?: string;
14 devServer: DEVSERVER;
15 ts: boolean;
16 test: boolean;
17 eslint: boolean;
18 prettier: boolean;
19 commitlint: boolean;
20 style: STYLE;
21 stylelint: boolean;
22 install: boolean;
23 pkgtool?: PKJTOOL;
24 isSlient?: boolean;
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, npm, devServer, ts, test, eslint, prettier, commitlint, style, stylelint, install, tpls, pkgtool, isSlient, dependencies: dependencies_custom, devDependencies: devDependencies_custom, error, success }: InitOptions): Promise<void>;
32export default $init;