@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 +1 -1
- package/template-lit/package.json +1 -1
- package/template-lit-ts/package.json +1 -1
- package/template-vanilla/package.json +1 -1
- package/template-vanilla-ts/package.json +1 -1
- package/template-vue/package.json +2 -2
- package/template-vue-dev/eslint.config.ts +11 -0
- package/template-vue-dev/package.json +2 -2
- package/template-vue-dev/pnpm-workspace.yaml +9 -2
- package/template-vue-dev/src/components/BaseFooter.vue +9 -1
- package/template-vue-ts/package.json +2 -2
- package/template-vue-ts/src/App.vue +1 -1
- package/template-vue-ts/src/components/HelloWorld.vue +1 -1
package/package.json
CHANGED
|
@@ -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,5 +1,12 @@
|
|
|
1
|
-
# pnpm 11
|
|
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
|
|
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.
|
|
16
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
17
17
|
"@vue/tsconfig": "^0.8.1",
|
|
18
18
|
"typescript": "~5.9.3",
|
|
19
|
-
"vite": "^
|
|
19
|
+
"vite": "^8.2.2",
|
|
20
20
|
"vue-tsc": "^3.2.4"
|
|
21
21
|
}
|
|
22
22
|
}
|