Skip to content

Commit 19eb924

Browse files
committed
chore: maintain template
1 parent c88b009 commit 19eb924

15 files changed

Lines changed: 2214 additions & 2429 deletions

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
node_modules
22
dist
33
.turbo
4-
54
*.tgz
65
*.log
76
.DS_Store
87
Thumbs.db
98
vite.config.ts.timestamp-*
10-
9+
.eslintcache
1110
storybook-static
1211
*storybook.log
13-
1412
coverage
1513
test-results/

.npmrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# pnpm
21
prefer-workspace-packages=true
32
auto-install-peers=true
43
save-exact=true
5-
6-
# https://r1ch.net/blog/node-v20-aggregateeerror-etimedout-happy-eyeballs
7-
node-options=--no-network-family-autoselection

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
3-
"vue.updateImportsOnFileMove.enabled": true,
43

54
// Disable the default formatter, use eslint instead
65
"prettier.enable": false,
@@ -34,7 +33,7 @@
3433
"html",
3534
"markdown",
3635
"json",
37-
"xml",
36+
"yaml",
3837
"css",
3938
"scss"
4039
]

.vscode/snippets.code-snippets

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"vue": {
3+
"scope": "vue",
4+
"prefix": "vue",
5+
"body": [
6+
"<template>",
7+
"</template>",
8+
"",
9+
"<script setup lang=\"ts\">",
10+
"$1",
11+
"</script>",
12+
"",
13+
"<style scoped lang=\"scss\">",
14+
"</style>"
15+
]
16+
},
17+
"pinia": {
18+
"scope": "ts",
19+
"prefix": "pinia",
20+
"body": [
21+
"import { acceptHMRUpdate, defineStore } from 'pinia'",
22+
"",
23+
"export const use$1 = defineStore('', () => {",
24+
"",
25+
"})",
26+
"",
27+
"if (import.meta.hot) {",
28+
" import.meta.hot.accept(acceptHMRUpdate(use$1, import.meta.hot))",
29+
"}",
30+
""
31+
]
32+
}
33+
}

apps/vue/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"dependencies": {
1616
"@vue-workspace/ui": "workspace:*",
1717
"@vue-workspace/utils": "workspace:*",
18-
"@vueuse/core": "13.1.0",
19-
"pinia": "3.0.2",
20-
"vue": "3.5.13",
18+
"@vueuse/core": "13.6.0",
19+
"pinia": "3.0.3",
20+
"vue": "3.5.18",
2121
"vue-router": "4.5.1"
2222
},
2323
"devDependencies": {

apps/vue/src/layout/header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script setup lang="ts">
2-
import { RoutePath } from '@/libs/router'
32
import { useTheme, VButton } from '@vue-workspace/ui'
43
import { RouterLink, useRoute } from 'vue-router'
54
import ExternalLinkIcon from '~icons/heroicons-outline/external-link'
65
import MoonIcon from '~icons/heroicons-outline/moon'
76
import SunIcon from '~icons/heroicons-outline/sun'
7+
import { RoutePath } from '@/libs/router'
88
99
const route = useRoute()
1010
const theme = useTheme()

apps/vue/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node20/tsconfig.json",
2+
"extends": "@tsconfig/node22",
33
"compilerOptions": {
44
"composite": true,
55
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",

package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "@vue-workspace/root",
33
"type": "module",
44
"private": true,
5-
"packageManager": "pnpm@9.15.0",
5+
"packageManager": "pnpm@10.14.0",
66
"engines": {
7-
"pnpm": ">=9.15",
8-
"node": ">=20.18"
7+
"pnpm": ">=10.14",
8+
"node": ">=22.18"
99
},
1010
"scripts": {
1111
"dev": "turbo dev",
@@ -15,32 +15,33 @@
1515
"test": "vitest run",
1616
"test:unit": "vitest",
1717
"test:unit-ui": "vitest --ui",
18-
"lint": "eslint .",
19-
"lint:fix": "eslint . --fix",
18+
"lint": "eslint . --cache",
19+
"lint:fix": "eslint . --fix --cache",
2020
"check-update": "pnpm update -i -r -L"
2121
},
2222
"devDependencies": {
2323
"@antfu/eslint-config": "4.12.0",
2424
"@iconify-json/heroicons-outline": "1.2.1",
25-
"@pinia/testing": "1.0.1",
26-
"@tsconfig/node20": "20.1.5",
25+
"@pinia/testing": "1.0.2",
26+
"@tsconfig/node22": "22.0.2",
2727
"@types/node": "22.15.3",
28-
"@vitejs/plugin-vue": "5.2.3",
29-
"@vitest/ui": "3.1.2",
28+
"@vitejs/plugin-vue": "6.0.1",
29+
"@vitest/ui": "3.2.4",
3030
"@vue/test-utils": "2.4.6",
3131
"@vue/tsconfig": "0.7.0",
32-
"happy-dom": "17.4.6",
33-
"playwright": "1.52.0",
34-
"sass-embedded": "1.87.0",
35-
"tsx": "4.19.4",
36-
"turbo": "2.5.2",
37-
"typescript": "5.8.3",
38-
"unplugin-icons": "22.1.0",
39-
"unplugin-vue-components": "28.5.0",
40-
"vite": "6.3.4",
41-
"vite-plugin-static-copy": "2.3.1",
42-
"vite-plugin-vue-devtools": "7.7.6",
43-
"vitest": "3.1.2",
44-
"vue-tsc": "2.2.10"
32+
"eslint": "9.33.0",
33+
"happy-dom": "18.0.1",
34+
"playwright": "1.54.2",
35+
"sass-embedded": "1.90.0",
36+
"tsx": "4.20.3",
37+
"turbo": "2.5.5",
38+
"typescript": "5.9.2",
39+
"unplugin-icons": "22.2.0",
40+
"unplugin-vue-components": "29.0.0",
41+
"vite": "7.1.1",
42+
"vite-plugin-static-copy": "3.1.1",
43+
"vite-plugin-vue-devtools": "8.0.0",
44+
"vitest": "3.2.4",
45+
"vue-tsc": "3.0.5"
4546
}
4647
}

packages/ui/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"type-check": "vue-tsc --noEmit"
2121
},
2222
"dependencies": {
23-
"@vueuse/core": "13.1.0",
23+
"@vueuse/core": "13.6.0",
2424
"class-variance-authority": "0.7.1",
25-
"radix-vue": "1.9.16",
26-
"vue": "3.5.13"
25+
"reka-ui": "2.4.1",
26+
"vue": "3.5.18"
2727
},
2828
"devDependencies": {
29-
"@histoire/plugin-vue": "1.0.0-alpha.2",
29+
"@histoire/plugin-vue": "1.0.0-alpha.3",
3030
"@vue-workspace/vite-config": "workspace:*",
31-
"histoire": "1.0.0-alpha.2"
31+
"histoire": "1.0.0-alpha.3"
3232
}
3333
}

packages/ui/src/button/button.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
22
import { cva } from 'class-variance-authority'
3-
import { Primitive } from 'radix-vue'
3+
import { Primitive } from 'reka-ui'
44
import type { VariantProps } from 'class-variance-authority'
5-
import type { PrimitiveProps } from 'radix-vue'
5+
import type { PrimitiveProps } from 'reka-ui'
66
import type { ButtonHTMLAttributes } from 'vue'
77
88
type ButtonClasses = VariantProps<typeof buttonClasses>

0 commit comments

Comments
 (0)