1 | import type { PKJTOOL, STYLE, STRATEGY, COMPONENTSERVER } from '@omni-door/utils';
|
2 | import type { TPLS_ORIGIN_INITIAL, TPLS_INITIAL_RETURE } from './templates';
|
3 | export declare type ResultOfDependencies = string[] | {
|
4 | add?: string[];
|
5 | remove?: string[];
|
6 | };
|
7 | export declare type InitOptions = {
|
8 | strategy: STRATEGY;
|
9 | projectName: string;
|
10 | initPath: string;
|
11 | configFileName?: string;
|
12 | git?: string;
|
13 | npm?: string;
|
14 | devServer: COMPONENTSERVER;
|
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 | tag?: string;
|
26 | tpls?: (tpls: TPLS_ORIGIN_INITIAL) => TPLS_INITIAL_RETURE;
|
27 | dependencies?: (dependecies_default: string[]) => ResultOfDependencies;
|
28 | devDependencies?: (devDependecies_default: string[]) => ResultOfDependencies;
|
29 | error?: (err: any) => any;
|
30 | success?: (results: any[]) => any;
|
31 | };
|
32 | export declare function $init({ strategy, projectName: project_name, initPath, configFileName, git, npm, devServer, ts, test, eslint, prettier, commitlint, style, stylelint, install, tpls, pkgtool, isSlient, tag, dependencies: dependencies_custom, devDependencies: devDependencies_custom, error, success }: InitOptions): Promise<void>;
|
33 | export default $init;
|