Skip to content

Commit 7e5af22

Browse files
committed
refactor: use named catalogs
1 parent 4a08349 commit 7e5af22

File tree

6 files changed

+337
-149
lines changed

6 files changed

+337
-149
lines changed

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"antfu.pnpm-catalog-lens",
4+
"dbaeumer.vscode-eslint",
5+
"vue.volar"
6+
]
7+
}

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
// Enable the ESlint flat config support
3-
"eslint.experimental.useFlatConfig": true,
4-
52
// Disable the default formatter, use eslint instead
63
"prettier.enable": false,
74
"editor.formatOnSave": false,

eslint.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ export default antfu(
55
{
66
unocss: true,
77
formatters: true,
8+
pnpm: true,
89
},
910
nuxt(),
1011
{
11-
files: ['**/template/files/**'],
12+
files: ['**/template/**', '**/.template/**'],
1213
rules: {
1314
'no-console': 'off',
1415
},
1516
},
1617
)
18+
.override('antfu/yaml/pnpm-workspace', {
19+
ignores: ['**/templates/**'],
20+
})
21+
.override('antfu/pnpm/package-json', {
22+
ignores: ['**/templates/**'],
23+
})

package.json

Lines changed: 48 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -14,73 +14,55 @@
1414
"format": "eslint . --fix"
1515
},
1616
"dependencies": {
17-
"@shikijs/core": "^3.2.1",
18-
"@shikijs/monaco": "^3.2.1",
19-
"@volar/monaco": "~2.4.12",
20-
"@vue/language-service": "^2.2.8",
21-
"@webcontainer/api": "^1.5.1",
22-
"@xterm/addon-fit": "^0.10.0",
23-
"@xterm/xterm": "^5.5.0",
24-
"birpc": "^2.2.0",
25-
"floating-vue": "^5.2.2",
26-
"jszip": "^3.10.1",
27-
"monaco-editor": "^0.50.0",
28-
"shiki": "^3.2.1",
29-
"splitpanes": "3.1.5",
30-
"strip-json-comments": "^5.0.1",
31-
"theme-vitesse": "^0.8.3",
32-
"unified": "^11.0.5",
33-
"vscode-uri": "^3.1.0",
34-
"vue": "^3.5.13",
35-
"vue-router": "^4.5.0"
17+
"@shikijs/core": "catalog:frontend",
18+
"@shikijs/monaco": "catalog:frontend",
19+
"@volar/monaco": "catalog:frontend",
20+
"@vue/language-service": "catalog:frontend",
21+
"@webcontainer/api": "catalog:frontend",
22+
"@xterm/addon-fit": "catalog:frontend",
23+
"@xterm/xterm": "catalog:frontend",
24+
"birpc": "catalog:frontend",
25+
"floating-vue": "catalog:frontend",
26+
"fuse.js": "catalog:frontend",
27+
"jszip": "catalog:frontend",
28+
"monaco-editor": "catalog:frontend",
29+
"monaco-editor-core": "catalog:frontend",
30+
"pathe": "catalog:frontend",
31+
"shiki": "catalog:frontend",
32+
"splitpanes": "catalog:frontend",
33+
"strip-json-comments": "catalog:frontend",
34+
"theme-vitesse": "catalog:frontend",
35+
"vscode-uri": "catalog:frontend",
36+
"vue": "catalog:frontend",
37+
"vue-router": "catalog:frontend"
3638
},
3739
"devDependencies": {
38-
"@antfu/eslint-config": "^4.11.0",
39-
"@iconify-json/catppuccin": "^1.2.10",
40-
"@iconify-json/logos": "^1.2.4",
41-
"@iconify-json/ph": "^1.2.2",
42-
"@iconify-json/svg-spinners": "^1.2.2",
43-
"@nuxt/content": "^3.4.0",
44-
"@nuxt/devtools": "^2.3.1",
45-
"@nuxt/eslint": "^1.2.0",
46-
"@nuxt/icon": "^1.11.0",
47-
"@nuxt/image": "^1.10.0",
48-
"@nuxt/kit": "^3.16.1",
49-
"@nuxtjs/color-mode": "^3.5.2",
50-
"@nuxtjs/seo": "^3.0.1",
51-
"@pinia/nuxt": "^0.10.1",
52-
"@unocss/eslint-plugin": "^65.5.0",
53-
"@unocss/extractor-mdc": "^65.5.0",
54-
"@unocss/nuxt": "^65.5.0",
55-
"@vueuse/nuxt": "^13.0.0",
56-
"eslint": "^9.23.0",
57-
"eslint-plugin-format": "^1.0.1",
58-
"execa": "^9.5.2",
59-
"fast-glob": "^3.3.3",
60-
"fuse.js": "^7.1.0",
61-
"monaco-editor-core": "^0.50.0",
62-
"nuxi": "^3.23.1",
63-
"nuxt": "^3.16.1",
64-
"pathe": "^2.0.3",
65-
"rehype-external-links": "^3.0.0",
66-
"remark-external-links": "^10.0.0",
67-
"typescript": "^5.8.2",
68-
"vue-tsc": "^2.2.8"
69-
},
70-
"pnpm": {
71-
"patchedDependencies": {
72-
73-
},
74-
"onlyBuiltDependencies": [
75-
"@parcel/watcher",
76-
"better-sqlite3",
77-
"esbuild",
78-
"sharp",
79-
"vue-demi"
80-
]
81-
},
82-
"resolutions": {
83-
"@nuxt/devtools": "^2.3.1",
84-
"@nuxt/devtools-ui-kit": "^2.3.1"
40+
"@antfu/eslint-config": "catalog:dev",
41+
"@iconify-json/catppuccin": "catalog:icons",
42+
"@iconify-json/logos": "catalog:icons",
43+
"@iconify-json/ph": "catalog:icons",
44+
"@iconify-json/svg-spinners": "catalog:icons",
45+
"@nuxt/content": "catalog:nuxt",
46+
"@nuxt/devtools": "catalog:nuxt",
47+
"@nuxt/eslint": "catalog:nuxt",
48+
"@nuxt/icon": "catalog:nuxt",
49+
"@nuxt/image": "catalog:nuxt",
50+
"@nuxt/kit": "catalog:nuxt",
51+
"@nuxtjs/color-mode": "catalog:nuxt",
52+
"@nuxtjs/seo": "catalog:nuxt",
53+
"@pinia/nuxt": "catalog:nuxt",
54+
"@unocss/eslint-plugin": "catalog:dev",
55+
"@unocss/extractor-mdc": "catalog:nuxt",
56+
"@unocss/nuxt": "catalog:nuxt",
57+
"@vueuse/nuxt": "catalog:nuxt",
58+
"eslint": "catalog:dev",
59+
"eslint-plugin-format": "catalog:dev",
60+
"execa": "catalog:dev",
61+
"fast-glob": "catalog:dev",
62+
"nuxi": "catalog:nuxt",
63+
"nuxt": "catalog:nuxt",
64+
"rehype-external-links": "catalog:dev",
65+
"typescript": "catalog:dev",
66+
"vue-tsc": "catalog:dev"
8567
}
8668
}

0 commit comments

Comments
 (0)