@baic/yolk-cli 2.1.0-alpha.11 → 2.1.0-alpha.14

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 (45) hide show
  1. package/es/yolk.js +1 -1
  2. package/lib/yolk.js +1 -1
  3. package/package.json +7 -7
  4. package/templates/ice-mobile/.gitignore.tpl +6 -3
  5. package/templates/ice-mobile-h5+app/.gitignore.tpl +6 -3
  6. package/templates/ice-mobile-native/.gitignore.tpl +12 -4
  7. package/templates/ice-web/.gitignore.tpl +6 -3
  8. package/templates/ice-web-screen/.gitignore.tpl +6 -3
  9. package/templates/miniprogram/.gitignore.tpl +7 -7
  10. package/templates/umi-mobile/.gitignore.tpl +6 -4
  11. package/templates/umi-mobile-h5+app/.gitignore.tpl +6 -4
  12. package/templates/umi-mobile-native/.gitignore.tpl +12 -5
  13. package/templates/umi-web/.gitignore.tpl +6 -4
  14. package/templates/umi-web-screen/.gitignore.tpl +6 -4
  15. package/templates/umi-web-screen/.umirc.ts.tpl +2 -0
  16. package/templates/ice-web/.eslintcache +0 -1
  17. package/templates/ice-web-screen/.eslintcache +0 -1
  18. package/templates/ice-web-screen/src/layouts/16_9/index.less.d.ts +0 -8
  19. package/templates/ice-web-screen/src/layouts/16_9/style.less.d.ts +0 -10
  20. package/templates/umi-web-screen/src/.umi/core/EmptyRoute.tsx +0 -7
  21. package/templates/umi-web-screen/src/.umi/core/history.ts +0 -53
  22. package/templates/umi-web-screen/src/.umi/core/plugin.ts +0 -31
  23. package/templates/umi-web-screen/src/.umi/core/pluginConfig.d.ts +0 -239
  24. package/templates/umi-web-screen/src/.umi/core/polyfill.ts +0 -358
  25. package/templates/umi-web-screen/src/.umi/core/route.tsx +0 -21
  26. package/templates/umi-web-screen/src/.umi/core/terminal.ts +0 -38
  27. package/templates/umi-web-screen/src/.umi/exports.ts +0 -11
  28. package/templates/umi-web-screen/src/.umi/plugin-moment2dayjs/runtime.tsx +0 -29
  29. package/templates/umi-web-screen/src/.umi/tsconfig.json +0 -32
  30. package/templates/umi-web-screen/src/.umi/typings.d.ts +0 -131
  31. package/templates/umi-web-screen/src/.umi/umi.ts +0 -59
  32. package/templates/umi-web-screen/src/.umi-production/core/EmptyRoute.tsx +0 -7
  33. package/templates/umi-web-screen/src/.umi-production/core/history.ts +0 -53
  34. package/templates/umi-web-screen/src/.umi-production/core/plugin.ts +0 -31
  35. package/templates/umi-web-screen/src/.umi-production/core/pluginConfig.d.ts +0 -239
  36. package/templates/umi-web-screen/src/.umi-production/core/polyfill.ts +0 -358
  37. package/templates/umi-web-screen/src/.umi-production/core/route.tsx +0 -53
  38. package/templates/umi-web-screen/src/.umi-production/core/terminal.ts +0 -38
  39. package/templates/umi-web-screen/src/.umi-production/exports.ts +0 -11
  40. package/templates/umi-web-screen/src/.umi-production/plugin-moment2dayjs/runtime.tsx +0 -29
  41. package/templates/umi-web-screen/src/.umi-production/tsconfig.json +0 -32
  42. package/templates/umi-web-screen/src/.umi-production/typings.d.ts +0 -131
  43. package/templates/umi-web-screen/src/.umi-production/umi.ts +0 -59
  44. package/templates/umi-web-screen/src/layouts/16_9/index.less.d.ts +0 -8
  45. package/templates/umi-web-screen/src/layouts/16_9/style.less.d.ts +0 -10
