@varlet/cli 2.10.0 → 2.10.1-alpha.1682608027166

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 (65) hide show
  1. package/lib/client/appType.d.ts +4 -4
  2. package/lib/client/appType.js +7 -7
  3. package/lib/client/index.d.ts +18 -18
  4. package/lib/client/index.js +109 -109
  5. package/lib/node/bin.d.ts +2 -2
  6. package/lib/node/bin.js +148 -148
  7. package/lib/node/commands/build.d.ts +1 -1
  8. package/lib/node/commands/build.js +15 -15
  9. package/lib/node/commands/changelog.d.ts +5 -5
  10. package/lib/node/commands/changelog.js +20 -20
  11. package/lib/node/commands/checklist.d.ts +6 -6
  12. package/lib/node/commands/checklist.js +64 -64
  13. package/lib/node/commands/commitLint.d.ts +4 -4
  14. package/lib/node/commands/commitLint.js +19 -19
  15. package/lib/node/commands/compile.d.ts +3 -3
  16. package/lib/node/commands/compile.js +31 -31
  17. package/lib/node/commands/create.d.ts +7 -7
  18. package/lib/node/commands/create.js +91 -91
  19. package/lib/node/commands/dev.d.ts +6 -6
  20. package/lib/node/commands/dev.js +42 -42
  21. package/lib/node/commands/extension.d.ts +3 -3
  22. package/lib/node/commands/extension.js +5 -5
  23. package/lib/node/commands/gen.d.ts +7 -7
  24. package/lib/node/commands/gen.js +68 -68
  25. package/lib/node/commands/icons.d.ts +1 -1
  26. package/lib/node/commands/icons.js +82 -82
  27. package/lib/node/commands/jest.d.ts +7 -7
  28. package/lib/node/commands/jest.js +27 -27
  29. package/lib/node/commands/lint.d.ts +1 -1
  30. package/lib/node/commands/lint.js +42 -42
  31. package/lib/node/commands/preview.d.ts +1 -1
  32. package/lib/node/commands/preview.js +18 -18
  33. package/lib/node/commands/release.d.ts +5 -5
  34. package/lib/node/commands/release.js +150 -150
  35. package/lib/node/commands/vite.d.ts +2 -2
  36. package/lib/node/commands/vite.js +14 -14
  37. package/lib/node/compiler/compileModule.d.ts +4 -4
  38. package/lib/node/compiler/compileModule.js +71 -71
  39. package/lib/node/compiler/compileSFC.d.ts +6 -6
  40. package/lib/node/compiler/compileSFC.js +97 -96
  41. package/lib/node/compiler/compileScript.d.ts +13 -13
  42. package/lib/node/compiler/compileScript.js +126 -126
  43. package/lib/node/compiler/compileSiteEntry.d.ts +18 -18
  44. package/lib/node/compiler/compileSiteEntry.js +121 -121
  45. package/lib/node/compiler/compileStyle.d.ts +10 -10
  46. package/lib/node/compiler/compileStyle.js +41 -41
  47. package/lib/node/compiler/compileTemplateHighlight.d.ts +18 -18
  48. package/lib/node/compiler/compileTemplateHighlight.js +128 -128
  49. package/lib/node/compiler/compileTypes.d.ts +2 -2
  50. package/lib/node/compiler/compileTypes.js +40 -40
  51. package/lib/node/config/varlet.config.d.ts +73 -73
  52. package/lib/node/config/varlet.config.js +27 -27
  53. package/lib/node/config/varlet.default.config.d.ts +2 -2
  54. package/lib/node/config/varlet.default.config.js +271 -271
  55. package/lib/node/config/vite.config.d.ts +13 -13
  56. package/lib/node/config/vite.config.js +115 -115
  57. package/lib/node/index.d.ts +15 -15
  58. package/lib/node/index.js +15 -15
  59. package/lib/node/shared/constant.d.ts +51 -51
  60. package/lib/node/shared/constant.js +58 -58
  61. package/lib/node/shared/fsUtils.d.ts +15 -15
  62. package/lib/node/shared/fsUtils.js +54 -54
  63. package/lib/node/shared/logger.d.ts +8 -8
  64. package/lib/node/shared/logger.js +18 -18
  65. package/package.json +7 -7
