We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1dceb8 commit 9223da6Copy full SHA for 9223da6
package.json
@@ -7,7 +7,8 @@
7
"packages/*"
8
],
9
"scripts": {
10
- "dev": "esno ./scripts/build.mjs",
+ "build": "esno ./scripts/build.mjs",
11
+ "dev": "cd vite-cli && farm build --watch",
12
"build:docs": "turbo run build --filter=docs",
13
"serve": "turbo run docs --parallel",
14
"lint": "turbo run lint",
pnpm-lock.yaml
scripts/build.mjs
@@ -7,7 +7,7 @@ const watcher = chokidar.watch('file, dir, glob, or array', {
persistent: true
})
-await esbuild.build({
+ await esbuild.build({
bundle: true,
entryPoints: ['vite-cli/src/index.ts'],
outfile: 'vite-cli/outfile.cjs',
@@ -78,6 +78,8 @@ await esbuild.build({
78
]
79
80
81
+
82
83
// await esbuild.build({
84
// bundle: true,
85
// entryPoints: ['vite-cli/src/index.ts'],
vite-cli/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "create-vite-template",
3
- "version": "0.5.3",
+ "version": "0.5.4",
4
"description": "",
5
"bin": {
6
"vite-app": "./outfile.cjs",
@@ -13,7 +13,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"copy": "esno ./scripts/dev.mjs",
15
"build": "farm build",
16
- "build:tsup": "tsup",
+ "build:tsup": "tsup --watch",
17
"dev": "farm watch"
18
},
19
"keywords": [],
@@ -23,7 +23,7 @@
23
"repository": "https://github.com/ErKeLost/vite-cli",
24
"bugs": "https://github.com/ErKeLost/vite-cli/issues",
25
"dependencies": {
26
- "prettier": "latest"
+ "prettier": "2.8.0"
27
28
"devDependencies": {
29
"@types/node": "^18.11.9",
vite-cli/src/core/questions/vue/components.ts
@@ -4,14 +4,16 @@ export default {
message: 'choose UI frameWork',
choices: [
{ title: 'Element Plus', value: 'elementPlus' },
- { title: 'Tiny Vue', value: 'tinyVue' },
{ title: 'Ant Design Vue', value: 'antDesignVue' },
{ title: 'Vuetify3', value: 'vuetify' },
{ title: 'Naive UI', value: 'naiveUI' },
{ title: 'Varlet Pc', value: 'varlet' },
- { title: 'DevUI', value: 'devUI' },
{ title: 'arco-design', value: 'arco' },
{ title: 'TDesign', value: 'tencent' },
+ { title: 'Tiny Vue', value: 'tinyVue' },
+ { title: 'DevUI', value: 'devUI' },
+ { title: 'TDesign', value: 'tencent' },
+ { title: 'Shuimo', value: 'shuimo' },
{ title: 'Vant 4.x', value: 'vant' },
{ title: 'tdesign-mobile-vue', value: 'tencent-mobile' }
vite-cli/src/dependence/vue/components.ts
@@ -94,6 +94,13 @@ const vant = {
94
dev: 'pro'
95
}
96
97
+const shuimo = {
98
+ name: 'shuimo-ui',
99
+ version: '^0.3.0-alpha.7',
100
+ stableVersion: '^0.3.0-alpha.7',
101
+ theme: false,
102
+ dev: 'pro'
103
+}
104
export {
105
varlet,
106
tinyVue,
@@ -104,5 +111,6 @@ export {
111
naiveUI,
112
antDesignVue,
113
elementPlus,
107
- vant
114
+ vant,
115
+ shuimo
108
116
vite-cli/src/utils/ejsRender.ts
@@ -23,6 +23,7 @@ export async function ejsRender(filePath: string, name): Promise<void> {
// 获取后缀
const extname = path.extname(filePath).replace(/[.]/g, '')
const opts = await prettier.resolveConfig(templatePath)
try {
switch (extname) {
case 'ts':
vite-cli/template/vue/src/assets/shuimo.svg
vite-cli/template/vue/src/components/HelloWorld.ejs
@@ -23,6 +23,10 @@
<a target="_blank" href="https://www.naiveui.com/zh-CN/os-theme"
>NaiveUi</a
>
+ <% } -%> <% if (components === 'shuimo') { -%>
+ <a target="_blank" href="https://shuimo.design/main"
+ >Shuimo</a
+ >
30
<% } -%> <% if (components === 'devUI') { -%>
31
<a target="_blank" href="https://github.com/DevCloudFE/vue-devui"
32
>DevUI</a
vite-cli/template/vue/src/components/Welcome.ejs
@@ -41,6 +41,9 @@ const { count } = storeToRefs(counterStore);
41
<% if (components === 'naiveUI') { -%>
42
<n-button type="primary">Home</n-button>
43
<% } -%>
44
+ <% if (components === 'shuimo') { -%>
45
+ <m-button type="primary">Home</m-button>
46
+ <% } -%>
47
<% if (components === 'arco') { -%>
48
<a-button type="primary">Home</a-button>
49
@@ -73,6 +76,9 @@ const { count } = storeToRefs(counterStore);
73
76
<% if (components === 'tinyVue') { -%>
74
77
<TinyButton type="primary">About</TinyButton>
75
+ <m-button type="primary">About</m-button>
<n-button type="primary">About</n-button>
0 commit comments