From: Haoqun Jiang Date: Tue, 10 Aug 2021 13:19:56 +0000 (+0800) Subject: refactor: move base template out of `config` category X-Git-Tag: v3.0.0-alpha.2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ba90b1a9257cb2f5518aca7a51c293d8b3a1313;p=thirdparty%2Fvuejs%2Fcreate-vue.git refactor: move base template out of `config` category --- diff --git a/index.js b/index.js index a3a31b4a..1b28f39e 100755 --- 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') } diff --git a/template/config/base/.vscode/extensions.json b/template/base/.vscode/extensions.json similarity index 100% rename from template/config/base/.vscode/extensions.json rename to template/base/.vscode/extensions.json diff --git a/template/config/base/README.md b/template/base/README.md similarity index 100% rename from template/config/base/README.md rename to template/base/README.md diff --git a/template/config/base/_gitignore b/template/base/_gitignore similarity index 100% rename from template/config/base/_gitignore rename to template/base/_gitignore diff --git a/template/config/base/index.html b/template/base/index.html similarity index 100% rename from template/config/base/index.html rename to template/base/index.html diff --git a/template/config/base/jsconfig.json b/template/base/jsconfig.json similarity index 100% rename from template/config/base/jsconfig.json rename to template/base/jsconfig.json diff --git a/template/config/base/package.json b/template/base/package.json similarity index 100% rename from template/config/base/package.json rename to template/base/package.json diff --git a/template/config/base/public/favicon.ico b/template/base/public/favicon.ico similarity index 100% rename from template/config/base/public/favicon.ico rename to template/base/public/favicon.ico diff --git a/template/config/base/vite-env.d.ts b/template/base/vite-env.d.ts similarity index 100% rename from template/config/base/vite-env.d.ts rename to template/base/vite-env.d.ts diff --git a/template/config/base/vite.config.js b/template/base/vite.config.js similarity index 100% rename from template/config/base/vite.config.js rename to template/base/vite.config.js