create-vue 3.18.4 → 3.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.js +10 -10
- package/locales/en-US.json +2 -2
- package/locales/fr-FR.json +2 -2
- package/locales/tr-TR.json +2 -2
- package/locales/zh-Hans.json +2 -2
- package/locales/zh-Hant.json +2 -2
- package/package.json +2 -2
- package/template/config/cypress/package.json +1 -1
- package/template/config/cypress-ct/package.json +1 -1
- package/template/config/typescript/package.json +1 -1
- package/template/config/vitest/package.json +1 -1
- package/template/formatting/oxfmt/package.json +1 -1
- package/template/linting/core/js/package.json +1 -1
- package/template/linting/cypress/package.json +1 -1
- package/template/linting/oxlint/package.json +2 -2
- package/template/linting/vitest/package.json +1 -1
- /package/template/linting/oxlint/{_ oxlintrc.json → _oxlintrc.json} +0 -0
package/bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/*! create-vue v3.18.
|
|
2
|
+
/*! create-vue v3.18.5 | MIT */
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -2468,7 +2468,7 @@ function emptyRouterConfig(rootDir, needsTypeScript) {
|
|
|
2468
2468
|
//#endregion
|
|
2469
2469
|
//#region package.json
|
|
2470
2470
|
var name = "create-vue";
|
|
2471
|
-
var version = "3.18.
|
|
2471
|
+
var version = "3.18.5";
|
|
2472
2472
|
|
|
2473
2473
|
//#endregion
|
|
2474
2474
|
//#region index.ts
|
|
@@ -2491,7 +2491,7 @@ const FEATURE_FLAGS = [
|
|
|
2491
2491
|
"prettier",
|
|
2492
2492
|
"eslint-with-prettier",
|
|
2493
2493
|
"oxlint",
|
|
2494
|
-
"
|
|
2494
|
+
"vite-beta"
|
|
2495
2495
|
];
|
|
2496
2496
|
const FEATURE_OPTIONS = [
|
|
2497
2497
|
{
|
|
@@ -2531,8 +2531,8 @@ const EXPERIMENTAL_FEATURE_OPTIONS = [{
|
|
|
2531
2531
|
value: "oxlint",
|
|
2532
2532
|
label: language.needsOxlint.message
|
|
2533
2533
|
}, {
|
|
2534
|
-
value: "
|
|
2535
|
-
label: language.
|
|
2534
|
+
value: "vite-beta",
|
|
2535
|
+
label: language.needsViteBeta.message
|
|
2536
2536
|
}];
|
|
2537
2537
|
function isValidPackageName(projectName) {
|
|
2538
2538
|
return /^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(projectName);
|
|
@@ -2607,8 +2607,8 @@ Available feature flags:
|
|
|
2607
2607
|
Add Prettier for code formatting.
|
|
2608
2608
|
--oxlint
|
|
2609
2609
|
Add Oxlint for code quality and formatting.
|
|
2610
|
-
--
|
|
2611
|
-
Use
|
|
2610
|
+
--vite-beta
|
|
2611
|
+
Use Vite 8 Beta instead of Vite for building the project.
|
|
2612
2612
|
|
|
2613
2613
|
Unstable feature flags:
|
|
2614
2614
|
--tests, --with-tests
|
|
@@ -2723,7 +2723,7 @@ async function init() {
|
|
|
2723
2723
|
const needsEslint = argv.eslint || argv["eslint-with-prettier"] || features.includes("eslint");
|
|
2724
2724
|
const needsPrettier = argv.prettier || argv["eslint-with-prettier"] || features.includes("prettier");
|
|
2725
2725
|
const needsOxlint = experimentFeatures.includes("oxlint") || argv["oxlint"];
|
|
2726
|
-
const
|
|
2726
|
+
const needsViteBeta = experimentFeatures.includes("vite-beta") || argv["vite-beta"] || argv["rolldown-vite"];
|
|
2727
2727
|
const { e2eFramework } = result;
|
|
2728
2728
|
const needsCypress = argv.cypress || argv.tests || e2eFramework === "cypress";
|
|
2729
2729
|
const needsCypressCT = needsCypress && !needsVitest;
|
|
@@ -2747,7 +2747,7 @@ async function init() {
|
|
|
2747
2747
|
const replaceVite = () => {
|
|
2748
2748
|
const content = fs.readFileSync(path$1.resolve(root, "package.json"), "utf-8");
|
|
2749
2749
|
const json = JSON.parse(content);
|
|
2750
|
-
json.devDependencies.vite = "
|
|
2750
|
+
json.devDependencies.vite = "beta";
|
|
2751
2751
|
fs.writeFileSync(path$1.resolve(root, "package.json"), JSON.stringify(json, null, 2));
|
|
2752
2752
|
};
|
|
2753
2753
|
render("base");
|
|
@@ -2799,7 +2799,7 @@ async function init() {
|
|
|
2799
2799
|
if (needsOxlint) render("linting/oxlint");
|
|
2800
2800
|
}
|
|
2801
2801
|
if (needsPrettier) render("formatting/prettier");
|
|
2802
|
-
if (
|
|
2802
|
+
if (needsViteBeta) replaceVite();
|
|
2803
2803
|
render(`code/${(needsTypeScript ? "typescript-" : "") + (needsRouter ? "router" : "default")}`);
|
|
2804
2804
|
if (needsPinia && needsRouter) render("entry/router-and-pinia");
|
|
2805
2805
|
else if (needsPinia) render("entry/pinia");
|
package/locales/en-US.json
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"message": "Select experimental features to include in your project:",
|
|
70
70
|
"hint": "(↑/↓ to navigate, space to select, a to toggle all, enter to confirm)"
|
|
71
71
|
},
|
|
72
|
-
"
|
|
73
|
-
"message": "
|
|
72
|
+
"needsViteBeta": {
|
|
73
|
+
"message": "Vite 8 (beta)"
|
|
74
74
|
},
|
|
75
75
|
"needsBareboneTemplates": {
|
|
76
76
|
"message": "Skip all example code and start with a blank Vue project?"
|
package/locales/fr-FR.json
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"message": "Sélectionnez les fonctionnalités expérimentales à inclure\u00a0:",
|
|
70
70
|
"hint": "(↑/↓ pour naviguer, espace pour sélectionner, a pour tout sélectionner, entrée pour confirmer)"
|
|
71
71
|
},
|
|
72
|
-
"
|
|
73
|
-
"message": "
|
|
72
|
+
"needsViteBeta": {
|
|
73
|
+
"message": "Vite 8 (beta)"
|
|
74
74
|
},
|
|
75
75
|
"needsBareboneTemplates": {
|
|
76
76
|
"message": "Ignorer tout le code d'exemple et commencer avec un projet Vue vierge\u00a0?"
|
package/locales/tr-TR.json
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"message": "Dahil edilecek deneysel özellikleri seçin:",
|
|
70
70
|
"hint": "(↑/↓ gezinmek için, boşluk seçmek için, a tümünü seçmek için, enter onaylamak için)"
|
|
71
71
|
},
|
|
72
|
-
"
|
|
73
|
-
"message": "
|
|
72
|
+
"needsViteBeta": {
|
|
73
|
+
"message": "Vite 8 (beta)"
|
|
74
74
|
},
|
|
75
75
|
"needsBareboneTemplates": {
|
|
76
76
|
"message": "Tüm örnek kodları atlayıp boş bir Vue projesi ile başlansın mı?"
|
package/locales/zh-Hans.json
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"message": "选择要包含的试验特性:",
|
|
70
70
|
"hint": "(↑/↓ 切换,空格选择,a 全选,回车确认)"
|
|
71
71
|
},
|
|
72
|
-
"
|
|
73
|
-
"message": "
|
|
72
|
+
"needsViteBeta": {
|
|
73
|
+
"message": "Vite 8(测试版)"
|
|
74
74
|
},
|
|
75
75
|
"needsBareboneTemplates": {
|
|
76
76
|
"message": "跳过所有示例代码,创建一个空白的 Vue 项目?"
|
package/locales/zh-Hant.json
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"message": "請選擇要包含的試驗特性:",
|
|
70
70
|
"hint": "(↑/↓ 切換,空格選擇,a 全選,enter 確認)"
|
|
71
71
|
},
|
|
72
|
-
"
|
|
73
|
-
"message": "
|
|
72
|
+
"needsViteBeta": {
|
|
73
|
+
"message": "Vite 8(測試版)"
|
|
74
74
|
},
|
|
75
75
|
"needsBareboneTemplates": {
|
|
76
76
|
"message": "跳過所有範例程式碼,建立一個空白的 Vue 專案?"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vue",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.5",
|
|
4
4
|
"description": "🛠️ The recommended way to start a Vite-powered Vue project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"lint-staged": "^16.2.7",
|
|
39
39
|
"picocolors": "^1.1.1",
|
|
40
40
|
"prettier": "3.7.4",
|
|
41
|
-
"rolldown": "1.0.0-beta.
|
|
41
|
+
"rolldown": "1.0.0-beta.58",
|
|
42
42
|
"rollup-plugin-license": "^3.6.0",
|
|
43
43
|
"vitest": "^4.0.16",
|
|
44
44
|
"zx": "^8.8.5"
|
|
File without changes
|