@varlet/cli 3.15.0-alpha.1776572752298 → 3.15.0-alpha.1776606769606

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.
@@ -58,6 +58,10 @@ export async function gen(options) {
58
58
  await copy(configBase, dest);
59
59
  await copy(code, dest);
60
60
  await rename(resolve(dest, '_gitignore'), resolve(dest, '.gitignore'));
61
+ const scaffoldTsconfigPath = resolve(dest, 'tsconfig.template.json');
62
+ if (pathExistsSync(scaffoldTsconfigPath)) {
63
+ await rename(scaffoldTsconfigPath, resolve(dest, 'tsconfig.json'));
64
+ }
61
65
  syncVersion(name);
62
66
  logger.success('✨ Application generated successfully!');
63
67
  logger.info(`\
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/cli",
3
- "version": "3.15.0-alpha.1776572752298",
3
+ "version": "3.15.0-alpha.1776606769606",
4
4
  "description": "cli of varlet",
5
5
  "keywords": [
6
6
  "cli",
@@ -56,8 +56,8 @@
56
56
  "typescript": "5.6.3",
57
57
  "vite-plus": "0.1.18",
58
58
  "vue": "3.5.21",
59
- "@varlet/vite-plugins": "3.15.0-alpha.1776572752298",
60
- "@varlet/shared": "3.15.0-alpha.1776572752298"
59
+ "@varlet/vite-plugins": "3.15.0-alpha.1776606769606",
60
+ "@varlet/shared": "3.15.0-alpha.1776606769606"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/babel__core": "^7.20.1",
@@ -69,9 +69,9 @@
69
69
  "@types/node": "^20.19.0",
70
70
  "@types/sharp": "0.31.1",
71
71
  "rimraf": "^5.0.1",
72
- "@varlet/icons": "3.15.0-alpha.1776572752298",
73
- "@varlet/touch-emulator": "3.15.0-alpha.1776572752298",
74
- "@varlet/ui": "3.15.0-alpha.1776572752298"
72
+ "@varlet/ui": "3.15.0-alpha.1776606769606",
73
+ "@varlet/icons": "3.15.0-alpha.1776606769606",
74
+ "@varlet/touch-emulator": "3.15.0-alpha.1776606769606"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@vitest/coverage-istanbul": "4.1.4",
@@ -82,9 +82,9 @@
82
82
  "live-server": "^1.2.1",
83
83
  "vue": "3.5.21",
84
84
  "vue-router": "4.5.1",
85
- "@varlet/icons": "3.15.0-alpha.1776572752298",
86
- "@varlet/touch-emulator": "3.15.0-alpha.1776572752298",
87
- "@varlet/ui": "3.15.0-alpha.1776572752298"
85
+ "@varlet/icons": "3.15.0-alpha.1776606769606",
86
+ "@varlet/touch-emulator": "3.15.0-alpha.1776606769606",
87
+ "@varlet/ui": "3.15.0-alpha.1776606769606"
88
88
  },
89
89
  "engines": {
90
90
  "node": "^14.18.0 || >=16.0.0"
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["VoidZero.vite-plus-extension-pack"]
3
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "eslint.enable": false,
3
+ "prettier.enable": false,
4
+ "editor.defaultFormatter": "oxc.oxc-vscode"
5
+ }
@@ -19,7 +19,6 @@
19
19
  "*.css"
20
20
  ],
21
21
  "scripts": {
22
- "preinstall": "npx only-allow pnpm",
23
22
  "prepare": "vp config --hooks-dir .vite-hooks && rt hook",
24
23
  "dev": "varlet-cli dev",
25
24
  "build": "varlet-cli build",
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "ESNext",
5
+ "strict": true,
6
+ "declaration": true,
7
+ "noEmit": true,
8
+ "skipLibCheck": true,
9
+ "esModuleInterop": true,
10
+ "allowJs": true,
11
+ "lib": ["esnext", "dom"],
12
+ "allowSyntheticDefaultImports": true,
13
+ "jsxImportSource": "vue",
14
+ "jsx": "preserve",
15
+ "types": ["vite-plus/test/globals"],
16
+ "moduleResolution": "bundler"
17
+ },
18
+ "include": ["src", "types", "shims", "vite.config.mts", "varlet.config.mjs"],
19
+ "exclude": ["node_modules", "es", "lib", "umd", "site", "coverage", "highlight", ".varlet", ".vite-hooks"]
20
+ }
@@ -3,23 +3,99 @@ import { defineConfig } from '@varlet/cli'
3
3
  export default defineConfig({
4
4
  logo: './logo.svg',
5
5
  useMobile: true,
6
+ title: 'Varlet X',
6
7
  pc: {
8
+ description: {
9
+ 'zh-CN':
10
+ 'Varlet X 是一个基于 Vue3 开发的 Material design 组件库,支持移动端和桌面端,由 varletjs 组织开发和维护。支持 Typescript、按需引入、暗黑模式、主题定制、国际化,并提供 VSCode 插件以保证良好的开发体验。',
11
+ 'en-US':
12
+ 'Varlet X is a Material design component library developed based on Vue3, supporting mobile and desktop, developed and maintained by varletjs organization. Support Typescript, import on demand, dark mode, theme customization, internationalization, and provide VSCode plugin to ensure a good development experience.',
13
+ },
7
14
  header: {
8
15
  darkMode: null,
9
- i18n: null,
10
16
  playground: null,
11
17
  versions: null,
18
+ changelog: null,
19
+ },
20
+ indexPage: {
21
+ sponsors: null,
22
+ contributors: null,
23
+ teamMembers: null,
24
+ features: [
25
+ {
26
+ name: {
27
+ 'zh-CN': '特性',
28
+ 'en-US': 'Feature',
29
+ },
30
+ description: {
31
+ 'zh-CN': '特性描述',
32
+ 'en-US': 'Feature description',
33
+ },
34
+ },
35
+ {
36
+ name: {
37
+ 'zh-CN': '特性',
38
+ 'en-US': 'Feature',
39
+ },
40
+ description: {
41
+ 'zh-CN': '特性描述',
42
+ 'en-US': 'Feature description',
43
+ },
44
+ },
45
+ {
46
+ name: {
47
+ 'zh-CN': '特性',
48
+ 'en-US': 'Feature',
49
+ },
50
+ description: {
51
+ 'zh-CN': '特性描述',
52
+ 'en-US': 'Feature description',
53
+ },
54
+ },
55
+ {
56
+ name: {
57
+ 'zh-CN': '特性',
58
+ 'en-US': 'Feature',
59
+ },
60
+ description: {
61
+ 'zh-CN': '特性描述',
62
+ 'en-US': 'Feature description',
63
+ },
64
+ },
65
+ {
66
+ name: {
67
+ 'zh-CN': '特性',
68
+ 'en-US': 'Feature',
69
+ },
70
+ description: {
71
+ 'zh-CN': '特性描述',
72
+ 'en-US': 'Feature description',
73
+ },
74
+ },
75
+ {
76
+ name: {
77
+ 'zh-CN': '特性',
78
+ 'en-US': 'Feature',
79
+ },
80
+ description: {
81
+ 'zh-CN': '特性描述',
82
+ 'en-US': 'Feature description',
83
+ },
84
+ },
85
+ ],
12
86
  },
13
87
  menu: [
14
88
  {
15
89
  text: {
16
90
  'zh-CN': '开发指南',
91
+ 'en-US': 'Developer Guide',
17
92
  },
18
93
  type: 1,
19
94
  },
20
95
  {
21
96
  text: {
22
97
  'zh-CN': '基本介绍',
98
+ 'en-US': 'Basic Introduce',
23
99
  },
24
100
  doc: 'home',
25
101
  type: 3,
@@ -27,12 +103,14 @@ export default defineConfig({
27
103
  {
28
104
  text: {
29
105
  'zh-CN': '基础组件',
106
+ 'en-US': 'Basic Components',
30
107
  },
31
108
  type: 1,
32
109
  },
33
110
  {
34
111
  text: {
35
112
  'zh-CN': 'Button 按钮',
113
+ 'en-US': 'Button',
36
114
  },
37
115
  doc: 'button',
38
116
  type: 2,
@@ -41,8 +119,13 @@ export default defineConfig({
41
119
  },
42
120
  mobile: {
43
121
  header: {
44
- i18n: null,
45
122
  darkMode: null,
46
123
  },
124
+ title: {
125
+ 'zh-CN':
126
+ 'Varlet X 是一个基于 Vue3 开发的 Material design 组件库,支持移动端和桌面端,由 varletjs 组织开发和维护。支持 Typescript、按需引入、暗黑模式、主题定制、国际化,并提供 VSCode 插件以保证良好的开发体验。',
127
+ 'en-US':
128
+ 'Varlet X is a Material design component library developed based on Vue3, supporting mobile and desktop, developed and maintained by varletjs organization. Support Typescript, import on demand, dark mode, theme customization, internationalization, and provide VSCode plugin to ensure a good development experience.',
129
+ },
47
130
  },
48
131
  })
@@ -1,5 +1,5 @@
1
- import type { Pack } from '../../types'
1
+ import type { Message } from './index'
2
2
 
3
- declare const enUS: Pack
3
+ declare const enUS: Message
4
4
 
5
5
  export default enUS
@@ -1,5 +1,5 @@
1
- import type { Pack } from '../../types'
1
+ import type { Message } from './index'
2
2
 
3
- declare const zhCN: Pack
3
+ declare const zhCN: Message
4
4
 
5
5
  export default zhCN
@@ -1,5 +1,5 @@
1
- import type { Pack } from '../../types'
1
+ import type { Message } from './index'
2
2
 
3
- declare const enUS: Pack
3
+ declare const enUS: Message
4
4
 
5
5
  export default enUS
@@ -1,5 +1,5 @@
1
- import type { Pack } from '../../types'
1
+ import type { Message } from './index'
2
2
 
3
- declare const zhCN: Pack
3
+ declare const zhCN: Message
4
4
 
5
5
  export default zhCN
@@ -1,14 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "declaration": true,
5
- "skipLibCheck": true,
6
- "esModuleInterop": true,
7
- "allowJs": true,
8
- "lib": ["esnext", "dom"],
9
- "allowSyntheticDefaultImports": true,
10
- "jsxImportSource": "vue",
11
- "jsx": "preserve",
12
- "types": ["vite-plus/test/globals"]
13
- }
14
- }