@baic/yolk-cli 2.1.0-alpha.103 → 2.1.0-alpha.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/package.json +2 -2
  2. package/templates/umi-mobile/.umirc.ts.tpl +0 -1
  3. package/templates/umi-mobile/src/.umi/core/EmptyRoute.tsx +8 -0
  4. package/templates/umi-mobile/src/.umi/core/defineApp.ts +21 -0
  5. package/templates/umi-mobile/src/.umi/core/history.ts +70 -0
  6. package/templates/umi-mobile/src/.umi/core/historyIntelli.ts +132 -0
  7. package/templates/umi-mobile/src/.umi/core/plugin.ts +83 -0
  8. package/templates/umi-mobile/src/.umi/core/pluginConfig.d.ts +295 -0
  9. package/templates/umi-mobile/src/.umi/core/polyfill.ts +191 -0
  10. package/templates/umi-mobile/src/.umi/core/route.tsx +267 -0
  11. package/templates/umi-mobile/src/.umi/core/routeProps.js +3 -0
  12. package/templates/umi-mobile/src/.umi/core/routeProps.ts +4 -0
  13. package/templates/umi-mobile/src/.umi/core/terminal.ts +62 -0
  14. package/templates/umi-mobile/src/.umi/exports.ts +51 -0
  15. package/templates/umi-mobile/src/.umi/plugin-clickToComponent/runtime.tsx +19 -0
  16. package/templates/umi-mobile/src/.umi/plugin-errorBoundary/runtime.tsx +67 -0
  17. package/templates/umi-mobile/src/.umi/plugin-hd/runtime.tsx +57 -0
  18. package/templates/umi-mobile/src/.umi/testBrowser.tsx +91 -0
  19. package/templates/umi-mobile/src/.umi/tsconfig.json +29 -0
  20. package/templates/umi-mobile/src/.umi/typings.d.ts +138 -0
  21. package/templates/umi-mobile/src/.umi/umi.ts +76 -0
  22. package/templates/umi-mobile/src/app.tsx +2 -2
  23. package/templates/umi-mobile/src/pages/404.tsx +0 -1
  24. package/templates/umi-mobile/src/pages/demo/examples/BarCode.tsx +0 -1
  25. package/templates/umi-mobile/src/pages/demo/examples/Iconfont.tsx +1 -2
  26. package/templates/umi-mobile/src/pages/demo/examples/Input.tsx +0 -1
  27. package/templates/umi-mobile/src/pages/demo/examples/List/1.tsx +1 -2
  28. package/templates/umi-mobile/src/pages/demo/examples/List/2.tsx +1 -1
  29. package/templates/umi-mobile/src/pages/demo/examples/List/3.tsx +1 -1
  30. package/templates/umi-mobile/src/pages/demo/examples/List/4.tsx +7 -8
  31. package/templates/umi-mobile/src/pages/demo/examples/Loading.tsx +0 -1
  32. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/1.tsx +0 -1
  33. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/2.tsx +0 -1
  34. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/3.tsx +0 -1
  35. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/4.tsx +0 -1
  36. package/templates/umi-mobile/src/pages/demo/examples/PagingList/1.tsx +1 -2
  37. package/templates/umi-mobile/src/pages/demo/examples/QrCode.tsx +0 -1
  38. package/templates/umi-mobile/src/pages/demo/examples/Required.tsx +0 -1
  39. package/templates/umi-mobile/src/pages/demo/examples/TimerButton.tsx +0 -1
  40. package/templates/umi-mobile/src/pages/demo/examples/usePreload.tsx +1 -1
  41. package/templates/umi-mobile/src/pages/demo/index.tsx +8 -8
  42. package/templates/umi-mobile/src/pages/index.tsx +0 -2
  43. package/templates/umi-mobile-h5+app/.umirc.ts.tpl +0 -1
  44. package/templates/umi-mobile-native/.umirc.ts.tpl +0 -1
  45. package/templates/umi-web/.umirc.ts.tpl +0 -1
  46. package/templates/umi-web/src/pages/404.tsx +2 -3
  47. package/templates/umi-web/src/pages/demo/index.tsx +3 -2
  48. package/templates/umi-web/src/pages/index.tsx +0 -2
  49. package/templates/umi-web-screen/.umirc.ts.tpl +0 -1
  50. package/templates/umi-web-screen/src/components/resize-container/index.tsx +9 -8
  51. package/templates/umi-web-screen/src/pages/404.tsx +2 -3
  52. package/templates/umi-web-screen/src/pages/template/components/charts/demo-line/index.tsx +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baic/yolk-cli",
