create-vue 3.22.1 → 3.22.2
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/README.md +1 -1
- package/bundle.js +15 -32
- package/locales/en-US.json +0 -3
- package/locales/fr-FR.json +0 -3
- package/locales/tr-TR.json +0 -3
- package/locales/zh-Hans.json +0 -3
- package/locales/zh-Hant.json +0 -3
- package/package.json +9 -20
- package/template/base/package.json +4 -4
- package/template/config/cypress/package.json +1 -1
- package/template/config/cypress-ct/package.json +2 -2
- package/template/config/jsx/package.json +3 -3
- package/template/config/pinia/package.json +1 -1
- package/template/config/router/package.json +2 -2
- package/template/config/typescript/package.json +2 -2
- package/template/config/vitest/package.json +3 -3
- package/template/formatting/oxfmt/package.json +1 -1
- package/template/linting/base/package.json +1 -1
- package/template/linting/core/js/package.json +1 -1
- package/template/linting/core/ts/package.json +2 -2
- package/template/linting/cypress/package.json +1 -1
- package/template/linting/oxlint/package.json +2 -2
- package/template/linting/playwright/package.json +1 -1
- package/template/linting/vitest/package.json +1 -1
- package/template/tsconfig/base/package.json +1 -1
- package/template/tsconfig/cypress/cypress/tsconfig.json +5 -1
- package/template/tsconfig/vitest/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# create-vue <a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/version/create-vue" alt="npm package"></a
|
|
1
|
+
# create-vue <a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/version/create-vue" alt="npm package"></a> <a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/downloads-week/create-vue" alt="npm package"></a> <a href="https://nodejs.org/en/about/previous-releases"><img src="https://npmx.dev/api/registry/badge/engines/create-vue" alt="node compatibility"></a>
|
|
2
2
|
|
|
3
3
|
The recommended way to start a Vite-powered Vue project
|
|
4
4
|
|
package/bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/*! create-vue v3.22.
|
|
2
|
+
/*! create-vue v3.22.2 | MIT */
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import "node:fs";
|
|
@@ -1346,8 +1346,8 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1346
1346
|
};
|
|
1347
1347
|
}));
|
|
1348
1348
|
//#endregion
|
|
1349
|
-
//#region
|
|
1350
|
-
var
|
|
1349
|
+
//#region node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js
|
|
1350
|
+
var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1351
1351
|
/**
|
|
1352
1352
|
* @file Embedded JavaScript templating engine. {@link http://ejs.co}
|
|
1353
1353
|
* @author Matthew Eernisse <mde@fleegix.org>
|
|
@@ -2011,8 +2011,11 @@ var import_ejs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((export
|
|
|
2011
2011
|
exports.name = _NAME;
|
|
2012
2012
|
/* istanbul ignore if */
|
|
2013
2013
|
if (typeof window != "undefined") window.ejs = exports;
|
|
2014
|
-
}))
|
|
2014
|
+
}));
|
|
2015
|
+
//#endregion
|
|
2016
|
+
//#region utils/banners.ts
|
|
2015
2017
|
var import_picocolors = require_picocolors();
|
|
2018
|
+
var import_ejs = /* @__PURE__ */ __toESM(require_ejs(), 1);
|
|
2016
2019
|
const defaultBanner = "Vue.js - The Progressive JavaScript Framework";
|
|
2017
2020
|
const gradientBanner = "\x1B[38;2;66;211;146mV\x1B[39m\x1B[38;2;66;211;146mu\x1B[39m\x1B[38;2;66;211;146me\x1B[39m\x1B[38;2;66;211;146m.\x1B[39m\x1B[38;2;66;211;146mj\x1B[39m\x1B[38;2;67;209;149ms\x1B[39m \x1B[38;2;68;206;152m-\x1B[39m \x1B[38;2;69;204;155mT\x1B[39m\x1B[38;2;70;201;158mh\x1B[39m\x1B[38;2;71;199;162me\x1B[39m \x1B[38;2;72;196;165mP\x1B[39m\x1B[38;2;73;194;168mr\x1B[39m\x1B[38;2;74;192;171mo\x1B[39m\x1B[38;2;75;189;174mg\x1B[39m\x1B[38;2;76;187;177mr\x1B[39m\x1B[38;2;77;184;180me\x1B[39m\x1B[38;2;78;182;183ms\x1B[39m\x1B[38;2;79;179;186ms\x1B[39m\x1B[38;2;80;177;190mi\x1B[39m\x1B[38;2;81;175;193mv\x1B[39m\x1B[38;2;82;172;196me\x1B[39m \x1B[38;2;83;170;199mJ\x1B[39m\x1B[38;2;83;167;202ma\x1B[39m\x1B[38;2;84;165;205mv\x1B[39m\x1B[38;2;85;162;208ma\x1B[39m\x1B[38;2;86;160;211mS\x1B[39m\x1B[38;2;87;158;215mc\x1B[39m\x1B[38;2;88;155;218mr\x1B[39m\x1B[38;2;89;153;221mi\x1B[39m\x1B[38;2;90;150;224mp\x1B[39m\x1B[38;2;91;148;227mt\x1B[39m \x1B[38;2;92;145;230mF\x1B[39m\x1B[38;2;93;143;233mr\x1B[39m\x1B[38;2;94;141;236ma\x1B[39m\x1B[38;2;95;138;239mm\x1B[39m\x1B[38;2;96;136;243me\x1B[39m\x1B[38;2;97;133;246mw\x1B[39m\x1B[38;2;98;131;249mo\x1B[39m\x1B[38;2;99;128;252mr\x1B[39m\x1B[38;2;100;126;255mk\x1B[39m";
|
|
2018
2021
|
//#endregion
|
|
@@ -2409,7 +2412,7 @@ function getPackageManagerOptions(preferred) {
|
|
|
2409
2412
|
//#endregion
|
|
2410
2413
|
//#region package.json
|
|
2411
2414
|
var name = "create-vue";
|
|
2412
|
-
var version = "3.22.
|
|
2415
|
+
var version = "3.22.2";
|
|
2413
2416
|
//#endregion
|
|
2414
2417
|
//#region index.ts
|
|
2415
2418
|
const language = await getLanguage(fileURLToPath(new URL("./locales", import.meta.url)));
|
|
@@ -2431,7 +2434,6 @@ const FEATURE_FLAGS = [
|
|
|
2431
2434
|
"eslint-with-prettier",
|
|
2432
2435
|
"oxlint",
|
|
2433
2436
|
"oxfmt",
|
|
2434
|
-
"vite-beta",
|
|
2435
2437
|
"vue-beta"
|
|
2436
2438
|
];
|
|
2437
2439
|
const FEATURE_OPTIONS = [
|
|
@@ -2464,20 +2466,13 @@ const FEATURE_OPTIONS = [
|
|
|
2464
2466
|
label: language.needsPrettier.message
|
|
2465
2467
|
}
|
|
2466
2468
|
];
|
|
2467
|
-
const EXPERIMENTAL_FEATURE_OPTIONS = [
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
label: language.needsViteBeta.message
|
|
2475
|
-
},
|
|
2476
|
-
{
|
|
2477
|
-
value: "vue-beta",
|
|
2478
|
-
label: language.needsVueBeta.message
|
|
2479
|
-
}
|
|
2480
|
-
];
|
|
2469
|
+
const EXPERIMENTAL_FEATURE_OPTIONS = [{
|
|
2470
|
+
value: "oxfmt",
|
|
2471
|
+
label: language.needsOxfmt.message
|
|
2472
|
+
}, {
|
|
2473
|
+
value: "vue-beta",
|
|
2474
|
+
label: language.needsVueBeta.message
|
|
2475
|
+
}];
|
|
2481
2476
|
function isValidPackageName(projectName) {
|
|
2482
2477
|
return /^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(projectName);
|
|
2483
2478
|
}
|
|
@@ -2546,8 +2541,6 @@ Available feature flags:
|
|
|
2546
2541
|
Add Prettier for code formatting.
|
|
2547
2542
|
--oxfmt
|
|
2548
2543
|
Add Oxfmt for code formatting.
|
|
2549
|
-
--vite-beta
|
|
2550
|
-
Use Vite 8 Beta instead of Vite for building the project.
|
|
2551
2544
|
--vue-beta
|
|
2552
2545
|
Use Vue 3.6 Beta. Requires specifying a package manager in interactive mode.
|
|
2553
2546
|
|
|
@@ -2561,8 +2554,6 @@ Deprecated feature flags:
|
|
|
2561
2554
|
Please use ${(0, import_picocolors.cyan)("--eslint --prettier")} instead.
|
|
2562
2555
|
--oxlint
|
|
2563
2556
|
Oxlint is now always included when ESLint is selected.
|
|
2564
|
-
--rolldown-vite
|
|
2565
|
-
Please use ${(0, import_picocolors.cyan)("--vite-beta")} instead.
|
|
2566
2557
|
`;
|
|
2567
2558
|
async function init() {
|
|
2568
2559
|
const cwd = process.cwd();
|
|
@@ -2679,7 +2670,6 @@ async function init() {
|
|
|
2679
2670
|
const needsEslint = argv.eslint || argv["eslint-with-prettier"] || features.includes("eslint");
|
|
2680
2671
|
const needsPrettier = argv.prettier || argv["eslint-with-prettier"] || features.includes("prettier");
|
|
2681
2672
|
const needsOxfmt = experimentFeatures.includes("oxfmt") || argv["oxfmt"];
|
|
2682
|
-
const needsViteBeta = experimentFeatures.includes("vite-beta") || argv["vite-beta"] || argv["rolldown-vite"];
|
|
2683
2673
|
const needsVueBeta = experimentFeatures.includes("vue-beta") || argv["vue-beta"];
|
|
2684
2674
|
const { e2eFramework } = result;
|
|
2685
2675
|
const needsCypress = argv.cypress || argv.tests || argv["with-tests"] || e2eFramework === "cypress";
|
|
@@ -2699,12 +2689,6 @@ async function init() {
|
|
|
2699
2689
|
const render = function render(templateName) {
|
|
2700
2690
|
renderTemplate(path$1.resolve(templateRoot, templateName), root, callbacks);
|
|
2701
2691
|
};
|
|
2702
|
-
const replaceVite = () => {
|
|
2703
|
-
const content = fs.readFileSync(path$1.resolve(root, "package.json"), "utf-8");
|
|
2704
|
-
const json = JSON.parse(content);
|
|
2705
|
-
json.devDependencies.vite = "beta";
|
|
2706
|
-
fs.writeFileSync(path$1.resolve(root, "package.json"), JSON.stringify(json, null, 2));
|
|
2707
|
-
};
|
|
2708
2692
|
render("base");
|
|
2709
2693
|
if (needsJsx) render("config/jsx");
|
|
2710
2694
|
if (needsRouter) render("config/router");
|
|
@@ -2752,7 +2736,6 @@ async function init() {
|
|
|
2752
2736
|
}
|
|
2753
2737
|
if (needsOxfmt) render("formatting/oxfmt");
|
|
2754
2738
|
else if (needsPrettier) render("formatting/prettier");
|
|
2755
|
-
if (needsViteBeta) replaceVite();
|
|
2756
2739
|
render(`code/${(needsTypeScript ? "typescript-" : "") + (needsRouter ? "router" : "default")}`);
|
|
2757
2740
|
if (needsPinia && needsRouter) render("entry/router-and-pinia");
|
|
2758
2741
|
else if (needsPinia) render("entry/pinia");
|
package/locales/en-US.json
CHANGED
|
@@ -61,9 +61,6 @@
|
|
|
61
61
|
"message": "Select experimental features to include in your project:",
|
|
62
62
|
"hint": "(↑/↓ to navigate, space to select, a to toggle all, enter to confirm)"
|
|
63
63
|
},
|
|
64
|
-
"needsViteBeta": {
|
|
65
|
-
"message": "Vite 8 (beta)"
|
|
66
|
-
},
|
|
67
64
|
"needsVueBeta": {
|
|
68
65
|
"message": "Vue 3.6 (beta)"
|
|
69
66
|
},
|
package/locales/fr-FR.json
CHANGED
|
@@ -61,9 +61,6 @@
|
|
|
61
61
|
"message": "Sélectionnez les fonctionnalités expérimentales à inclure\u00a0:",
|
|
62
62
|
"hint": "(↑/↓ pour naviguer, espace pour sélectionner, a pour tout sélectionner, entrée pour confirmer)"
|
|
63
63
|
},
|
|
64
|
-
"needsViteBeta": {
|
|
65
|
-
"message": "Vite 8 (beta)"
|
|
66
|
-
},
|
|
67
64
|
"needsVueBeta": {
|
|
68
65
|
"message": "Vue 3.6 (beta)"
|
|
69
66
|
},
|
package/locales/tr-TR.json
CHANGED
|
@@ -61,9 +61,6 @@
|
|
|
61
61
|
"message": "Dahil edilecek deneysel özellikleri seçin:",
|
|
62
62
|
"hint": "(↑/↓ gezinmek için, boşluk seçmek için, a tümünü seçmek için, enter onaylamak için)"
|
|
63
63
|
},
|
|
64
|
-
"needsViteBeta": {
|
|
65
|
-
"message": "Vite 8 (beta)"
|
|
66
|
-
},
|
|
67
64
|
"needsVueBeta": {
|
|
68
65
|
"message": "Vue 3.6 (beta)"
|
|
69
66
|
},
|
package/locales/zh-Hans.json
CHANGED
package/locales/zh-Hant.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vue",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.2",
|
|
4
4
|
"description": "🛠️ The recommended way to start a Vite-powered Vue project",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/vuejs/create-vue#readme",
|
|
@@ -30,39 +30,28 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@clack/prompts": "^1.1.0",
|
|
32
32
|
"@tsconfig/node24": "^24.0.4",
|
|
33
|
-
"@types/eslint": "^9.6.1",
|
|
34
33
|
"@types/node": "^24.12.0",
|
|
35
|
-
"@
|
|
36
|
-
"@vue/tsconfig": "^0.9.0",
|
|
34
|
+
"@vue/tsconfig": "^0.9.1",
|
|
37
35
|
"ejs": "^3.1.10",
|
|
38
|
-
"husky": "^9.1.7",
|
|
39
|
-
"lint-staged": "^16.3.3",
|
|
40
|
-
"oxfmt": "^0.37.0",
|
|
41
|
-
"oxlint": "~1.51.0",
|
|
42
36
|
"picocolors": "^1.1.1",
|
|
43
|
-
"rolldown": "1.0.0-rc.
|
|
37
|
+
"rolldown": "1.0.0-rc.12",
|
|
44
38
|
"rollup-plugin-license": "^3.7.0",
|
|
45
|
-
"
|
|
39
|
+
"vite-plus": "latest",
|
|
40
|
+
"vitest": "npm:@voidzero-dev/vite-plus-test@latest",
|
|
46
41
|
"zx": "^8.8.5"
|
|
47
42
|
},
|
|
48
|
-
"lint-staged": {
|
|
49
|
-
"*.{js,ts,vue,json}": [
|
|
50
|
-
"oxfmt --no-error-on-unmatched-pattern",
|
|
51
|
-
"oxlint --fix"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
43
|
"engines": {
|
|
55
44
|
"node": "^20.19.0 || >=22.12.0"
|
|
56
45
|
},
|
|
57
46
|
"scripts": {
|
|
58
|
-
"format": "
|
|
59
|
-
"format-check": "
|
|
60
|
-
"lint": "
|
|
47
|
+
"format": "vp fmt",
|
|
48
|
+
"format-check": "vp fmt --check",
|
|
49
|
+
"lint": "vp lint . --fix --ignore-pattern playground",
|
|
61
50
|
"build": "rolldown -c rolldown.config.ts",
|
|
62
51
|
"snapshot": "zx ./scripts/snapshot.mjs",
|
|
63
52
|
"pretest": "pnpm run build && pnpm run snapshot",
|
|
64
53
|
"test": "zx ./scripts/test.mjs",
|
|
65
|
-
"test:unit": "
|
|
54
|
+
"test:unit": "vp test",
|
|
66
55
|
"preversion": "git fetch && git status -uno | grep -q 'Your branch is up to date'",
|
|
67
56
|
"postversion": "zx ./scripts/postversion.mjs"
|
|
68
57
|
}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"preview": "vite preview"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"vue": "^3.5.
|
|
10
|
+
"vue": "^3.5.31"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
14
|
-
"vite": "^
|
|
15
|
-
"vite-plugin-vue-devtools": "^8.
|
|
13
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
14
|
+
"vite": "^8.0.3",
|
|
15
|
+
"vite-plugin-vue-devtools": "^8.1.1"
|
|
16
16
|
},
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": "^20.19.0 || >=22.12.0"
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
"exclude": ["./support/component.*"],
|
|
5
5
|
"compilerOptions": {
|
|
6
6
|
"isolatedModules": false,
|
|
7
|
-
"types": ["cypress"]
|
|
7
|
+
"types": ["cypress"],
|
|
8
|
+
|
|
9
|
+
// FIXME: Remove this when Cypress officially supports TypeScript 6.0
|
|
10
|
+
// https://github.com/cypress-io/cypress/issues/33511
|
|
11
|
+
"ignoreDeprecations": "6.0"
|
|
8
12
|
}
|
|
9
13
|
}
|