@@ -1,271 +1,271 @@
1
- import { defineConfig } from './varlet.config.js';
2
- export default defineConfig({
3
- name: 'Varlet',
4
- namespace: 'var',
5
- host: 'localhost',
6
- port: 8080,
7
- title: 'VARLET',
8
- logo: 'https://varlet.gitee.io/varlet-ui/varlet_icon.png',
9
- defaultLanguage: 'zh-CN',
10
- highlight: {
11
- /**
12
- * @see https://highlightjs.org/
13
- */
14
- style: '//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.3.2/styles/nord.min.css',
15
- },
16
- analysis: {
17
- baidu: '',
18
- },
19
- useMobile: false,
20
- pc: {
21
- menu: [],
22
- redirect: '/index',
23
- indexPage: {
24
- description: {
25
- 'zh-CN': 'Varlet 是一个基于 Vue3 开发的 Material 风格移动端组件库,全面拥抱 Vue3 生态,由社区团队维护。支持 Typescript、按需引入、暗黑模式、主题定制、国际化,并提供 VSCode 插件保障良好的开发体验',
26
- 'en-US': 'Varlet is a Material design mobile component library developed based on Vue3, developed and maintained by partners in the community. Support Typescript, import on demand, dark mode, theme customization, internationalization, and provide VSCode plugin to ensure a good development experience',
27
- },
28
- started: {
29
- 'zh-CN': '起步',
30
- 'en-US': 'GET STARTED',
31
- },
32
- features: [
33
- {
34
- name: {
35
- 'zh-CN': '组件丰富',
36
- 'en-US': 'Rich components',
37
- },
38
- description: {
39
- 'zh-CN': '提供 50 个高质量通用组件',
40
- 'en-US': 'Provide 50 high quality general purpose components',
41
- },
42
- },
43
- {
44
- name: {
45
- 'zh-CN': '按需引入',
46
- 'en-US': 'On-Demand',
47
- },
48
- description: {
49
- 'zh-CN': '每一个组件都可单独引入,并有着良好的 tree-shaking 优化',
50
- 'en-US': 'Each component can be imported separately and has good tree-shaking optimization',
51
- },
52
- },
53
- {
54
- name: {
55
- 'zh-CN': '主题定制',
56
- 'en-US': 'Theme customization',
57
- },
58
- description: {
59
- 'zh-CN': '内置亮色和暗色两种主题,支持组件的样式自定义',
60
- 'en-US': 'Built-in light and dark themes, support style customization of components',
61
- },
62
- },
63
- {
64
- name: {
65
- 'zh-CN': '国际化',
66
- 'en-US': 'Locale',
67
- },
68
- description: {
69
- 'zh-CN': '内置国际化 API,内置中文和英文的语言包',
70
- 'en-US': 'Built-in i18n API, which supports both Chinese and English languages by default',
71
- },
72
- },
73
- {
74
- name: {
75
- 'zh-CN': '支持 Typescript',
76
- 'en-US': 'Support typescript',
77
- },
78
- description: {
79
- 'zh-CN': '使用 Typescript 构建,提供良好的组件类型系统',
80
- 'en-US': 'Built with typescript, which provides a nice components type system',
81
- },
82
- },
83
- {
84
- name: {
85
- 'zh-CN': '服务端渲染',
86
- 'en-US': 'Server-side rendering',
87
- },
88
- description: {
89
- 'zh-CN': '对服务端渲染支持良好,并对 Nuxt 进行了适配',
90
- 'en-US': 'Good support for server-side rendering and adaptation to Nuxt',
91
- },
92
- },
93
- {
94
- name: {
95
- 'zh-CN': '国人开发',
96
- 'en-US': 'Developed by Chinese',
97
- },
98
- description: {
99
- 'zh-CN': '由国人开发,完善的中英文文档和后勤保障',
100
- 'en-US': 'Complete Chinese and English documentation and logistics support',
101
- },
102
- },
103
- {
104
- name: {
105
- 'zh-CN': 'IDE 支持',
106
- 'en-US': 'IDE Code Support',
107
- },
108
- description: {
109
- 'zh-CN': '支持在 webstorm,vscode 中的组件语法高亮, 并提供 vscode 插件为开发提升效率',
110
- 'en-US': 'Supports to highlight the component syntax for webstorm and vscode, and provides a separate helper plugin for vscode',
111
- },
112
- },
113
- {
114
- name: {
115
- 'zh-CN': '组件库快速成型工具',
116
- 'en-US': 'Component library toolchain',
117
- },
118
- description: {
119
- 'zh-CN': '开源了搭建本组件库的所有工具链,提供快速开发组件库的能力',
120
- 'en-US': 'Open-sourced the toolchain for building this component library, providing the ability to rapidly develop the component library',
121
- },
122
- },
123
- ],
124
- contributors: {
125
- label: {
126
- 'zh-CN': '贡献者',
127
- 'en-US': 'Contributors',
128
- },
129
- link: 'https://github.com/varletjs/varlet/graphs/contributors',
130
- image: 'https://contrib.rocks/image?repo=varletjs/varlet',
131
- },
132
- license: {
133
- 'zh-CN': '组件库基于 MIT 协议,您可以自由的使用和分享',
134
- 'en-US': 'Released under the MIT License, You can use and share freely.',
135
- },
136
- copyright: {
137
- 'zh-CN': 'Copyright © 2022 varletjs 组织成员以及 varlet 的贡献者们',
138
- 'en-US': 'Copyright © 2022 varletjs member and varlet contributors.',
139
- },
140
- },
141
- title: {
142
- 'zh-CN': '面向 Vue3 的 Material 风格移动端组件库',
143
- 'en-US': 'Material design mobile components built for Vue3',
144
- },
145
- header: {
146
- i18n: {
147
- 'zh-CN': '中文',
148
- 'en-US': 'English',
149
- },
150
- versions: null,
151
- github: 'https://github.com/varletjs/varlet',
152
- playground: 'https://varlet.gitee.io/varlet-ui-playground',
153
- darkMode: true,
154
- },
155
- clipboard: {
156
- 'zh-CN': '代码已复制到剪切板',
157
- 'en-US': 'The code has been copied to the clipboard',
158
- },
159
- fold: {
160
- defaultFold: false,
161
- foldHeight: 50,
162
- },
163
- },
164
- mobile: {
165
- redirect: '/home',
166
- title: {
167
- 'zh-CN': '面向 Vue3 的 Material 风格移动端组件库',
168
- 'en-US': 'Material design mobile components built for Vue3',
169
- },
170
- header: {
171
- i18n: {
172
- 'zh-CN': '中文',
173
- 'en-US': 'English',
174
- },
175
- github: 'https://github.com/varletjs/varlet',
176
- darkMode: true,
177
- },
178
- },
179
- themeKey: 'VARLET_THEME',
180
- lightTheme: {
181
- 'color-body': '#fff',
182
- 'color-index-page-background': '#f2f2f2',
183
- 'color-index-page-feature-background': '#fff',
184
- 'color-index-page-logo-mask-background': 'linear-gradient(-45deg, #8baff8 50%, #84e0ff 50%)',
185
- 'color-index-page-second-text-color': 'rgba(60, 60, 60, .7)',
186
- 'color-index-page-divider-color': '#ddd',
187
- 'color-bar': '#fff',
188
- 'color-sub-bar': '#f5f5f5',
189
- 'color-text': '#555',
190
- 'color-sub-text': '#888',
191
- 'color-border': 'rgba(0, 0, 0, 0.12)',
192
- 'color-shadow': '#eee',
193
- 'color-introduce-border': '#2196f3',
194
- 'color-primary': '#2196f3',
195
- 'color-link': '#00c48f',
196
- 'color-type': '#00c48f',
197
- 'color-loading-bar': '#1d92e9',
198
- 'color-side-bar': '#3a7afe',
199
- 'color-side-bar-active-background': '#3a7afe1a',
200
- 'color-app-bar': '#3a7afe',
201
- 'color-nav-button-hover-background': 'rgba(0, 0, 0, 0.08)',
202
- 'color-mobile-cell-hover': '#3a7afe',
203
- 'color-pc-language-active': '#3a7afe',
204
- 'color-pc-language-active-background': '#edf5ff',
205
- 'color-pc-github-active-background': '#212121',
206
- 'color-mobile-language-active': '#3a7afe',
207
- 'color-mobile-language-active-background': '#edf5ff',
208
- 'color-hl-background': '#fafafa',
209
- 'color-hl-code': '#58727e',
210
- 'color-hl-border': '#f3f3f3',
211
- 'color-hl-group-a': '#7c7c7c',
212
- 'color-hl-group-b': '#2196f3',
213
- 'color-hl-group-c': '#ff9422',
214
- 'color-hl-group-d': '#58c193',
215
- 'color-hl-group-e': '#ff9422',
216
- 'color-hl-group-f': '#ff9422',
217
- 'color-hl-group-g': '#ff9422',
218
- 'color-hl-group-h': '#06a6e9',
219
- 'color-hl-group-i': '#f23733',
220
- },
221
- darkTheme: {
222
- 'color-body': '#121212',
223
- 'color-index-page-background': '#1e1e1e',
224
- 'color-index-page-feature-background': '#303030',
225
- 'color-index-page-logo-mask-background': 'linear-gradient(-45deg, #729dfc 50%, #6859f4 50%)',
226
- 'color-index-page-second-text-color': 'rgba(255, 255, 255, .75)',
227
- 'color-index-page-divider-color': 'rgba(84, 84, 84, .8)',
228
- 'color-bar': '#1e1e1e',
229
- 'color-sub-bar': '#272727',
230
- 'color-text': '#fff',
231
- 'color-sub-text': '#aaa',
232
- 'color-border': '#333',
233
- 'color-shadow': '#121212',
234
- 'color-introduce-border': '#555',
235
- 'color-primary': '#96cbfe',
236
- 'color-link': '#A8FFC4',
237
- 'color-type': '#A8FFC4',
238
- 'color-loading-bar': '#5580f8',
239
- 'color-side-bar': '#4a7afe',
240
- 'color-side-bar-active-background': '#4a7afe1a',
241
- 'color-app-bar': '#272727',
242
- 'color-nav-button-hover-background': 'rgba(255, 255, 255, 0.08)',
243
- 'color-mobile-cell-hover': '#4a7afe',
244
- 'color-pc-language-active': '#4a7afe',
245
- 'color-pc-language-active-background': '#4a7afe20',
246
- 'color-pc-github-active-background': '#303030',
247
- 'color-mobile-language-active': '#4a7afe',
248
- 'color-mobile-language-active-background': '#4a7afe20',
249
- 'color-hl-background': '#272727',
250
- 'color-hl-code': '#fff',
251
- 'color-hl-border': '#272727',
252
- 'color-hl-group-a': '#7c7c7c',
253
- 'color-hl-group-b': '#96cbfe',
254
- 'color-hl-group-c': '#ff7b1e',
255
- 'color-hl-group-d': '#A8FFC4',
256
- 'color-hl-group-e': '#ff7b1e',
257
- 'color-hl-group-f': '#ff7b1e',
258
- 'color-hl-group-g': '#ff7b1e',
259
- 'color-hl-group-h': '#14a6e9',
260
- 'color-hl-group-i': '#ed4648',
261
- },
262
- icons: {
263
- name: 'varlet-icons',
264
- namespace: 'var-icon',
265
- fontStyle: 'normal',
266
- fontWeight: 'normal',
267
- fontFamilyClassName: 'var-icon--set',
268
- base64: true,
269
- },
270
- directives: [],
271
- });
1
+ import { defineConfig } from './varlet.config.js';
2
+ export default defineConfig({
3
+ name: 'Varlet',
4
+ namespace: 'var',
5
+ host: 'localhost',
6
+ port: 8080,
7
+ title: 'VARLET',
8
+ logo: 'https://varlet.gitee.io/varlet-ui/varlet_icon.png',
9
+ defaultLanguage: 'zh-CN',
10
+ highlight: {
11
+ /**
12
+ * @see https://highlightjs.org/
13
+ */
14
+ style: '//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.3.2/styles/nord.min.css',
15
+ },
16
+ analysis: {
17
+ baidu: '',
18
+ },
19
+ useMobile: false,
20
+ pc: {
21
+ menu: [],
22
+ redirect: '/index',
23
+ indexPage: {
24
+ description: {
25
+ 'zh-CN': 'Varlet 是一个基于 Vue3 开发的 Material 风格移动端组件库,全面拥抱 Vue3 生态,由社区团队维护。支持 Typescript、按需引入、暗黑模式、主题定制、国际化,并提供 VSCode 插件保障良好的开发体验',
26
+ 'en-US': 'Varlet is a Material design mobile component library developed based on Vue3, developed and maintained by partners in the community. Support Typescript, import on demand, dark mode, theme customization, internationalization, and provide VSCode plugin to ensure a good development experience',
27
+ },
28
+ started: {
29
+ 'zh-CN': '起步',
30
+ 'en-US': 'GET STARTED',
31
+ },
32
+ features: [
33
+ {
34
+ name: {
35
+ 'zh-CN': '组件丰富',
36
+ 'en-US': 'Rich components',
37
+ },
38
+ description: {
39
+ 'zh-CN': '提供 50 个高质量通用组件',
40
+ 'en-US': 'Provide 50 high quality general purpose components',
41
+ },
42
+ },
43
+ {
44
+ name: {
45
+ 'zh-CN': '按需引入',
46
+ 'en-US': 'On-Demand',
47
+ },
48
+ description: {
49
+ 'zh-CN': '每一个组件都可单独引入,并有着良好的 tree-shaking 优化',
50
+ 'en-US': 'Each component can be imported separately and has good tree-shaking optimization',
51
+ },
52
+ },
53
+ {
54
+ name: {
55
+ 'zh-CN': '主题定制',
56
+ 'en-US': 'Theme customization',
57
+ },
58
+ description: {
59
+ 'zh-CN': '内置亮色和暗色两种主题,支持组件的样式自定义',
60
+ 'en-US': 'Built-in light and dark themes, support style customization of components',
61
+ },
62
+ },
63
+ {
64
+ name: {
65
+ 'zh-CN': '国际化',
66
+ 'en-US': 'Locale',
67
+ },
68
+ description: {
69
+ 'zh-CN': '内置国际化 API,内置中文和英文的语言包',
70
+ 'en-US': 'Built-in i18n API, which supports both Chinese and English languages by default',
71
+ },
72
+ },
73
+ {
74
+ name: {
75
+ 'zh-CN': '支持 Typescript',
76
+ 'en-US': 'Support typescript',
77
+ },
78
+ description: {
79
+ 'zh-CN': '使用 Typescript 构建,提供良好的组件类型系统',
80
+ 'en-US': 'Built with typescript, which provides a nice components type system',
81
+ },
82
+ },
83
+ {
84
+ name: {
85
+ 'zh-CN': '服务端渲染',
86
+ 'en-US': 'Server-side rendering',
87
+ },
88
+ description: {
89
+ 'zh-CN': '对服务端渲染支持良好,并对 Nuxt 进行了适配',
90
+ 'en-US': 'Good support for server-side rendering and adaptation to Nuxt',
91
+ },
92
+ },
93
+ {
94
+ name: {
95
+ 'zh-CN': '国人开发',
96
+ 'en-US': 'Developed by Chinese',
97
+ },
98
+ description: {
99
+ 'zh-CN': '由国人开发,完善的中英文文档和后勤保障',
100
+ 'en-US': 'Complete Chinese and English documentation and logistics support',
101
+ },
102
+ },
103
+ {
104
+ name: {
105
+ 'zh-CN': 'IDE 支持',
106
+ 'en-US': 'IDE Code Support',
107
+ },
108
+ description: {
109
+ 'zh-CN': '支持在 webstorm,vscode 中的组件语法高亮, 并提供 vscode 插件为开发提升效率',
110
+ 'en-US': 'Supports to highlight the component syntax for webstorm and vscode, and provides a separate helper plugin for vscode',
111
+ },
112
+ },
113
+ {
114
+ name: {
115
+ 'zh-CN': '组件库快速成型工具',
116
+ 'en-US': 'Component library toolchain',
117
+ },
118
+ description: {
119
+ 'zh-CN': '开源了搭建本组件库的所有工具链,提供快速开发组件库的能力',
120
+ 'en-US': 'Open-sourced the toolchain for building this component library, providing the ability to rapidly develop the component library',
121
+ },
122
+ },
123
+ ],
124
+ contributors: {
125
+ label: {
126
+ 'zh-CN': '贡献者',
127
+ 'en-US': 'Contributors',
128
+ },
129
+ link: 'https://github.com/varletjs/varlet/graphs/contributors',
130
+ image: 'https://contrib.rocks/image?repo=varletjs/varlet',
131
+ },
132
+ license: {
133
+ 'zh-CN': '组件库基于 MIT 协议,您可以自由的使用和分享',
134
+ 'en-US': 'Released under the MIT License, You can use and share freely.',
135
+ },
136
+ copyright: {
137
+ 'zh-CN': 'Copyright © 2022 varletjs 组织成员以及 varlet 的贡献者们',
138
+ 'en-US': 'Copyright © 2022 varletjs member and varlet contributors.',
139
+ },
140
+ },
141
+ title: {
142
+ 'zh-CN': '面向 Vue3 的 Material 风格移动端组件库',
143
+ 'en-US': 'Material design mobile components built for Vue3',
144
+ },
145
+ header: {
146
+ i18n: {
147
+ 'zh-CN': '中文',
148
+ 'en-US': 'English',
149
+ },
150
+ versions: null,
151
+ github: 'https://github.com/varletjs/varlet',
152
+ playground: 'https://varlet.gitee.io/varlet-ui-playground',
153
+ darkMode: true,
154
+ },
155
+ clipboard: {
156
+ 'zh-CN': '代码已复制到剪切板',
157
+ 'en-US': 'The code has been copied to the clipboard',
158
+ },
159
+ fold: {
160
+ defaultFold: false,
161
+ foldHeight: 50,
162
+ },
163
+ },
164
+ mobile: {
165
+ redirect: '/home',
166
+ title: {
167
+ 'zh-CN': '面向 Vue3 的 Material 风格移动端组件库',
168
+ 'en-US': 'Material design mobile components built for Vue3',
169
+ },
170
+ header: {
171
+ i18n: {
172
+ 'zh-CN': '中文',
173
+ 'en-US': 'English',
174
+ },
175
+ github: 'https://github.com/varletjs/varlet',
176
+ darkMode: true,
177
+ },
178
+ },
179
+ themeKey: 'VARLET_THEME',
180
+ lightTheme: {
181
+ 'color-body': '#fff',
182
+ 'color-index-page-background': '#f2f2f2',
183
+ 'color-index-page-feature-background': '#fff',
184
+ 'color-index-page-logo-mask-background': 'linear-gradient(-45deg, #8baff8 50%, #84e0ff 50%)',
185
+ 'color-index-page-second-text-color': 'rgba(60, 60, 60, .7)',
186
+ 'color-index-page-divider-color': '#ddd',
187
+ 'color-bar': '#fff',
188
+ 'color-sub-bar': '#f5f5f5',
189
+ 'color-text': '#555',
190
+ 'color-sub-text': '#888',
191
+ 'color-border': 'rgba(0, 0, 0, 0.12)',
192
+ 'color-shadow': '#eee',
193
+ 'color-introduce-border': '#2196f3',
194
+ 'color-primary': '#2196f3',
195
+ 'color-link': '#00c48f',
196
+ 'color-type': '#00c48f',
197
+ 'color-loading-bar': '#1d92e9',
198
+ 'color-side-bar': '#3a7afe',
199
+ 'color-side-bar-active-background': '#3a7afe1a',
200
+ 'color-app-bar': '#3a7afe',
201
+ 'color-nav-button-hover-background': 'rgba(0, 0, 0, 0.08)',
202
+ 'color-mobile-cell-hover': '#3a7afe',
203
+ 'color-pc-language-active': '#3a7afe',
204
+ 'color-pc-language-active-background': '#edf5ff',
205
+ 'color-pc-github-active-background': '#212121',
206
+ 'color-mobile-language-active': '#3a7afe',
207
+ 'color-mobile-language-active-background': '#edf5ff',
208
+ 'color-hl-background': '#fafafa',
209
+ 'color-hl-code': '#58727e',
210
+ 'color-hl-border': '#f3f3f3',
211
+ 'color-hl-group-a': '#7c7c7c',
212
+ 'color-hl-group-b': '#2196f3',
213
+ 'color-hl-group-c': '#ff9422',
214
+ 'color-hl-group-d': '#58c193',
215
+ 'color-hl-group-e': '#ff9422',
216
+ 'color-hl-group-f': '#ff9422',
217
+ 'color-hl-group-g': '#ff9422',
218
+ 'color-hl-group-h': '#06a6e9',
219
+ 'color-hl-group-i': '#f23733',
220
+ },
221
+ darkTheme: {
222
+ 'color-body': '#121212',
223
+ 'color-index-page-background': '#1e1e1e',
224
+ 'color-index-page-feature-background': '#303030',
225
+ 'color-index-page-logo-mask-background': 'linear-gradient(-45deg, #729dfc 50%, #6859f4 50%)',
226
+ 'color-index-page-second-text-color': 'rgba(255, 255, 255, .75)',
227
+ 'color-index-page-divider-color': 'rgba(84, 84, 84, .8)',
228
+ 'color-bar': '#1e1e1e',
229
+ 'color-sub-bar': '#272727',
230
+ 'color-text': '#fff',
231
+ 'color-sub-text': '#aaa',
232
+ 'color-border': '#333',
233
+ 'color-shadow': '#121212',
234
+ 'color-introduce-border': '#555',
235
+ 'color-primary': '#96cbfe',
236
+ 'color-link': '#A8FFC4',
237
+ 'color-type': '#A8FFC4',
238
+ 'color-loading-bar': '#5580f8',
239
+ 'color-side-bar': '#4a7afe',
240
+ 'color-side-bar-active-background': '#4a7afe1a',
241
+ 'color-app-bar': '#272727',
242
+ 'color-nav-button-hover-background': 'rgba(255, 255, 255, 0.08)',
243
+ 'color-mobile-cell-hover': '#4a7afe',
244
+ 'color-pc-language-active': '#4a7afe',
245
+ 'color-pc-language-active-background': '#4a7afe20',
246
+ 'color-pc-github-active-background': '#303030',
247
+ 'color-mobile-language-active': '#4a7afe',
248
+ 'color-mobile-language-active-background': '#4a7afe20',
249
+ 'color-hl-background': '#272727',
250
+ 'color-hl-code': '#fff',
251
+ 'color-hl-border': '#272727',
252
+ 'color-hl-group-a': '#7c7c7c',
253
+ 'color-hl-group-b': '#96cbfe',
254
+ 'color-hl-group-c': '#ff7b1e',
255
+ 'color-hl-group-d': '#A8FFC4',
256
+ 'color-hl-group-e': '#ff7b1e',
257
+ 'color-hl-group-f': '#ff7b1e',
258
+ 'color-hl-group-g': '#ff7b1e',
259
+ 'color-hl-group-h': '#14a6e9',
260
+ 'color-hl-group-i': '#ed4648',
261
+ },
262
+ icons: {
263
+ name: 'varlet-icons',
264
+ namespace: 'var-icon',
265
+ fontStyle: 'normal',
266
+ fontWeight: 'normal',
267
+ fontFamilyClassName: 'var-icon--set',
268
+ base64: true,
269
+ },
270
+ directives: [],
271
+ });
@@ -1,13 +1,13 @@
1
- import { InlineConfig } from 'vite';
2
- import { VarletConfig } from './varlet.config';
3
- export declare function getDevConfig(varletConfig: Required<VarletConfig>): InlineConfig;
4
- export declare function getBuildConfig(varletConfig: Required<VarletConfig>): InlineConfig;
5
- export interface BundleBuildOptions {
6
- fileName: string;
7
- output: string;
8
- format: 'es' | 'cjs' | 'umd';
9
- emptyOutDir: boolean;
10
- }
11
- export declare function getBundleConfig(varletConfig: Required<VarletConfig>, buildOptions: BundleBuildOptions): InlineConfig;
12
- export declare type ExtensionMode = 'dev' | 'build';
13
- export declare function getExtensionConfig(mode: ExtensionMode): InlineConfig;
1
+ import { InlineConfig } from 'vite';
2
+ import { VarletConfig } from './varlet.config';
3
+ export declare function getDevConfig(varletConfig: Required<VarletConfig>): InlineConfig;
4
+ export declare function getBuildConfig(varletConfig: Required<VarletConfig>): InlineConfig;
5
+ export interface BundleBuildOptions {
6
+ fileName: string;
7
+ output: string;
8
+ format: 'es' | 'cjs' | 'umd';
9
+ emptyOutDir: boolean;
10
+ }
11
+ export declare function getBundleConfig(varletConfig: Required<VarletConfig>, buildOptions: BundleBuildOptions): InlineConfig;
12
+ export declare type ExtensionMode = 'dev' | 'build';
13
+ export declare function getExtensionConfig(mode: ExtensionMode): InlineConfig;