@@ -1,29 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import dayjs from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs';
5
- import antdPlugin from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/antd-dayjs-webpack-plugin/src/antd-plugin.js';
6
-
7
- import isSameOrBefore from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/isSameOrBefore';
8
- import isSameOrAfter from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/isSameOrAfter';
9
- import advancedFormat from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/advancedFormat';
10
- import customParseFormat from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/customParseFormat';
11
- import weekday from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/weekday';
12
- import weekYear from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/weekYear';
13
- import weekOfYear from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/weekOfYear';
14
- import isMoment from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/isMoment';
15
- import localeData from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/localeData';
16
- import localizedFormat from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/dayjs/plugin/localizedFormat';
17
-
18
- dayjs.extend(isSameOrBefore);
19
- dayjs.extend(isSameOrAfter);
20
- dayjs.extend(advancedFormat);
21
- dayjs.extend(customParseFormat);
22
- dayjs.extend(weekday);
23
- dayjs.extend(weekYear);
24
- dayjs.extend(weekOfYear);
25
- dayjs.extend(isMoment);
26
- dayjs.extend(localeData);
27
- dayjs.extend(localizedFormat);
28
-
29
- dayjs.extend(antdPlugin);
@@ -1,32 +0,0 @@
1
- // This file is generated by Umi automatically
2
- // DO NOT CHANGE IT MANUALLY!
3
- {
4
- "compilerOptions": {
5
- "target": "esnext",
6
- "module": "esnext",
7
- "moduleResolution": "node",
8
- "importHelpers": true,
9
- "jsx": "react-jsx",
10
- "esModuleInterop": true,
11
- "sourceMap": true,
12
- "baseUrl": "../../",
13
- "strict": true,
14
- "resolveJsonModule": true,
15
- "allowSyntheticDefaultImports": true,
16
- "importsNotUsedAsValues": "error",
17
- "paths": {
18
- "@/*": [
19
- "src/*"
20
- ],
21
- "@@/*": [
22
- "src/.umi/*"
23
- ],
24
- "@umijs/max": [
25
- "/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/umi"
26
- ],
27
- "@umijs/max/typings": [
28
- "src/.umi/typings"
29
- ]
30
- }
31
- }
32
- }
@@ -1,131 +0,0 @@
1
- // This file is generated by Umi automatically
2
- // DO NOT CHANGE IT MANUALLY!
3
- type CSSModuleClasses = { readonly [key: string]: string }
4
- declare module '*.css' {
5
- const classes: CSSModuleClasses
6
- export default classes
7
- }
8
- declare module '*.scss' {
9
- const classes: CSSModuleClasses
10
- export default classes
11
- }
12
- declare module '*.sass' {
13
- const classes: CSSModuleClasses
14
- export default classes
15
- }
16
- declare module '*.less' {
17
- const classes: CSSModuleClasses
18
- export default classes
19
- }
20
- declare module '*.styl' {
21
- const classes: CSSModuleClasses
22
- export default classes
23
- }
24
- declare module '*.stylus' {
25
- const classes: CSSModuleClasses
26
- export default classes
27
- }
28
-
29
- // images
30
- declare module '*.jpg' {
31
- const src: string
32
- export default src
33
- }
34
- declare module '*.jpeg' {
35
- const src: string
36
- export default src
37
- }
38
- declare module '*.png' {
39
- const src: string
40
- export default src
41
- }
42
- declare module '*.gif' {
43
- const src: string
44
- export default src
45
- }
46
- declare module '*.svg' {
47
- const src: string
48
- export default src
49
- }
50
- declare module '*.ico' {
51
- const src: string
52
- export default src
53
- }
54
- declare module '*.webp' {
55
- const src: string
56
- export default src
57
- }
58
- declare module '*.avif' {
59
- const src: string
60
- export default src
61
- }
62
-
63
- // media
64
- declare module '*.mp4' {
65
- const src: string
66
- export default src
67
- }
68
- declare module '*.webm' {
69
- const src: string
70
- export default src
71
- }
72
- declare module '*.ogg' {
73
- const src: string
74
- export default src
75
- }
76
- declare module '*.mp3' {
77
- const src: string
78
- export default src
79
- }
80
- declare module '*.wav' {
81
- const src: string
82
- export default src
83
- }
84
- declare module '*.flac' {
85
- const src: string
86
- export default src
87
- }
88
- declare module '*.aac' {
89
- const src: string
90
- export default src
91
- }
92
-
93
- // fonts
94
- declare module '*.woff' {
95
- const src: string
96
- export default src
97
- }
98
- declare module '*.woff2' {
99
- const src: string
100
- export default src
101
- }
102
- declare module '*.eot' {
103
- const src: string
104
- export default src
105
- }
106
- declare module '*.ttf' {
107
- const src: string
108
- export default src
109
- }
110
- declare module '*.otf' {
111
- const src: string
112
- export default src
113
- }
114
-
115
- // other
116
- declare module '*.wasm' {
117
- const initWasm: (options: WebAssembly.Imports) => Promise<WebAssembly.Exports>
118
- export default initWasm
119
- }
120
- declare module '*.webmanifest' {
121
- const src: string
122
- export default src
123
- }
124
- declare module '*.pdf' {
125
- const src: string
126
- export default src
127
- }
128
- declare module '*.txt' {
129
- const src: string
130
- export default src
131
- }
@@ -1,59 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- import './core/polyfill';
5
- import '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/examples/umi-web/src/global.less';
6
- import { renderClient } from '/Users/zdsoft/Desktop/303394539/yolk/2.0.x/node_modules/@umijs/preset-umi/node_modules/@umijs/renderer-react';
7
- import { getRoutes } from './core/route';
8
- import { createPluginManager } from './core/plugin';
9
- import { createHistory } from './core/history';
10
- import { ApplyPluginsType } from 'umi';
11
-
12
-
13
- const publicPath = "/";
14
- const runtimePublicPath = false;
15
-
16
- async function render() {
17
- const pluginManager = createPluginManager();
18
- const { routes, routeComponents } = await getRoutes(pluginManager);
19
-
20
- // allow user to extend routes
21
- await pluginManager.applyPlugins({
22
- key: 'patchRoutes',
23
- type: ApplyPluginsType.event,
24
- args: {
25
- routes,
26
- routeComponents,
27
- },
28
- });
29
-
30
- return (pluginManager.applyPlugins({
31
- key: 'render',
32
- type: ApplyPluginsType.compose,
33
- initialValue() {
34
- const contextOpts = pluginManager.applyPlugins({
35
- key: 'modifyContextOpts',
36
- type: ApplyPluginsType.modify,
37
- initialValue: {},
38
- });
39
- const basename = contextOpts.basename || '/';
40
- const context = {
41
- routes,
42
- routeComponents,
43
- pluginManager,
44
- rootElement: contextOpts.rootElement || document.getElementById('yolk-app'),
45
- publicPath,
46
- runtimePublicPath,
47
- history: createHistory({
48
- type: 'hash',
49
- basename,
50
- }),
51
- basename,
52
- };
53
- return renderClient(context);
54
- },
55
- }))();
56
- }
57
-
58
- import './plugin-moment2dayjs/runtime.tsx'
59
- render();
@@ -1,8 +0,0 @@
1
- // This file is automatically generated.
2
- // Please do not change this file!
3
- interface CssExports {
4
- 'header': string;
5
- 'layout': string;
6
- }
7
- export const cssExports: CssExports;
8
- export default cssExports;
@@ -1,10 +0,0 @@
1
- // This file is automatically generated.
2
- // Please do not change this file!
3
- interface CssExports {
4
- 'flex': string;
5
- 'g-layout': string;
6
- 'gLayout': string;
7
- 'header': string;
8
- }
9
- export const cssExports: CssExports;
10
- export default cssExports;