]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
refactor: move base template out of `config` category
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 10 Aug 2021 13:19:56 +0000 (21:19 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 10 Aug 2021 13:19:56 +0000 (21:19 +0800)
index.js
template/base/.vscode/extensions.json [moved from template/config/base/.vscode/extensions.json with 100% similarity]
template/base/README.md [moved from template/config/base/README.md with 100% similarity]
template/base/_gitignore [moved from template/config/base/_gitignore with 100% similarity]
template/base/index.html [moved from template/config/base/index.html with 100% similarity]
template/base/jsconfig.json [moved from template/config/base/jsconfig.json with 100% similarity]
template/base/package.json [moved from template/config/base/package.json with 100% similarity]
template/base/public/favicon.ico [moved from template/config/base/public/favicon.ico with 100% similarity]
template/base/vite-env.d.ts [moved from template/config/base/vite-env.d.ts with 100% similarity]
template/base/vite.config.js [moved from template/config/base/vite.config.js with 100% similarity]

index a3a31b4ae887927a9466516d65558d0e279cf7b7..1b28f39e4da6b832821866daf02ec3cbc95bfe7c 100755 (executable)
--- a/index.js
+++ b/index.js
@@ -205,8 +205,10 @@ async function init() {
     renderTemplate(templateDir, root)
   }
 
+  // Render base template
+  render('base')
+
   // Add configs.
-  render('config/base')
   if (needsJsx) {
     render('config/jsx')
   }