create-lzcli 1.0.0
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.
- package/index.html +12 -0
- package/index.js +104 -0
- package/package.json +30 -0
- package/readme.md +1 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/.env +2 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/.prettierrc +10 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/eslint.config.ts +80 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/index.html +26 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/package-lock.json +2936 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/package.json +44 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/src/App.vue +19 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/src/main.ts +13 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/src/store/index.ts +11 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/src/styles/index.css +1 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/src/vite-env.d.ts +10 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/tsconfig.json +43 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/tsconfig.node.json +18 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia/vite.config.ts +27 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/.env +2 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/.prettierrc +10 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/eslint.config.ts +80 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/index.html +26 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/package-lock.json +3309 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/package.json +45 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/src/App.vue +26 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/src/main.ts +14 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/src/router/index.ts +19 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/src/store/index.ts +11 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/src/styles/index.css +1 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/src/view/HomeView.vue +7 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/src/vite-env.d.ts +10 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/tsconfig.json +43 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/tsconfig.node.json +18 -0
- package/template/vue_ts_eslint_prettieric_tailwindcss_pinia_vueRouter/vite.config.ts +27 -0
- package/template/vue_ts_prettieric_pinia/.env +2 -0
- package/template/vue_ts_prettieric_pinia/.prettierrc +11 -0
- package/template/vue_ts_prettieric_pinia/index.html +26 -0
- package/template/vue_ts_prettieric_pinia/package-lock.json +1371 -0
- package/template/vue_ts_prettieric_pinia/package.json +36 -0
- package/template/vue_ts_prettieric_pinia/pnpm-lock.yaml +883 -0
- package/template/vue_ts_prettieric_pinia/src/App.vue +56 -0
- package/template/vue_ts_prettieric_pinia/src/main.ts +11 -0
- package/template/vue_ts_prettieric_pinia/src/store/counter.ts +12 -0
- package/template/vue_ts_prettieric_pinia/src/styles/index.css +1 -0
- package/template/vue_ts_prettieric_pinia/src/vite-env.d.ts +10 -0
- package/template/vue_ts_prettieric_pinia/tsconfig.json +42 -0
- package/template/vue_ts_prettieric_pinia/tsconfig.node.json +13 -0
- package/template/vue_ts_prettieric_pinia/vite.config.ts +25 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/.env +2 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/.prettierrc +11 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/index.html +26 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/package-lock.json +1661 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/package.json +39 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/src/App.vue +16 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/src/main.ts +10 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/src/store/counter.ts +14 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/src/styles/index.css +1 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/src/vite-env.d.ts +10 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/tsconfig.json +43 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/tsconfig.node.json +13 -0
- package/template/vue_ts_prettieric_tailwindcss_pinia/vite.config.ts +27 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lowercode",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"vue",
|
|
13
|
+
"cli",
|
|
14
|
+
"template",
|
|
15
|
+
"vue-router",
|
|
16
|
+
"sass",
|
|
17
|
+
"less",
|
|
18
|
+
"typescript",
|
|
19
|
+
"prettier",
|
|
20
|
+
"tailwindcss",
|
|
21
|
+
"vite"
|
|
22
|
+
],
|
|
23
|
+
"author": "a15173636319",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
27
|
+
"globals": "^17.4.0",
|
|
28
|
+
"jiti": "^2.6.1",
|
|
29
|
+
"typescript": "^6.0.2",
|
|
30
|
+
"vite": "^8.0.3",
|
|
31
|
+
"vue-tsc": "^3.2.6"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
35
|
+
"pinia": "^3.0.4",
|
|
36
|
+
"tailwindcss": "^4.2.2",
|
|
37
|
+
"vue": "^3.5.31"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="max-w-xl mx-auto mt-20 text-center font-sans">
|
|
3
|
+
<h1 class="text-2xl font-bold text-gray-800">✅ 手动搭建成功</h1>
|
|
4
|
+
<p class="mt-2 text-gray-500">Vite + Vue3 + TypeScript + 组合式API</p>
|
|
5
|
+
<p class="mt-5 text-xl font-bold text-gray-800">当前计数:{{ counterStore.count }}</p>
|
|
6
|
+
<button @click="counterStore.increment"
|
|
7
|
+
class="mt-6 px-6 py-3 bg-emerald-500 text-white rounded-lg hover:bg-emerald-600 transition-colors">
|
|
8
|
+
点击 +1
|
|
9
|
+
</button>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup lang="ts">
|
|
14
|
+
import { useCounterStore } from '@/store/counter';
|
|
15
|
+
const counterStore = useCounterStore();
|
|
16
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": [
|
|
7
|
+
"ES2020",
|
|
8
|
+
"DOM",
|
|
9
|
+
"DOM.Iterable"
|
|
10
|
+
], // 编译目标
|
|
11
|
+
"skipLibCheck": true, // 跳过类型检查
|
|
12
|
+
"baseUrl": ".",
|
|
13
|
+
"paths": {
|
|
14
|
+
"@/*": [
|
|
15
|
+
"./src/*"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"ignoreDeprecations": "6.0",
|
|
19
|
+
/* 模块解析 */
|
|
20
|
+
"moduleResolution": "bundler", // 模块解析策略
|
|
21
|
+
"allowImportingTsExtensions": true, // 允许导入.ts文件
|
|
22
|
+
"resolveJsonModule": true, // 允许导入.json文件
|
|
23
|
+
"isolatedModules": true, // 每个文件作为单独的模块进行编译
|
|
24
|
+
"noEmit": true, // 不生成输出文件
|
|
25
|
+
"jsx": "preserve", // 保留JSX语法
|
|
26
|
+
/* 严格类型检查 */
|
|
27
|
+
"strict": true, // 启用所有严格类型检查选项
|
|
28
|
+
"noUnusedLocals": true, // 不允许未使用的局部变量
|
|
29
|
+
"noUnusedParameters": true, // 不允许未使用的参数
|
|
30
|
+
"noFallthroughCasesInSwitch": true // 不允许switch语句中的case穿透
|
|
31
|
+
},
|
|
32
|
+
"include": [
|
|
33
|
+
"src/**/*.ts",
|
|
34
|
+
"src/**/*.d.ts",
|
|
35
|
+
"src/**/*.tsx",
|
|
36
|
+
"src/**/*.vue"
|
|
37
|
+
], // 包含要编译的文件和类型定义文件
|
|
38
|
+
"references": [
|
|
39
|
+
{
|
|
40
|
+
"path": "./tsconfig.node.json"
|
|
41
|
+
}
|
|
42
|
+
] // 包含要编译的文件和类型定义文件
|
|
43
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
4
|
+
import path from 'path'
|
|
5
|
+
|
|
6
|
+
export default defineConfig(
|
|
7
|
+
{
|
|
8
|
+
plugins: [
|
|
9
|
+
vue(),
|
|
10
|
+
tailwindcss(),
|
|
11
|
+
],
|
|
12
|
+
resolve: {
|
|
13
|
+
alias: {
|
|
14
|
+
'@': path.resolve(
|
|
15
|
+
__dirname,
|
|
16
|
+
'./src'
|
|
17
|
+
),
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
build: {},
|
|
21
|
+
server: {
|
|
22
|
+
port: 3334,
|
|
23
|
+
open: true,
|
|
24
|
+
host: '0.0.0.0',
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
)
|