1 | import { Configuration as WebpackConfiguration } from 'webpack';
|
2 | import { ProxyConfigArray, ProxyConfigMap, Configuration as WebpackDevServerConfiguration } from 'webpack-dev-server';
|
3 | import { PWAConfig } from 'expo-pwa';
|
4 | export interface DevConfiguration extends WebpackConfiguration {
|
5 | devServer?: WebpackDevServerConfiguration;
|
6 | }
|
7 | export declare type AnyConfiguration = DevConfiguration | WebpackConfiguration;
|
8 | declare type AnyObject = {
|
9 | [key: string]: any;
|
10 | };
|
11 | export declare type InputEnvironment = {
|
12 | projectRoot?: string;
|
13 | platform?: 'ios' | 'android' | 'web' | 'electron';
|
14 | info?: boolean;
|
15 | https?: boolean;
|
16 | production?: boolean;
|
17 | development?: boolean;
|
18 | config?: AnyObject;
|
19 | locations?: FilePaths;
|
20 | polyfill?: boolean;
|
21 | mode?: Mode;
|
22 | removeUnusedImportExports?: boolean;
|
23 | pwa?: boolean;
|
24 | offline?: boolean;
|
25 | babel?: {
|
26 | dangerouslyAddModulePathsToTranspile: string[];
|
27 | };
|
28 | };
|
29 | export declare type Environment = {
|
30 | |
31 |
|
32 |
|
33 |
|
34 |
|
35 | https: boolean;
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 | config: PWAConfig;
|
42 | |
43 |
|
44 |
|
45 | locations: FilePaths;
|
46 | |
47 |
|
48 |
|
49 | projectRoot: string;
|
50 | |
51 |
|
52 |
|
53 |
|
54 |
|
55 | offline?: boolean;
|
56 | |
57 |
|
58 |
|
59 | mode: Mode;
|
60 | |
61 |
|
62 |
|
63 | platform: ExpoPlatform;
|
64 | |
65 |
|
66 |
|
67 |
|
68 |
|
69 | removeUnusedImportExports?: boolean;
|
70 | |
71 |
|
72 |
|
73 |
|
74 |
|
75 | pwa?: boolean;
|
76 | |
77 |
|
78 |
|
79 | babel?: ExpoBabelOptions;
|
80 | |
81 |
|
82 |
|
83 |
|
84 |
|
85 | polyfill?: boolean;
|
86 | };
|
87 |
|
88 |
|
89 |
|
90 | export declare type ExpoPlatform = 'ios' | 'android' | 'web' | 'electron';
|
91 |
|
92 |
|
93 |
|
94 | export declare type ExpoBabelOptions = {
|
95 | |
96 |
|
97 |
|
98 | dangerouslyAddModulePathsToTranspile: string[];
|
99 | };
|
100 | declare type PathResolver = (...input: string[]) => string;
|
101 | export interface FilePathsFolder {
|
102 | get: PathResolver;
|
103 | folder: string;
|
104 | indexHtml: string;
|
105 | manifest: string;
|
106 | serveJson: string;
|
107 | favicon: string;
|
108 | serviceWorker: string;
|
109 | registerServiceWorker: string;
|
110 | }
|
111 | export interface FilePaths {
|
112 | absolute: PathResolver;
|
113 | includeModule: PathResolver;
|
114 | template: FilePathsFolder;
|
115 | production: FilePathsFolder;
|
116 | packageJson: string;
|
117 | root: string;
|
118 | appMain: string | null;
|
119 | modules: string;
|
120 | servedPath: string;
|
121 | }
|
122 | export declare type Mode = 'production' | 'development' | 'none';
|
123 | export interface Arguments {
|
124 | allowedHost?: string;
|
125 | proxy?: ProxyConfigMap | ProxyConfigArray;
|
126 | [key: string]: any;
|
127 | }
|
128 | export {};
|