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,45 @@
|
|
|
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
|
+
"eslint",
|
|
20
|
+
"prettier",
|
|
21
|
+
"tailwindcss",
|
|
22
|
+
"vite"
|
|
23
|
+
],
|
|
24
|
+
"author": "a15173636319",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@eslint/js": "^10.0.1",
|
|
28
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
29
|
+
"eslint": "^10.1.0",
|
|
30
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
31
|
+
"globals": "^17.4.0",
|
|
32
|
+
"jiti": "^2.6.1",
|
|
33
|
+
"typescript": "^6.0.2",
|
|
34
|
+
"typescript-eslint": "^8.58.0",
|
|
35
|
+
"vite": "^8.0.3",
|
|
36
|
+
"vue-tsc": "^3.2.6"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
40
|
+
"pinia": "^3.0.4",
|
|
41
|
+
"tailwindcss": "^4.2.2",
|
|
42
|
+
"vue": "^3.5.31",
|
|
43
|
+
"vue-router": "^5.0.4"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
|
|
3
|
+
<KeepAlive>
|
|
4
|
+
<Transition name="fade" mode="out-in">
|
|
5
|
+
<RouterView />
|
|
6
|
+
</Transition>
|
|
7
|
+
</KeepAlive>
|
|
8
|
+
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
import { RouterView } from 'vue-router';
|
|
13
|
+
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<style scoped>
|
|
17
|
+
.fade-enter-active,
|
|
18
|
+
.fade-leave-active {
|
|
19
|
+
transition: opacity .5s;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.fade-enter-from,
|
|
23
|
+
.fade-leave-to {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createApp } from "vue";
|
|
2
|
+
import App from "./App.vue";
|
|
3
|
+
import { createPinia } from "pinia"
|
|
4
|
+
import "@/styles/index.css";
|
|
5
|
+
import router from "@/router";
|
|
6
|
+
|
|
7
|
+
import "@/store/index";
|
|
8
|
+
|
|
9
|
+
const app = createApp(App);
|
|
10
|
+
const pinia = createPinia();
|
|
11
|
+
app.use(pinia);
|
|
12
|
+
app.use(router);
|
|
13
|
+
|
|
14
|
+
app.mount("#app");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createRouter, createMemoryHistory, RouteRecordRaw } from "vue-router"
|
|
2
|
+
|
|
3
|
+
const routers: RouteRecordRaw[] = [
|
|
4
|
+
{
|
|
5
|
+
path: "/",
|
|
6
|
+
name: "Home",
|
|
7
|
+
component: () => import("@/view/HomeView.vue")
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
const router = createRouter({
|
|
13
|
+
history: createMemoryHistory(),
|
|
14
|
+
routes: [
|
|
15
|
+
...routers
|
|
16
|
+
]
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export default router
|
|
@@ -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,18 @@
|
|
|
1
|
+
// 给vite配置文件用
|
|
2
|
+
{
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"composite": true,
|
|
5
|
+
"skipLibCheck": true,
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"paths": {
|
|
10
|
+
"@": [
|
|
11
|
+
"./src/*"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"include": [
|
|
16
|
+
"vite.config.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -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
|
+
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html
|
|
3
|
+
lang="en"
|
|
4
|
+
>
|
|
5
|
+
<head>
|
|
6
|
+
<meta
|
|
7
|
+
charset="UTF-8"
|
|
8
|
+
/>
|
|
9
|
+
<meta
|
|
10
|
+
name="viewport"
|
|
11
|
+
content="width=device-width, initial-scale=1.0"
|
|
12
|
+
/>
|
|
13
|
+
<title>
|
|
14
|
+
%VITE_PROJECT_NAME%
|
|
15
|
+
</title>
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
<div
|
|
19
|
+
id="app"
|
|
20
|
+
></div>
|
|
21
|
+
</body>
|
|
22
|
+
<script
|
|
23
|
+
type="module"
|
|
24
|
+
src="/src/main.ts"
|
|
25
|
+
></script>
|
|
26
|
+
</html>
|