@huberyyang/create-todo-vue 1.7.0 → 1.9.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.
Files changed (44) hide show
  1. package/README.md +1 -0
  2. package/dist/index.js +2 -2
  3. package/package.json +1 -1
  4. package/template-lit/package.json +1 -1
  5. package/template-lit-ts/package.json +1 -1
  6. package/template-vanilla/package.json +1 -1
  7. package/template-vanilla-ts/package.json +1 -1
  8. package/template-vue/package.json +2 -2
  9. package/template-vue-dev/.husky/commit-msg +1 -0
  10. package/template-vue-dev/.husky/pre-commit +1 -0
  11. package/template-vue-dev/.vscode/extensions.json +3 -0
  12. package/template-vue-dev/.vscode/settings.json +50 -0
  13. package/template-vue-dev/README.md +1 -0
  14. package/template-vue-dev/_gitignore +24 -0
  15. package/template-vue-dev/auto-imports.d.ts +619 -0
  16. package/template-vue-dev/commitlint.config.ts +18 -0
  17. package/template-vue-dev/components.d.ts +24 -0
  18. package/template-vue-dev/eslint.config.ts +59 -0
  19. package/template-vue-dev/index.html +24 -0
  20. package/template-vue-dev/lint-staged.config.mjs +3 -0
  21. package/template-vue-dev/package.json +52 -0
  22. package/template-vue-dev/pnpm-workspace.yaml +12 -0
  23. package/template-vue-dev/public/vite.svg +1 -0
  24. package/template-vue-dev/shims.d.ts +6 -0
  25. package/template-vue-dev/src/App.vue +16 -0
  26. package/template-vue-dev/src/assets/vue.svg +1 -0
  27. package/template-vue-dev/src/components/BaseFooter.vue +16 -0
  28. package/template-vue-dev/src/composables/useDark.ts +2 -0
  29. package/template-vue-dev/src/main.ts +15 -0
  30. package/template-vue-dev/src/pages/[...all].vue +5 -0
  31. package/template-vue-dev/src/pages/article/[id].vue +13 -0
  32. package/template-vue-dev/src/pages/index.vue +85 -0
  33. package/template-vue-dev/src/pages/test.vue +17 -0
  34. package/template-vue-dev/src/styles/main.scss +6 -0
  35. package/template-vue-dev/src/styles/variables.scss +7 -0
  36. package/template-vue-dev/src/types/index.d.ts +1 -0
  37. package/template-vue-dev/src/types/vite-env.d.ts +2 -0
  38. package/template-vue-dev/tsconfig.json +27 -0
  39. package/template-vue-dev/typed-router.d.ts +121 -0
  40. package/template-vue-dev/uno.config.ts +29 -0
  41. package/template-vue-dev/vite.config.ts +85 -0
  42. package/template-vue-ts/package.json +2 -2
  43. package/template-vue-ts/src/App.vue +1 -1
  44. package/template-vue-ts/src/components/HelloWorld.vue +1 -1
@@ -0,0 +1,85 @@
1
+ import path from 'node:path'
2
+ import Vue from '@vitejs/plugin-vue'
3
+ import UnoCSS from 'unocss/vite'
4
+ import AutoImport from 'unplugin-auto-import/vite'
5
+ import IconsResolver from 'unplugin-icons/resolver'
6
+ import Icons from 'unplugin-icons/vite'
7
+ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
8
+ import Components from 'unplugin-vue-components/vite'
9
+ import { defineConfig } from 'vite'
10
+ import VueDevTools from 'vite-plugin-vue-devtools'
11
+ import svgLoader from 'vite-svg-loader'
12
+ import { VueRouterAutoImports } from 'vue-router/unplugin'
13
+ import VueRouter from 'vue-router/vite'
14
+
15
+ export default defineConfig({
16
+ resolve: {
17
+ alias: {
18
+ '~': path.resolve(import.meta.dirname, 'src'),
19
+ },
20
+ },
21
+ plugins: [
22
+ VueRouter(),
23
+ UnoCSS(),
24
+ Vue(),
25
+ VueDevTools(),
26
+ svgLoader(),
27
+ Icons({
28
+ autoInstall: true,
29
+ }),
30
+ AutoImport({
31
+ resolvers: [
32
+ ElementPlusResolver(),
33
+ IconsResolver(),
34
+ ],
35
+ imports: [
36
+ 'vue',
37
+ '@vueuse/core',
38
+ VueRouterAutoImports,
39
+ ],
40
+ dts: true,
41
+ vueTemplate: true,
42
+ dirs: ['./src/composables'],
43
+ }),
44
+ Components({
45
+ dts: true,
46
+ resolvers: [
47
+ ElementPlusResolver(),
48
+ IconsResolver({
49
+ enabledCollections: ['ep'],
50
+ }),
51
+ ],
52
+ }),
53
+ ],
54
+ css: {
55
+ preprocessorOptions: {
56
+ scss: {
57
+ additionalData: `@use '~/styles/variables.scss' as *;`,
58
+ },
59
+ },
60
+ },
61
+ build: {
62
+ // minify: 'oxc', // vite8默认
63
+ rolldownOptions: {
64
+ output: {
65
+ minify: {
66
+ compress: {
67
+ dropConsole: true,
68
+ dropDebugger: true,
69
+ },
70
+ },
71
+ },
72
+ },
73
+ },
74
+ server: {
75
+ open: true,
76
+ host: true,
77
+ proxy: {
78
+ '/api': {
79
+ target: '',
80
+ changeOrigin: true,
81
+ rewrite: path => path.replace('/api', ''),
82
+ },
83
+ },
84
+ },
85
+ })
@@ -13,10 +13,10 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/node": "^24.10.9",
16
- "@vitejs/plugin-vue": "^6.0.3",
16
+ "@vitejs/plugin-vue": "^6.0.8",
17
17
  "@vue/tsconfig": "^0.8.1",
18
18
  "typescript": "~5.9.3",
19
- "vite": "^7.3.1",
19
+ "vite": "^8.2.2",
20
20
  "vue-tsc": "^3.2.4"
21
21
  }
22
22
  }
@@ -1,4 +1,4 @@
1
- <script setup>
1
+ <script setup lang="ts">
2
2
  import HelloWorld from './components/HelloWorld.vue'
3
3
  </script>
4
4
 
@@ -1,4 +1,4 @@
1
- <script setup>
1
+ <script setup lang="ts">
2
2
  import { ref } from 'vue'
3
3
  import viteLogo from '../assets/vite.svg'
4
4
  import heroImg from '../assets/hero.png'