UNPKG

1.24 kBTypeScriptView Raw
1export declare type Asset = 'string' | AssetEntry;
2export interface AssetEntry {
3 glob: string;
4 include?: string;
5 flat?: boolean;
6 exclude?: string;
7 outDir?: string;
8 watchAssets?: boolean;
9}
10export interface ActionOnFile {
11 action: 'change' | 'unlink';
12 item: AssetEntry;
13 path: string;
14 sourceRoot: string;
15 watchAssetsMode: boolean;
16}
17interface CompilerOptions {
18 tsConfigPath?: string;
19 webpack?: boolean;
20 webpackConfigPath?: string;
21 plugins?: string[] | PluginOptions[];
22 assets?: string[];
23 deleteOutDir?: boolean;
24}
25interface PluginOptions {
26 name: string;
27 options: Record<string, any>[];
28}
29interface GenerateOptions {
30 spec?: boolean | Record<string, boolean>;
31}
32export interface ProjectConfiguration {
33 type?: string;
34 root?: string;
35 entryFile?: string;
36 sourceRoot?: string;
37 compilerOptions?: CompilerOptions;
38}
39export interface Configuration {
40 [key: string]: any;
41 language?: string;
42 collection?: string;
43 sourceRoot?: string;
44 entryFile?: string;
45 monorepo?: boolean;
46 compilerOptions?: CompilerOptions;
47 generateOptions?: GenerateOptions;
48 projects?: {
49 [key: string]: ProjectConfiguration;
50 };
51}
52export {};