From 663fe7cb25b8d96e7c7644aca6c890a4acae39e8 Mon Sep 17 00:00:00 2001 From: ruan-cat <1219043956@qq.com> Date: Thu, 12 Dec 2024 11:14:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore(vitesse-nuxt):=20=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E5=91=BD=E4=BB=A4=E3=80=82=E6=8F=90=E4=BE=9B=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E7=9A=84=E5=85=AC=E5=85=B1=E5=91=BD=E4=BB=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/extensions.json | 9 +++- .vscode/settings.json | 10 ++++- .../.vscode/extensions.json | 10 ----- .../.vscode/settings.json | 45 ------------------- demos/gh.antfu.vitesse-nuxt/netlify.toml | 11 ----- demos/gh.antfu.vitesse-nuxt/package.json | 6 ++- demos/gh.zou-hong-run.dobang/package.json | 12 ++--- 7 files changed, 27 insertions(+), 76 deletions(-) delete mode 100644 demos/gh.antfu.vitesse-nuxt/.vscode/extensions.json delete mode 100644 demos/gh.antfu.vitesse-nuxt/.vscode/settings.json delete mode 100644 demos/gh.antfu.vitesse-nuxt/netlify.toml diff --git a/.vscode/extensions.json b/.vscode/extensions.json index f63d623..d7b2b31 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -8,7 +8,12 @@ "jock.svg", "eightHundreds.vscode-mindmap", "hediet.vscode-drawio", - "Spades.vs-picgo" + "Spades.vs-picgo", + // 从 vitesse-nuxt 仓库得到的推荐配置 + "antfu.iconify", + "antfu.unocss", + "antfu.goto-alias", + "csstools.postcss", ], "unwantedRecommendations": [] -} +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 3caa8bb..7b5bb2c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -102,5 +102,11 @@ - https://github.com/vuejs/language-tools/tree/master/extensions/vscode#configs - https://vitepress.dev/guide/using-vue#vs-code-intellisense-support */ - "vue.server.includeLanguages": ["vue", "markdown"] -} + "vue.server.includeLanguages": [ + "vue", + "markdown" + ], + "interline-translate.knownPopularWordCount": 6000, + "iconify.annotations": true, + "iconify.inplace": true +} \ No newline at end of file diff --git a/demos/gh.antfu.vitesse-nuxt/.vscode/extensions.json b/demos/gh.antfu.vitesse-nuxt/.vscode/extensions.json deleted file mode 100644 index 1287745..0000000 --- a/demos/gh.antfu.vitesse-nuxt/.vscode/extensions.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "recommendations": [ - "antfu.iconify", - "antfu.unocss", - "antfu.goto-alias", - "csstools.postcss", - "dbaeumer.vscode-eslint", - "vue.volar" - ] -} diff --git a/demos/gh.antfu.vitesse-nuxt/.vscode/settings.json b/demos/gh.antfu.vitesse-nuxt/.vscode/settings.json deleted file mode 100644 index 9458a3b..0000000 --- a/demos/gh.antfu.vitesse-nuxt/.vscode/settings.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "files.associations": { - "*.css": "postcss" - }, - - // Disable the default formatter, use eslint instead - "prettier.enable": false, - "editor.formatOnSave": false, - - // Auto fix - "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit", - "source.organizeImports": "never" - }, - - // Silent the stylistic rules in you IDE, but still auto fix them - "eslint.rules.customizations": [ - { "rule": "style/*", "severity": "off" }, - { "rule": "*-indent", "severity": "off" }, - { "rule": "*-spacing", "severity": "off" }, - { "rule": "*-spaces", "severity": "off" }, - { "rule": "*-order", "severity": "off" }, - { "rule": "*-dangle", "severity": "off" }, - { "rule": "*-newline", "severity": "off" }, - { "rule": "*quotes", "severity": "off" }, - { "rule": "*semi", "severity": "off" } - ], - - // Enable eslint for all supported languages - "eslint.validate": [ - "javascript", - "javascriptreact", - "typescript", - "typescriptreact", - "vue", - "html", - "markdown", - "json", - "jsonc", - "yaml" - ], - "interline-translate.knownPopularWordCount": 6000, - "iconify.annotations": true, - "iconify.inplace": true -} diff --git a/demos/gh.antfu.vitesse-nuxt/netlify.toml b/demos/gh.antfu.vitesse-nuxt/netlify.toml deleted file mode 100644 index babc468..0000000 --- a/demos/gh.antfu.vitesse-nuxt/netlify.toml +++ /dev/null @@ -1,11 +0,0 @@ -[build] -publish = "dist" -command = "pnpm run build" - -[build.environment] -NODE_VERSION = "20" - -[[redirects]] -from = "/*" -to = "/index.html" -status = 200 diff --git a/demos/gh.antfu.vitesse-nuxt/package.json b/demos/gh.antfu.vitesse-nuxt/package.json index 90393d7..4490dfb 100644 --- a/demos/gh.antfu.vitesse-nuxt/package.json +++ b/demos/gh.antfu.vitesse-nuxt/package.json @@ -1,6 +1,8 @@ { + "name": "vitesse-nuxt", "type": "module", "private": true, + "version": "0.0.0", "scripts": { "build": "nuxi build", "dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev", @@ -10,7 +12,9 @@ "start": "node .output/server/index.mjs", "start:generate": "npx serve .output/public", "lint": "eslint .", - "typecheck": "vue-tsc --noEmit" + "typecheck": "vue-tsc --noEmit", + "clear": "rimraf dist .turbo .vercel .cache .temp .nuxt .output", + "rm:node_modules": "rimraf node_modules pnpm-lock.yaml" }, "devDependencies": { "@antfu/eslint-config": "^3.11.2", diff --git a/demos/gh.zou-hong-run.dobang/package.json b/demos/gh.zou-hong-run.dobang/package.json index 1282e36..ce6f04c 100644 --- a/demos/gh.zou-hong-run.dobang/package.json +++ b/demos/gh.zou-hong-run.dobang/package.json @@ -5,12 +5,14 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", - "preview": "vite preview" + "build": "vite build", + "preview": "vite preview", + "clear": "rimraf dist .turbo .vercel .cache .temp", + "rm:node_modules": "rimraf node_modules pnpm-lock.yaml" }, "devDependencies": { - "sass": "^1.64.2", - "typescript": "^5.0.2", - "vite": "^4.4.5" + "sass": "^1.82.0", + "typescript": "^5.7.2", + "vite": "^6.0.3" } } \ No newline at end of file