@huberyyang/create-todo-vue 1.8.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huberyyang/create-todo-vue",
3
3
  "type": "module",
4
- "version": "1.8.0",
4
+ "version": "1.9.0",
5
5
  "packageManager": "pnpm@11.25.0",
6
6
  "description": "💡 create vue projects with awesome templates",
7
7
  "author": "HuberyYang",
@@ -12,6 +12,6 @@
12
12
  "lit": "^3.3.2"
13
13
  },
14
14
  "devDependencies": {
15
- "vite": "^7.3.1"
15
+ "vite": "^8.2.2"
16
16
  }
17
17
  }
@@ -13,6 +13,6 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "typescript": "~5.9.3",
16
- "vite": "^7.3.1"
16
+ "vite": "^8.2.2"
17
17
  }
18
18
  }
@@ -9,6 +9,6 @@
9
9
  "preview": "vite preview"
10
10
  },
11
11
  "devDependencies": {
12
- "vite": "^7.3.1"
12
+ "vite": "^8.2.2"
13
13
  }
14
14
  }
@@ -10,6 +10,6 @@
10
10
  },
11
11
  "devDependencies": {
12
12
  "typescript": "~5.9.3",
13
- "vite": "^7.3.1"
13
+ "vite": "^8.2.2"
14
14
  }
15
15
  }
@@ -12,7 +12,7 @@
12
12
  "vue": "^3.5.27"
13
13
  },
14
14
  "devDependencies": {
15
- "@vitejs/plugin-vue": "^6.0.3",
16
- "vite": "^7.3.1"
15
+ "@vitejs/plugin-vue": "^6.0.8",
16
+ "vite": "^8.2.2"
17
17
  }
18
18
  }
@@ -16,6 +16,17 @@ export default antfu(
16
16
  },
17
17
  ignores: ['**/public/**'],
18
18
  },
19
+ // pnpm-workspace.yaml 规则定制
20
+ {
21
+ files: ['pnpm-workspace.yaml'],
22
+ rules: {
23
+ // eslint-plugin-pnpm 会强制要求 minimumReleaseAgeExcludePrune / shellEmulator /
24
+ // trustPolicy 三条设置,那是仓库开发者的偏好,不该强加给刚生成的项目——
25
+ // 其中 trustPolicy: no-downgrade 会让本模板的 `pnpm install` 直接退出码 1
26
+ // (实测 ERR_PNPM_TRUST_DOWNGRADE,semver@6.3.1 由 vue-devtools 传递进来)。
27
+ 'pnpm/yaml-enforce-settings': 'off',
28
+ },
29
+ },
19
30
  // vue规则定制
20
31
  {
21
32
  files: ['**/*.vue'],
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "vue-dev",
3
- "private": true,
4
- "version": "0.0.0",
5
3
  "type": "module",
4
+ "version": "0.0.0",
5
+ "private": true,
6
6
  "scripts": {
7
7
  "dev": "vite --open",
8
8
  "build": "vue-tsc --noEmit && vite build",
@@ -1,5 +1,12 @@
1
- # pnpm 11 起,依赖带构建脚本却没被显式放行时 `pnpm install` 会直接退出码 1(pnpm 10 只是警告)。
2
- # @parcel/watcher 是可选的原生文件监听模块,不构建也有 JS 兜底,所以放行成「不构建」即可。
1
+ # pnpm 11 起,原本写在 package.json "pnpm" 字段里的设置迁到了这里。
3
2
  # 这个文件没有 packages 字段,不是 monorepo 声明,纯粹用来放这一条配置。
3
+ #
4
+ # 刻意**只有** allowBuilds 一条。`@antfu/eslint-config` 带的 eslint-plugin-pnpm
5
+ # 还会强制要求 minimumReleaseAgeExcludePrune / shellEmulator / trustPolicy 三条,
6
+ # 但 trustPolicy: no-downgrade 会让这个模板的 `pnpm install` 直接退出码 1
7
+ # (2026-09-10 实测 ERR_PNPM_TRUST_DOWNGRADE,semver@6.3.1 经
8
+ # vite-plugin-vue-devtools → vite-plugin-vue-inspector → @babel/core 传递进来)。
9
+ # 让 lint 变绿的代价是让装依赖变红,那笔账不划算——改为在 eslint.config.ts 里
10
+ # 关掉 pnpm/yaml-enforce-settings,理由写在那边。
4
11
  allowBuilds:
5
12
  '@parcel/watcher': false
@@ -1,5 +1,13 @@
1
1
  <template>
2
- <div flex="~ justify-center items-center" fixed bottom-0 mb-10 w-full gap-2 text-2xl>
2
+ <div
3
+ flex="~ justify-center items-center"
4
+ fixed
5
+ bottom-0
6
+ mb-10
7
+ w-full
8
+ gap-2
9
+ text-2xl
10
+ >
3
11
  <button icon-btn @click="toggleDark()">
4
12
  <div i-carbon-sun dark:i-carbon-moon />
5
13
  </button>
@@ -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'