UNPKG

1.51 kBPlain TextView Raw
1export interface IInstallOptions {
2 dev: boolean;
3 peerDependencies?: boolean;
4}
5
6export interface INpmConfig {
7 dir: string;
8 name: string;
9}
10
11export interface IResolvedCache {
12 [key: string]: {
13 main: string;
14 files: string[];
15 };
16}
17
18export interface IPrettierConfig {
19 printWidth?: number;
20 tabWidth?: number;
21 useTabs?: boolean;
22 semi?: boolean;
23 singleQuote?: boolean;
24 jsxSingleQuote?: boolean;
25 trailingComma?: 'none' | 'es5' | 'all';
26 bracketSpacing?: boolean;
27 jsxBracketSameLine?: boolean;
28 arrowParens?: 'avoid' | 'always';
29 rangeStart?: number;
30 rangeEnd?: number;
31 parser?:
32 | 'babel'
33 | 'babylon'
34 | 'flow'
35 | 'typescript'
36 | 'css'
37 | 'scss'
38 | 'less'
39 | 'json'
40 | 'json5'
41 | 'json-stringify'
42 | 'graphql'
43 | 'markdown'
44 | 'mdx'
45 | 'html'
46 | 'vue'
47 | 'angular'
48 | 'yaml';
49 filepath?: string;
50 requirePragma?: boolean;
51 insertPragma?: boolean;
52 proseWrap?: 'always' | 'never' | 'preserve';
53 htmlWhitespaceSensitivity?: 'css' | 'strict' | 'ignore';
54 endOfLine?: 'auto' | 'lf' | 'crlf' | 'cr';
55}
56
57export interface IBuildOptions {
58 type?: string,
59 watch?: boolean,
60 platform?: string,
61 port?: number,
62 release?: boolean,
63 envHasBeenSet?: boolean,
64 page?: string,
65 component?: string,
66 uiIndex?: string
67}
68
69export interface IMiniAppBuildConfig {
70 adapter: string,
71 watch?: boolean,
72 envHasBeenSet?: boolean,
73 port?: number,
74 release?: boolean,
75 page?: string,
76 component?: string
77}
78
79export interface IOption {
80 [key: string]: any;
81}