From: Haoqun Jiang Date: Fri, 11 Oct 2024 08:46:09 +0000 (+0800) Subject: feat: add vscode file nesting config to base template X-Git-Tag: v3.11.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9585103dc735596906adaceeb53fc83876b327f;p=thirdparty%2Fvuejs%2Fcreate-vue.git feat: add vscode file nesting config to base template We now have *a lot* of configuration files at the project's root. It would help to have them grouped in the editor. Many people aren't aware of this feature, so I'm adding a default configuration to the base template to raise awareness. This is a very rudimentary configuration; only patterns relevant to this project are included. Users can customize it further themselves. Or they can use a more advanced share configuration like https://github.com/antfu/vscode-file-nesting-config --- diff --git a/template/base/.vscode/settings.json b/template/base/.vscode/settings.json new file mode 100644 index 00000000..985128aa --- /dev/null +++ b/template/base/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "explorer.fileNesting.enabled": true, + "explorer.fileNesting.patterns": { + "tsconfig.json": "tsconfig.*.json, env.d.ts", + "vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*", + "package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig" + } +}