3
- "version": "2.1.0-alpha.103",
3
+ "version": "2.1.0-alpha.104",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/303394539/yolk.git"
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "gitHead": "15ec31c153577d8cb1a690a5b18e2fefee4a7909"
56
+ "gitHead": "71a094498aaf6f56105b95d727c115a2d4eaf875"
57
57
  }
@@ -2,6 +2,5 @@ import { defineConfig } from '@baic/yolk-umi';
2
2
 
3
3
  export default defineConfig({
4
4
  title: '{{ projectName }}',
5
- publicPath: '/',
6
5
  hd: {},
7
6
  });
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import { Outlet, useOutletContext } from 'umi';
5
+ export default function EmptyRoute() {
6
+ const context = useOutletContext();
7
+ return <Outlet context={context} />;
8
+ }
@@ -0,0 +1,21 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ interface IDefaultRuntimeConfig {
5
+ onRouteChange?: (props: {
6
+ routes: any;
7
+ clientRoutes: any;
8
+ location: any;
9
+ action: any;
10
+ }) => void;
11
+ patchRoutes?: (props: { routes: any }) => void;
12
+ patchClientRoutes?: (props: { routes: any }) => void;
13
+ render?: (oldRender: () => void) => void;
14
+ rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
15
+ [key: string]: any;
16
+ }
17
+ export type RuntimeConfig = IDefaultRuntimeConfig;
18
+
19
+ export function defineApp(config: RuntimeConfig): RuntimeConfig {
20
+ return config;
21
+ }
@@ -0,0 +1,70 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import type { UmiHistory } from './historyIntelli';
5
+ import {
6
+ createBrowserHistory,
7
+ createHashHistory,
8
+ createMemoryHistory,
9
+ } from '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/node_modules/.pnpm/@umijs+renderer-react@4.0.53_ef5jwxihqo6n7gxfmzogljlgcm/node_modules/@umijs/renderer-react';
10
+
11
+ let history: UmiHistory;
12
+ let basename: string = '/';
13
+ export function createHistory(opts: any) {
14
+ let h;
15
+ if (opts.type === 'hash') {
16
+ h = createHashHistory();
17
+ } else if (opts.type === 'memory') {
18
+ h = createMemoryHistory(opts);
19
+ } else {
20
+ h = createBrowserHistory();
21
+ }
22
+ if (opts.basename) {
23
+ basename = opts.basename;
24
+ }
25
+
26
+ history = {
27
+ ...h,
28
+ push(to, state) {
29
+ h.push(patchTo(to, h), state);
30
+ },
31
+ replace(to, state) {
32
+ h.replace(patchTo(to, h), state);
33
+ },
34
+ get location() {
35
+ return h.location;
36
+ },
37
+ get action() {
38
+ return h.action;
39
+ },
40
+ };
41
+
42
+ return h;
43
+ }
44
+
45
+ // Patch `to` to support basename
46
+ // Refs:
47
+ // https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484
48
+ // https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to
49
+ function patchTo(to: any, h: History) {
50
+ if (typeof to === 'string') {
51
+ return `${stripLastSlash(basename)}${to}`;
52
+ } else if (typeof to === 'object') {
53
+ const currentPathname = h.location.pathname;
54
+
55
+ return {
56
+ ...to,
57
+ pathname: to.pathname
58
+ ? `${stripLastSlash(basename)}${to.pathname}`
59
+ : currentPathname,
60
+ };
61
+ } else {
62
+ throw new Error(`Unexpected to: ${to}`);
63
+ }
64
+ }
65
+
66
+ function stripLastSlash(path) {
67
+ return path.slice(-1) === '/' ? path.slice(0, -1) : path;
68
+ }
69
+
70
+ export { history };
@@ -0,0 +1,132 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import { getRoutes } from './route';
5
+ import type { History } from '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/node_modules/.pnpm/@umijs+renderer-react@4.0.53_ef5jwxihqo6n7gxfmzogljlgcm/node_modules/@umijs/renderer-react';
6
+
7
+ type Routes = Awaited<ReturnType<typeof getRoutes>>['routes'];
8
+ type AllRoute = Routes[keyof Routes];
9
+ type IsRoot<T extends any> = 'parentId' extends keyof T ? false : true;
10
+
11
+ // show `/` in not `layout / wrapper` only
12
+ type GetAllRouteWithoutLayout<Item extends AllRoute> = Item extends any
13
+ ? 'isWrapper' extends keyof Item
14
+ ? never
15
+ : 'isLayout' extends keyof Item
16
+ ? never
17
+ : Item
18
+ : never;
19
+ type AllRouteWithoutLayout = GetAllRouteWithoutLayout<AllRoute>;
20
+ type IndexRoutePathname = '/' extends AllRouteWithoutLayout['path']
21
+ ? '/'
22
+ : never;
23
+
24
+ type GetChildrens<T extends any> = T extends any
25
+ ? IsRoot<T> extends true
26
+ ? never
27
+ : T
28
+ : never;
29
+ type Childrens = GetChildrens<AllRoute>;
30
+ type Root = Exclude<AllRoute, Childrens>;
31
+ type AllIds = AllRoute['id'];
32
+
33
+ type GetChildrensByParentId<
34
+ Id extends AllIds,
35
+ Item = AllRoute,
36
+ > = Item extends any
37
+ ? 'parentId' extends keyof Item
38
+ ? Item['parentId'] extends Id
39
+ ? Item
40
+ : never
41
+ : never
42
+ : never;
43
+
44
+ type RouteObject<
45
+ Id extends AllIds,
46
+ Item = GetChildrensByParentId<Id>,
47
+ > = IsNever<Item> extends true
48
+ ? ''
49
+ : Item extends AllRoute
50
+ ? {
51
+ [Key in Item['path'] as TrimSlash<Key>]: UnionMerge<
52
+ RouteObject<Item['id']>
53
+ >;
54
+ }
55
+ : never;
56
+
57
+ type GetRootRouteObject<Item extends Root> = Item extends Root
58
+ ? {
59
+ [K in Item['path'] as TrimSlash<K>]: UnionMerge<RouteObject<Item['id']>>;
60
+ }
61
+ : never;
62
+ type MergedResult = UnionMerge<GetRootRouteObject<Root>>;
63
+
64
+ // --- patch history types ---
65
+
66
+ type HistoryTo = Parameters<History['push']>['0'];
67
+ type HistoryPath = Exclude<HistoryTo, string>;
68
+
69
+ type UmiPathname = Path<MergedResult> | (string & {});
70
+ interface UmiPath extends HistoryPath {
71
+ pathname: UmiPathname;
72
+ }
73
+ type UmiTo = UmiPathname | UmiPath;
74
+
75
+ type UmiPush = (to: UmiTo, state?: any) => void;
76
+ type UmiReplace = (to: UmiTo, state?: any) => void;
77
+ export interface UmiHistory extends History {
78
+ push: UmiPush;
79
+ replace: UmiReplace;
80
+ }
81
+
82
+ // --- type utils ---
83
+ type TrimLeftSlash<T extends string> = T extends `/${infer R}`
84
+ ? TrimLeftSlash<R>
85
+ : T;
86
+ type TrimRightSlash<T extends string> = T extends `${infer R}/`
87
+ ? TrimRightSlash<R>
88
+ : T;
89
+ type TrimSlash<T extends string> = TrimLeftSlash<TrimRightSlash<T>>;
90
+
91
+ type IsNever<T> = [T] extends [never] ? true : false;
92
+ type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B
93
+ ? 1
94
+ : 2
95
+ ? true
96
+ : false;
97
+
98
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
99
+ k: infer I,
100
+ ) => void
101
+ ? I
102
+ : never;
103
+ type UnionMerge<U> = UnionToIntersection<U> extends infer O
104
+ ? { [K in keyof O]: O[K] }
105
+ : never;
106
+
107
+ type ExcludeEmptyKey<T> = IsEqual<T, ''> extends true ? never : T;
108
+
109
+ type PathConcat<
110
+ TKey extends string,
111
+ TValue,
112
+ N = TrimSlash<TKey>,
113
+ > = TValue extends string
114
+ ? ExcludeEmptyKey<N>
115
+ :
116
+ | ExcludeEmptyKey<N>
117
+ | `${N & string}${IsNever<ExcludeEmptyKey<N>> extends true
118
+ ? ''
119
+ : '/'}${UnionPath<TValue>}`;
120
+
121
+ type UnionPath<T> = {
122
+ [K in keyof T]-?: PathConcat<K & string, T[K]>;
123
+ }[keyof T];
124
+
125
+ type MakeSureLeftSlash<T> = T extends any
126
+ ? `/${TrimRightSlash<T & string>}`
127
+ : never;
128
+
129
+ // exclude `/*`, because it always at the top of the IDE tip list
130
+ type Path<T, K = UnionPath<T>> =
131
+ | Exclude<MakeSureLeftSlash<K>, '/*'>
132
+ | IndexRoutePathname;
@@ -0,0 +1,83 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import { PluginManager } from 'umi';
5
+ import * as Plugin_1 from '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/src/.umi/plugin-clickToComponent/runtime.tsx';
6
+ import * as Plugin_2 from '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/src/.umi/plugin-errorBoundary/runtime';
7
+ import * as Plugin_3 from '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/src/.umi/plugin-hd/runtime';
8
+ import * as Plugin_0 from '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/src/app.tsx';
9
+
10
+ function __defaultExport(obj) {
11
+ if (obj.default) {
12
+ return typeof obj.default === 'function' ? obj.default() : obj.default;
13
+ }
14
+ return obj;
15
+ }
16
+ export function getPlugins() {
17
+ return [
18
+ {
19
+ apply: __defaultExport(Plugin_0),
20
+ path:
21
+ process.env.NODE_ENV === 'production'
22
+ ? void 0
23
+ : '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/src/app.tsx',
24
+ },
25
+ {
26
+ apply: Plugin_1,
27
+ path:
28
+ process.env.NODE_ENV === 'production'
29
+ ? void 0
30
+ : '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/src/.umi/plugin-clickToComponent/runtime.tsx',
31
+ },
32
+ {
33
+ apply: Plugin_2,
34
+ path:
35
+ process.env.NODE_ENV === 'production'
36
+ ? void 0
37
+ : '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/src/.umi/plugin-errorBoundary/runtime',
38
+ },
39
+ {
40
+ apply: Plugin_3,
41
+ path:
42
+ process.env.NODE_ENV === 'production'
43
+ ? void 0
44
+ : '/Users/baicheng/Desktop/git.zdhrsoft.com/agricultural-cow-trading-mobile/src/.umi/plugin-hd/runtime',
45
+ },
46
+ ];
47
+ }
48
+
49
+ export function getValidKeys() {
50
+ return [
51
+ 'patchRoutes',
52
+ 'patchClientRoutes',
53
+ 'modifyContextOpts',
54
+ 'modifyClientRenderOpts',
55
+ 'rootContainer',
56
+ 'innerProvider',
57
+ 'i18nProvider',
58
+ 'accessProvider',
59
+ 'dataflowProvider',
60
+ 'outerProvider',
61
+ 'render',
62
+ 'onRouteChange',
63
+ 'antd',
64
+ 'qiankun',
65
+ 'errorBoundary',
66
+ 'hd',
67
+ ];
68
+ }
69
+
70
+ let pluginManager = null;
71
+
72
+ export function createPluginManager() {
73
+ pluginManager = PluginManager.create({
74
+ plugins: getPlugins(),
75
+ validKeys: getValidKeys(),
76
+ });
77
+
78
+ return pluginManager;
79
+ }
80
+
81
+ export function getPluginManager() {
82
+ return pluginManager;
83
+ }
@@ -0,0 +1,295 @@
1
+ // This file is generated by Umi automatically
2
+ // DO NOT CHANGE IT MANUALLY!
3
+ // Created by Umi Plugin
4
+
5
+ export interface IConfigFromPlugins {
6
+ codeSplitting?: {
7
+ jsStrategy?: 'bigVendors' | 'depPerChunk' | 'granularChunks';
8
+ jsStrategyOptions?: {};
9
+ cssStrategy?: 'mergeAll';
10
+ cssStrategyOptions?: {};
11
+ };
12
+ title?: string;
13
+ styles?: unknown[];
14
+ scripts?: unknown[];
15
+ routes?: {}[];
16
+ reactRouter5Compat?: {};
17
+ presets?: string[];
18
+ plugins?: string[];
19
+ npmClient?: 'pnpm' | 'tnpm' | 'cnpm' | 'yarn' | 'npm';
20
+ mountElementId?: string;
21
+ metas?: unknown[];
22
+ links?: unknown[];
23
+ historyWithQuery?: {};
24
+ history?: {
25
+ type?: 'browser' | 'hash' | 'memory';
26
+ };
27
+ headScripts?: unknown[];
28
+ conventionRoutes?: {
29
+ base?: string;
30
+ exclude?: unknown[];
31
+ };
32
+ base?: string;
33
+ analyze?: {};
34
+ writeToDisk?: boolean;
35
+ theme?: {};
36
+ targets?: {};
37
+ svgr?: {};
38
+ svgo?: {} | boolean;
39
+ styleLoader?: {};
40
+ srcTranspilerOptions?: {
41
+ esbuild?: {};
42
+ swc?: {};
43
+ };
44
+ srcTranspiler?: 'babel' | 'esbuild' | 'swc' | 'none';
45
+ sassLoader?: {};
46
+ runtimePublicPath?: {};
47
+ purgeCSS?: {};
48
+ publicPath?: string;
49
+ proxy?: {} | unknown[];
50
+ postcssLoader?: {};
51
+ outputPath?: string;
52
+ mfsu?:
53
+ | {
54
+ cacheDirectory?: string;
55
+ chainWebpack?: () => any;
56
+ esbuild?: boolean;
57
+ exclude?: unknown[];
58
+ include?: string[];
59
+ mfName?: string;
60
+ remoteAliases?: string[];
61
+ remoteName?: string;
62
+ runtimePublicPath?: boolean;
63
+ shared?: {};
64
+ strategy?: 'eager' | 'normal';
65
+ }
66
+ | boolean;
67
+ mdx?: {
68
+ loader?: string;
69
+ loaderOptions?: {};
70
+ };
71
+ manifest?: {};
72
+ lessLoader?: {};
73
+ jsMinifierOptions?: {};
74
+ jsMinifier?: 'esbuild' | 'swc' | 'terser' | 'uglifyJs' | 'none';
75
+ inlineLimit?: number;
76
+ ignoreMomentLocale?: boolean;
77
+ https?: {};
78
+ hash?: boolean;
79
+ forkTSChecker?: {};
80
+ fastRefresh?: boolean;
81
+ extraPostCSSPlugins?: unknown[];
82
+ extraBabelPresets?: unknown[];
83
+ extraBabelPlugins?: unknown[];
84
+ extraBabelIncludes?: unknown[];
85
+ externals?: {} | string | (() => any);
86
+ esm?: {};
87
+ devtool?: string | boolean;
88
+ depTranspiler?: 'babel' | 'esbuild' | 'swc' | 'none';
89
+ define?: {};
90
+ deadCode?: {};
91
+ cssMinifierOptions?: {};
92
+ cssMinifier?: 'cssnano' | 'esbuild' | 'parcelCSS' | 'none';
93
+ cssLoaderModules?: {};
94
+ cssLoader?: {};
95
+ copy?: unknown[];
96
+ cacheDirectoryPath?: string;
97
+ babelLoaderCustomize?: string;
98
+ autoprefixer?: {};
99
+ autoCSSModules?: boolean;
100
+ alias?: {};
101
+ crossorigin?:
102
+ | boolean
103
+ | {
104
+ includes?: {}[];
105
+ };
106
+ esmi?: {
107
+ cdnOrigin?: string;
108
+ shimUrl?: string;
109
+ };
110
+ exportStatic?: {
111
+ extraRoutePaths?: (() => any) | string[];
112
+ };
113
+ favicons?: string[];
114
+ icons?: {
115
+ autoInstall?: {};
116
+ defaultComponentConfig?: {};
117
+ alias?: {};
118
+ include?: string[];
119
+ };
120
+ mock?: {
121
+ exclude?: string[];
122
+ include?: string[];
123
+ };
124
+ mpa?: {
125
+ template?: string;
126
+ layout?: string;
127
+ getConfigFromEntryFile?: boolean;
128
+ entry?: {};
129
+ };
130
+ phantomDependency?: {
131
+ exclude?: string[];
132
+ };
133
+ polyfill?: {
134
+ imports?: string[];
135
+ };
136
+ routePrefetch?: {};
137
+ ssr?: {
138
+ serverBuildPath?: string;
139
+ platform?: string;
140
+ builder?: 'esbuild' | 'webpack';
141
+ };
142
+ terminal?: {};
143
+ tmpFiles?: boolean;
144
+ clientLoader?: {};
145
+ routeProps?: {};
146
+ lowImport?: {
147
+ libs?: unknown[];
148
+ css?: string;
149
+ };
150
+ vite?: {};
151
+ apiRoute?: {
152
+ platform?: string;
153
+ };
154
+ monorepoRedirect?:
155
+ | boolean
156
+ | {
157
+ srcDir?: string[];
158
+ exclude?: {}[];
159
+ peerDeps?: boolean;
160
+ };
161
+ test?: {};
162
+ clickToComponent?: {
163
+ editor?: string;
164
+ };
165
+ legacy?: {
166
+ buildOnly?: boolean;
167
+ nodeModulesTransform?: boolean;
168
+ checkOutput?: boolean;
169
+ };
170
+ classPropertiesLoose?: {};
171
+ verifyCommit?: {
172
+ scope?: string[];
173
+ allowEmoji?: boolean;
174
+ };
175
+ run?: {
176
+ globals?: string[];
177
+ };
178
+ access?: {} | boolean;
179
+ analytics?:
180
+ | {
181
+ baidu?: string;
182
+ ga?: string;
183
+ ga_v2?: string;
184
+ }
185
+ | boolean;
186
+ antd?:
187
+ | {
188
+ configProvider?: {};
189
+ dark?: boolean;
190
+ compact?: boolean;
191
+ import?: boolean;
192
+ style?: 'less' | 'css';
193
+ theme?: {};
194
+ }
195
+ | boolean;
196
+ dva?:
197
+ | {
198
+ extraModels?: string[];
199
+ immer?: {};
200
+ skipModelValidate?: boolean;
201
+ }
202
+ | boolean;
203
+ initialState?:
204
+ | {
205
+ loading?: string;
206
+ }
207
+ | boolean;
208
+ layout?: {} | boolean;
209
+ locale?:
210
+ | {
211
+ default?: string;
212
+ useLocalStorage?: boolean;
213
+ baseNavigator?: boolean;
214
+ title?: boolean;
215
+ antd?: boolean;
216
+ baseSeparator?: string;
217
+ }
218
+ | boolean;
219
+ mf?: {
220
+ name?: string;
221
+ remotes?: {
222
+ aliasName?: string;
223
+ name?: string;
224
+ entry?: string;
225
+ entries?: {};
226
+ keyResolver?: string;
227
+ }[];
228
+ shared?: {};
229
+ library?: {};
230
+ };
231
+ model?:
232
+ | {
233
+ extraModels?: string[];
234
+ }
235
+ | boolean;
236
+ moment2dayjs?:
237
+ | {
238
+ preset?: string;
239
+ plugins?: unknown[];
240
+ }
241
+ | boolean;
242
+ qiankun?:
243
+ | {
244
+ slave?: {};
245
+ master?: {};
246
+ externalQiankun?: boolean;
247
+ }
248
+ | boolean;
249
+ reactQuery?: {
250
+ devtool?: {} | boolean;
251
+ queryClient?: {} | boolean;
252
+ };
253
+ request?:
254
+ | {
255
+ dataField?: '';
256
+ }
257
+ | boolean;
258
+ styledComponents?: {
259
+ babelPlugin?: {};
260
+ };
261
+ tailwindcss?: {} | boolean;
262
+ valtio?: {};
263
+ debug?: {
264
+ watcherPaths?: string[];
265
+ };
266
+ lifecycle?: {
267
+ onCheckConfig?: () => any;
268
+ onCheck?: () => any;
269
+ onStart?: () => any;
270
+ onCheckPkgJSON?: () => any;
271
+ onGenerateFiles?: () => any;
272
+ onBeforeCompiler?: () => any;
273
+ onCheckCode?: () => any;
274
+ onPkgJSONChanged?: () => any;
275
+ onDevCompileDone?: () => any;
276
+ onBuildComplete?: () => any;
277
+ onBuildHtmlComplete?: () => any;
278
+ };
279
+ errorBoundary?: {};
280
+ html?: {};
281
+ support?: {};
282
+ filename?: {};
283
+ compression?: unknown;
284
+ __phantomDependency?: {};
285
+ eslint?: {};
286
+ stylelint?: {};
287
+ hd?: {
288
+ rules?: {
289
+ minWidth?: number;
290
+ maxWidth?: number;
291
+ mode?: 'vl' | 'flex' | 'vw' | 'vh';
292
+ options?: number | number[];
293
+ }[];
294
+ };
295
+ }