create-vue 3.17.0 → 3.18.1
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 +105 -95
- package/locales/en-US.json +4 -1
- package/locales/fr-FR.json +4 -1
- package/locales/tr-TR.json +4 -1
- package/locales/zh-Hans.json +4 -1
- package/locales/zh-Hant.json +4 -1
- package/package.json +9 -9
- package/template/bare/base/src/App.vue +4 -0
- package/template/bare/typescript/src/App.vue +4 -0
- package/template/base/package.json +7 -4
- package/template/config/cypress/package.json +2 -2
- package/template/config/cypress-ct/package.json +2 -2
- package/template/config/jsx/package.json +3 -3
- package/template/config/nightwatch/package.json +4 -4
- package/template/config/nightwatch-ct/package.json +1 -1
- package/template/config/pinia/package.json +1 -1
- package/template/config/playwright/package.json +1 -1
- package/template/config/prettier/package.json +1 -1
- package/template/config/router/package.json +1 -1
- package/template/config/typescript/package.json +3 -3
- package/template/config/vitest/package.json +2 -2
- package/template/eslint/package.json +3 -3
- package/template/tsconfig/base/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
/*! create-vue v3.18.1 | MIT */
|
|
2
3
|
import { createRequire } from "node:module";
|
|
3
4
|
import * as fs from "node:fs";
|
|
4
5
|
import * as path from "node:path";
|
|
@@ -38,7 +39,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
38
39
|
|
|
39
40
|
//#endregion
|
|
40
41
|
//#region node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
41
|
-
var require_src = __commonJS({ "node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
|
|
42
|
+
var require_src = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js": ((exports, module) => {
|
|
42
43
|
const ESC = "\x1B";
|
|
43
44
|
const CSI = `${ESC}[`;
|
|
44
45
|
const beep = "\x07";
|
|
@@ -91,11 +92,11 @@ var require_src = __commonJS({ "node_modules/.pnpm/sisteransi@1.0.5/node_modules
|
|
|
91
92
|
erase,
|
|
92
93
|
beep
|
|
93
94
|
};
|
|
94
|
-
} });
|
|
95
|
+
}) });
|
|
95
96
|
|
|
96
97
|
//#endregion
|
|
97
98
|
//#region node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
98
|
-
var require_picocolors = __commonJS({ "node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
|
|
99
|
+
var require_picocolors = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": ((exports, module) => {
|
|
99
100
|
let p$1 = process || {}, argv = p$1.argv || [], env = p$1.env || {};
|
|
100
101
|
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p$1.platform === "win32" || (p$1.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
101
102
|
let formatter = (open, close, replace = open) => (input) => {
|
|
@@ -160,12 +161,12 @@ var require_picocolors = __commonJS({ "node_modules/.pnpm/picocolors@1.1.1/node_
|
|
|
160
161
|
};
|
|
161
162
|
module.exports = createColors();
|
|
162
163
|
module.exports.createColors = createColors;
|
|
163
|
-
} });
|
|
164
|
+
}) });
|
|
164
165
|
|
|
165
166
|
//#endregion
|
|
166
167
|
//#region node_modules/.pnpm/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
167
|
-
var import_src$1 = __toESM(require_src(), 1);
|
|
168
|
-
var import_picocolors$2 = __toESM(require_picocolors(), 1);
|
|
168
|
+
var import_src$1 = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
169
|
+
var import_picocolors$2 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
169
170
|
function DD({ onlyFirst: e$1 = !1 } = {}) {
|
|
170
171
|
const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
171
172
|
return new RegExp(t, e$1 ? void 0 : "g");
|
|
@@ -478,9 +479,8 @@ function fD({ input: e$1 = stdin, output: u$1 = stdout, overwrite: t = !0, hideC
|
|
|
478
479
|
});
|
|
479
480
|
g.emitKeypressEvents(e$1, s), e$1.isTTY && e$1.setRawMode(!0);
|
|
480
481
|
const i = (D$1, { name: C$1, sequence: n }) => {
|
|
481
|
-
const E = String(D$1);
|
|
482
482
|
if ($([
|
|
483
|
-
|
|
483
|
+
String(D$1),
|
|
484
484
|
C$1,
|
|
485
485
|
n
|
|
486
486
|
], "cancel")) {
|
|
@@ -681,10 +681,7 @@ let _D = class extends x$1 {
|
|
|
681
681
|
if (u$1.group === !0) {
|
|
682
682
|
const t = u$1.value, F$1 = this.getGroupItems(t);
|
|
683
683
|
this.isGroupSelected(t) ? this.value = this.value.filter((s) => F$1.findIndex((i) => i.value === s) === -1) : this.value = [...this.value, ...F$1.map((s) => s.value)], this.value = Array.from(new Set(this.value));
|
|
684
|
-
} else
|
|
685
|
-
const t = this.value.includes(u$1.value);
|
|
686
|
-
this.value = t ? this.value.filter((F$1) => F$1 !== u$1.value) : [...this.value, u$1.value];
|
|
687
|
-
}
|
|
684
|
+
} else this.value = this.value.includes(u$1.value) ? this.value.filter((F$1) => F$1 !== u$1.value) : [...this.value, u$1.value];
|
|
688
685
|
}
|
|
689
686
|
};
|
|
690
687
|
A$1 = /* @__PURE__ */ new WeakMap();
|
|
@@ -718,12 +715,10 @@ let SD = class extends x$1 {
|
|
|
718
715
|
return this.options[this.cursor].value;
|
|
719
716
|
}
|
|
720
717
|
toggleAll() {
|
|
721
|
-
|
|
722
|
-
this.value = u$1 ? [] : this.options.map((t) => t.value);
|
|
718
|
+
this.value = this.value.length === this.options.length ? [] : this.options.map((t) => t.value);
|
|
723
719
|
}
|
|
724
720
|
toggleValue() {
|
|
725
|
-
|
|
726
|
-
this.value = u$1 ? this.value.filter((t) => t !== this._value) : [...this.value, this._value];
|
|
721
|
+
this.value = this.value.includes(this._value) ? this.value.filter((t) => t !== this._value) : [...this.value, this._value];
|
|
727
722
|
}
|
|
728
723
|
};
|
|
729
724
|
var TD = Object.defineProperty, jD = (e$1, u$1, t) => u$1 in e$1 ? TD(e$1, u$1, {
|
|
@@ -816,8 +811,8 @@ var RD = class extends x$1 {
|
|
|
816
811
|
|
|
817
812
|
//#endregion
|
|
818
813
|
//#region node_modules/.pnpm/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
|
|
819
|
-
var import_picocolors$1 = __toESM(require_picocolors(), 1);
|
|
820
|
-
var import_src = __toESM(require_src(), 1);
|
|
814
|
+
var import_picocolors$1 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
815
|
+
var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
821
816
|
function ce() {
|
|
822
817
|
return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
823
818
|
}
|
|
@@ -1162,8 +1157,7 @@ ${J}${i.trimStart()}`), r$1 = 3 + stripVTControlCharacters(i.trimStart()).length
|
|
|
1162
1157
|
], r$1 = V ? 80 : 120, i = process.env.CI === "true";
|
|
1163
1158
|
let s, c, a = !1, l$1 = "", $$1, g$1 = performance.now();
|
|
1164
1159
|
const p$2 = (m$1) => {
|
|
1165
|
-
|
|
1166
|
-
a && N$1(h$1, m$1);
|
|
1160
|
+
a && N$1(m$1 > 1 ? "Something went wrong" : "Canceled", m$1);
|
|
1167
1161
|
}, v$1 = () => p$2(2), f = () => p$2(1), j = () => {
|
|
1168
1162
|
process.on("uncaughtExceptionMonitor", v$1), process.on("unhandledRejection", v$1), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p$2);
|
|
1169
1163
|
}, E = () => {
|
|
@@ -1233,7 +1227,7 @@ ${J}${i.trimStart()}`), r$1 = 3 + stripVTControlCharacters(i.trimStart()).length
|
|
|
1233
1227
|
|
|
1234
1228
|
//#endregion
|
|
1235
1229
|
//#region node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js
|
|
1236
|
-
var require_utils = __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js"(exports) {
|
|
1230
|
+
var require_utils = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/utils.js": ((exports) => {
|
|
1237
1231
|
var regExpChars = /[|\\{}()[\]^$+*?.]/g;
|
|
1238
1232
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1239
1233
|
var hasOwn = function(obj, key) {
|
|
@@ -1385,24 +1379,24 @@ var require_utils = __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs
|
|
|
1385
1379
|
* @static
|
|
1386
1380
|
* @private
|
|
1387
1381
|
*/
|
|
1388
|
-
exports.createNullProtoObjWherePossible = function() {
|
|
1382
|
+
exports.createNullProtoObjWherePossible = (function() {
|
|
1389
1383
|
if (typeof Object.create == "function") return function() {
|
|
1390
1384
|
return Object.create(null);
|
|
1391
1385
|
};
|
|
1392
1386
|
return function() {
|
|
1393
1387
|
return {};
|
|
1394
1388
|
};
|
|
1395
|
-
}();
|
|
1389
|
+
})();
|
|
1396
1390
|
exports.hasOwnOnlyObject = function(obj) {
|
|
1397
1391
|
var o$1 = exports.createNullProtoObjWherePossible();
|
|
1398
1392
|
for (var p$2 in obj) if (hasOwn(obj, p$2)) o$1[p$2] = obj[p$2];
|
|
1399
1393
|
return o$1;
|
|
1400
1394
|
};
|
|
1401
|
-
} });
|
|
1395
|
+
}) });
|
|
1402
1396
|
|
|
1403
1397
|
//#endregion
|
|
1404
1398
|
//#region node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json
|
|
1405
|
-
var require_package = __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json"(exports, module) {
|
|
1399
|
+
var require_package = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/package.json": ((exports, module) => {
|
|
1406
1400
|
module.exports = {
|
|
1407
1401
|
"name": "ejs",
|
|
1408
1402
|
"description": "Embedded JavaScript templates",
|
|
@@ -1437,11 +1431,11 @@ var require_package = __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/e
|
|
|
1437
1431
|
"engines": { "node": ">=0.10.0" },
|
|
1438
1432
|
"scripts": { "test": "npx jake test" }
|
|
1439
1433
|
};
|
|
1440
|
-
} });
|
|
1434
|
+
}) });
|
|
1441
1435
|
|
|
1442
1436
|
//#endregion
|
|
1443
1437
|
//#region node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js
|
|
1444
|
-
var require_ejs = __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js"(exports) {
|
|
1438
|
+
var require_ejs = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js": ((exports) => {
|
|
1445
1439
|
/**
|
|
1446
1440
|
* @file Embedded JavaScript templating engine. {@link http://ejs.co}
|
|
1447
1441
|
* @author Matthew Eernisse <mde@fleegix.org>
|
|
@@ -1540,8 +1534,7 @@ var require_ejs = __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/l
|
|
|
1540
1534
|
var extname = path$2.extname;
|
|
1541
1535
|
var resolve = path$2.resolve;
|
|
1542
1536
|
var includePath = resolve(isDir ? filename : dirname(filename), name$2);
|
|
1543
|
-
|
|
1544
|
-
if (!ext) includePath += ".ejs";
|
|
1537
|
+
if (!extname(name$2)) includePath += ".ejs";
|
|
1545
1538
|
return includePath;
|
|
1546
1539
|
};
|
|
1547
1540
|
/**
|
|
@@ -1954,8 +1947,7 @@ var require_ejs = __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/l
|
|
|
1954
1947
|
return returnedFn;
|
|
1955
1948
|
},
|
|
1956
1949
|
generateSource: function() {
|
|
1957
|
-
|
|
1958
|
-
if (opts.rmWhitespace) this.templateText = this.templateText.replace(/[\r\n]+/g, "\n").replace(/^\s+|\s+$/gm, "");
|
|
1950
|
+
if (this.opts.rmWhitespace) this.templateText = this.templateText.replace(/[\r\n]+/g, "\n").replace(/^\s+|\s+$/gm, "");
|
|
1959
1951
|
this.templateText = this.templateText.replace(/[ \t]*<%_/gm, "<%_").replace(/_%>[ \t]*/gm, "_%>");
|
|
1960
1952
|
var self = this;
|
|
1961
1953
|
var matches = this.parseTemplateText();
|
|
@@ -2107,10 +2099,11 @@ var require_ejs = __commonJS({ "node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/l
|
|
|
2107
2099
|
exports.name = _NAME;
|
|
2108
2100
|
/* istanbul ignore if */
|
|
2109
2101
|
if (typeof window != "undefined") window.ejs = exports;
|
|
2110
|
-
} });
|
|
2102
|
+
}) });
|
|
2111
2103
|
|
|
2112
2104
|
//#endregion
|
|
2113
2105
|
//#region utils/banners.ts
|
|
2106
|
+
var import_ejs$1 = /* @__PURE__ */ __toESM(require_ejs(), 1);
|
|
2114
2107
|
const defaultBanner = "Vue.js - The Progressive JavaScript Framework";
|
|
2115
2108
|
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";
|
|
2116
2109
|
|
|
@@ -2139,13 +2132,12 @@ var deepMerge_default = deepMerge$1;
|
|
|
2139
2132
|
//#region utils/sortDependencies.ts
|
|
2140
2133
|
function sortDependencies(packageJson) {
|
|
2141
2134
|
const sorted = {};
|
|
2142
|
-
const
|
|
2135
|
+
for (const depType of [
|
|
2143
2136
|
"dependencies",
|
|
2144
2137
|
"devDependencies",
|
|
2145
2138
|
"peerDependencies",
|
|
2146
2139
|
"optionalDependencies"
|
|
2147
|
-
]
|
|
2148
|
-
for (const depType of depTypes) if (packageJson[depType]) {
|
|
2140
|
+
]) if (packageJson[depType]) {
|
|
2149
2141
|
sorted[depType] = {};
|
|
2150
2142
|
Object.keys(packageJson[depType]).sort().forEach((name$2) => {
|
|
2151
2143
|
sorted[depType][name$2] = packageJson[depType][name$2];
|
|
@@ -2169,8 +2161,7 @@ function sortDependencies(packageJson) {
|
|
|
2169
2161
|
* @param {string} dest destination filename of the copy operation
|
|
2170
2162
|
*/
|
|
2171
2163
|
function renderTemplate(src, dest, callbacks) {
|
|
2172
|
-
|
|
2173
|
-
if (stats.isDirectory()) {
|
|
2164
|
+
if (fs.statSync(src).isDirectory()) {
|
|
2174
2165
|
if (path.basename(src) === "node_modules") return;
|
|
2175
2166
|
fs.mkdirSync(dest, { recursive: true });
|
|
2176
2167
|
for (const file of fs.readdirSync(src)) renderTemplate(path.resolve(src, file), path.resolve(dest, file), callbacks);
|
|
@@ -2231,9 +2222,13 @@ function preOrderDirectoryTraverse(dir, dirCallback, fileCallback) {
|
|
|
2231
2222
|
fileCallback(fullpath);
|
|
2232
2223
|
}
|
|
2233
2224
|
}
|
|
2225
|
+
const dotGitDirectoryState = { hasDotGitDirectory: false };
|
|
2234
2226
|
function postOrderDirectoryTraverse(dir, dirCallback, fileCallback) {
|
|
2235
2227
|
for (const filename of fs.readdirSync(dir)) {
|
|
2236
|
-
if (filename === ".git")
|
|
2228
|
+
if (filename === ".git") {
|
|
2229
|
+
dotGitDirectoryState.hasDotGitDirectory = true;
|
|
2230
|
+
continue;
|
|
2231
|
+
}
|
|
2237
2232
|
const fullpath = path.resolve(dir, filename);
|
|
2238
2233
|
if (fs.lstatSync(fullpath).isDirectory()) {
|
|
2239
2234
|
postOrderDirectoryTraverse(fullpath, dirCallback, fileCallback);
|
|
@@ -2270,7 +2265,16 @@ This template should help get you started developing with Vue 3 in Vite.
|
|
|
2270
2265
|
|
|
2271
2266
|
## Recommended IDE Setup
|
|
2272
2267
|
|
|
2273
|
-
[
|
|
2268
|
+
[VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
|
2269
|
+
|
|
2270
|
+
## Recommended Browser Setup
|
|
2271
|
+
|
|
2272
|
+
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
|
|
2273
|
+
- [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
|
|
2274
|
+
- [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters)
|
|
2275
|
+
- Firefox:
|
|
2276
|
+
- [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/)
|
|
2277
|
+
- [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/)
|
|
2274
2278
|
${needsTypeScript ? sfcTypeSupportDoc : ""}
|
|
2275
2279
|
## Customize configuration
|
|
2276
2280
|
|
|
@@ -2429,18 +2433,15 @@ async function getLanguage(localesRoot) {
|
|
|
2429
2433
|
const locale = getLocale();
|
|
2430
2434
|
const languageFilePath = path.resolve(localesRoot, `${locale}.json`);
|
|
2431
2435
|
const fallbackPath = path.resolve(localesRoot, "en-US.json");
|
|
2432
|
-
|
|
2433
|
-
const lang = doesLanguageExist ? await loadLanguageFile(languageFilePath) : await loadLanguageFile(fallbackPath);
|
|
2434
|
-
return lang;
|
|
2436
|
+
return fs.existsSync(languageFilePath) ? await loadLanguageFile(languageFilePath) : await loadLanguageFile(fallbackPath);
|
|
2435
2437
|
}
|
|
2436
2438
|
|
|
2437
2439
|
//#endregion
|
|
2438
|
-
//#region node_modules/.pnpm/@vue+create-eslint-config@0.
|
|
2439
|
-
var import_ejs$1 = __toESM(require_ejs(), 1);
|
|
2440
|
+
//#region node_modules/.pnpm/@vue+create-eslint-config@0.12.1/node_modules/@vue/create-eslint-config/renderEjsFile.js
|
|
2440
2441
|
const templates = {
|
|
2441
|
-
"./templates/_editorconfig.ejs": "[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]\ncharset = utf-8\nindent_size = 2\nindent_style = space\ninsert_final_newline = true\ntrim_trailing_whitespace = true\
|
|
2442
|
+
"./templates/_editorconfig.ejs": "[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]\ncharset = utf-8\nindent_size = 2\nindent_style = space\ninsert_final_newline = true\ntrim_trailing_whitespace = true\nend_of_line = lf\nmax_line_length = 100\n",
|
|
2442
2443
|
"./templates/_gitattributes": "* text=auto eol=lf\n",
|
|
2443
|
-
"./templates/_prettierrc.json.ejs": "
|
|
2444
|
+
"./templates/_prettierrc.json.ejs": "<%#\n The default style follows the one used in the vuejs/create-vue repository\n <https://github.com/vuejs/create-vue/blob/main/.prettierrc>\n%>\n{\n \"$schema\": \"https://json.schemastore.org/prettierrc\",\n \"semi\": false,\n \"singleQuote\": true,\n \"printWidth\": 100<%_ if (needsOxlint) { _%>,\n \"plugins\": [\n \"@prettier/plugin-oxc\"\n ]\n <%_ } _%>\n}\n",
|
|
2444
2445
|
"./templates/eslint.config.js.ejs": "<%_ for (const { importer } of configsBeforeVuePlugin) { _%>\n<%- importer %>\n<%_ } _%>\nimport { defineConfig, globalIgnores } from 'eslint/config'\nimport globals from 'globals'\nimport js from '@eslint/js'\nimport pluginVue from 'eslint-plugin-vue'\n<%_ for (const { importer } of configsAfterVuePlugin) { _%>\n<%- importer %>\n<%_ } _%>\n\nexport default defineConfig([\n {\n name: 'app/files-to-lint',\n files: ['**/*.{<%= fileExtensions.join(',') %>}'],\n },\n\n globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),\n\n {\n languageOptions: {\n globals: {\n ...globals.browser,\n },\n },\n },\n\n<%_ for (const { content } of configsBeforeVuePlugin) { _%>\n <%- content %><%# TODO: auto-indent if content's multi-line %>\n<%_ } _%>\n js.configs.recommended,\n ...pluginVue.configs['flat/essential'],\n<%_ for (const { content } of configsAfterVuePlugin) { _%>\n <%- content %><%# TODO: auto-indent if content's multi-line %>\n<%_ } _%>\n])\n",
|
|
2445
2446
|
"./templates/eslint.config.ts.ejs": "<%_ for (const { importer } of configsBeforeVuePlugin) { _%>\n<%- importer %>\n<%_ } _%>\nimport { globalIgnores } from 'eslint/config'\nimport { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'\nimport pluginVue from 'eslint-plugin-vue'\n<%_ for (const { importer } of configsAfterVuePlugin) { _%>\n<%- importer %>\n<%_ } _%>\n\n// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:\n// import { configureVueProject } from '@vue/eslint-config-typescript'\n// configureVueProject({ scriptLangs: ['ts', 'tsx'] })\n// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup\n\nexport default defineConfigWithVueTs(\n {\n name: 'app/files-to-lint',\n files: ['**/*.{<%= fileExtensions.join(',') %>}'],\n },\n\n globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),\n\n<%_ for (const { content } of configsBeforeVuePlugin) { _%>\n <%- content %><%# TODO: auto-indent if content's multi-line %>\n<%_ } _%>\n pluginVue.configs['flat/essential'],\n vueTsConfigs.recommended,\n<%_ for (const { content } of configsAfterVuePlugin) { _%>\n <%- content %><%# TODO: auto-indent if content's multi-line %>\n<%_ } _%>\n)\n"
|
|
2446
2447
|
};
|
|
@@ -2449,9 +2450,9 @@ function renderEjsFile(filePath, data) {
|
|
|
2449
2450
|
}
|
|
2450
2451
|
|
|
2451
2452
|
//#endregion
|
|
2452
|
-
//#region node_modules/.pnpm/@vue+create-eslint-config@0.
|
|
2453
|
+
//#region node_modules/.pnpm/@vue+create-eslint-config@0.12.1/node_modules/@vue/create-eslint-config/package.json
|
|
2453
2454
|
var name$1 = "@vue/create-eslint-config";
|
|
2454
|
-
var version$1 = "0.
|
|
2455
|
+
var version$1 = "0.12.1";
|
|
2455
2456
|
var description$1 = "Utility to setup ESLint in Vue.js projects.";
|
|
2456
2457
|
var type$1 = "module";
|
|
2457
2458
|
var main = "index.js";
|
|
@@ -2484,19 +2485,20 @@ var dependencies = {
|
|
|
2484
2485
|
"kolorist": "^1.8.0"
|
|
2485
2486
|
};
|
|
2486
2487
|
var devDependencies$2 = {
|
|
2487
|
-
"@eslint/js": "^9.
|
|
2488
|
-
"@
|
|
2488
|
+
"@eslint/js": "^9.33.0",
|
|
2489
|
+
"@prettier/plugin-oxc": "^0.0.4",
|
|
2490
|
+
"@types/node": "^22.17.1",
|
|
2489
2491
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
2490
|
-
"@vue/eslint-config-typescript": "^14.
|
|
2491
|
-
"eslint": "^9.
|
|
2492
|
-
"eslint-plugin-oxlint": "~1.
|
|
2493
|
-
"eslint-plugin-vue": "~10.
|
|
2494
|
-
"globals": "^16.
|
|
2495
|
-
"jiti": "^2.
|
|
2492
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
2493
|
+
"eslint": "^9.33.0",
|
|
2494
|
+
"eslint-plugin-oxlint": "~1.11.0",
|
|
2495
|
+
"eslint-plugin-vue": "~10.4.0",
|
|
2496
|
+
"globals": "^16.3.0",
|
|
2497
|
+
"jiti": "^2.5.1",
|
|
2496
2498
|
"npm-run-all2": "^8.0.4",
|
|
2497
|
-
"oxlint": "~1.
|
|
2498
|
-
"prettier": "3.
|
|
2499
|
-
"typescript": "~5.
|
|
2499
|
+
"oxlint": "~1.11.0",
|
|
2500
|
+
"prettier": "3.6.2",
|
|
2501
|
+
"typescript": "~5.9.0"
|
|
2500
2502
|
};
|
|
2501
2503
|
var package_default$2 = {
|
|
2502
2504
|
name: name$1,
|
|
@@ -2519,7 +2521,7 @@ var package_default$2 = {
|
|
|
2519
2521
|
};
|
|
2520
2522
|
|
|
2521
2523
|
//#endregion
|
|
2522
|
-
//#region node_modules/.pnpm/@vue+create-eslint-config@0.
|
|
2524
|
+
//#region node_modules/.pnpm/@vue+create-eslint-config@0.12.1/node_modules/@vue/create-eslint-config/index.js
|
|
2523
2525
|
const versionMap = package_default$2.devDependencies;
|
|
2524
2526
|
function createConfig({ styleGuide = "default", hasTypeScript = false, needsPrettier = false, needsOxlint = false, additionalConfigs = [] }) {
|
|
2525
2527
|
const pickDependencies = (keys) => pickKeysFromObject(versionMap, keys);
|
|
@@ -2561,6 +2563,7 @@ function createConfig({ styleGuide = "default", hasTypeScript = false, needsPret
|
|
|
2561
2563
|
});
|
|
2562
2564
|
pkg.scripts.format = "prettier --write src/";
|
|
2563
2565
|
}
|
|
2566
|
+
if (needsOxlint && needsPrettier) additionalConfigs.push({ devDependencies: pickDependencies(["@prettier/plugin-oxc"]) });
|
|
2564
2567
|
const configsBeforeVuePlugin = [], configsAfterVuePlugin = [];
|
|
2565
2568
|
for (const config of additionalConfigs) {
|
|
2566
2569
|
deepMerge(pkg.devDependencies, config.devDependencies ?? {});
|
|
@@ -2569,6 +2572,7 @@ function createConfig({ styleGuide = "default", hasTypeScript = false, needsPret
|
|
|
2569
2572
|
}
|
|
2570
2573
|
const templateData = {
|
|
2571
2574
|
styleGuide,
|
|
2575
|
+
needsOxlint,
|
|
2572
2576
|
needsPrettier,
|
|
2573
2577
|
fileExtensions,
|
|
2574
2578
|
configsBeforeVuePlugin,
|
|
@@ -2578,7 +2582,7 @@ function createConfig({ styleGuide = "default", hasTypeScript = false, needsPret
|
|
|
2578
2582
|
if (hasTypeScript) files$1["eslint.config.ts"] = renderEjsFile("./templates/eslint.config.ts.ejs", templateData);
|
|
2579
2583
|
else files$1["eslint.config.js"] = renderEjsFile("./templates/eslint.config.js.ejs", templateData);
|
|
2580
2584
|
if (needsPrettier) files$1[".prettierrc.json"] = renderEjsFile("./templates/_prettierrc.json.ejs", templateData);
|
|
2581
|
-
|
|
2585
|
+
files$1[".gitattributes"] = renderEjsFile("./templates/_gitattributes", {});
|
|
2582
2586
|
return {
|
|
2583
2587
|
pkg,
|
|
2584
2588
|
files: files$1
|
|
@@ -2618,9 +2622,9 @@ function deepMerge(target, obj) {
|
|
|
2618
2622
|
//#endregion
|
|
2619
2623
|
//#region template/eslint/package.json
|
|
2620
2624
|
var devDependencies$1 = {
|
|
2621
|
-
"@vitest/eslint-plugin": "^1.
|
|
2622
|
-
"eslint-plugin-cypress": "^5.1.
|
|
2623
|
-
"eslint-plugin-playwright": "^2.2.
|
|
2625
|
+
"@vitest/eslint-plugin": "^1.3.13",
|
|
2626
|
+
"eslint-plugin-cypress": "^5.1.1",
|
|
2627
|
+
"eslint-plugin-playwright": "^2.2.2"
|
|
2624
2628
|
};
|
|
2625
2629
|
var package_default$1 = { devDependencies: devDependencies$1 };
|
|
2626
2630
|
|
|
@@ -2731,10 +2735,10 @@ function emptyRouterConfig(rootDir, needsTypeScript) {
|
|
|
2731
2735
|
//#endregion
|
|
2732
2736
|
//#region package.json
|
|
2733
2737
|
var name = "create-vue";
|
|
2734
|
-
var version = "3.
|
|
2738
|
+
var version = "3.18.1";
|
|
2735
2739
|
var description = "🛠️ The recommended way to start a Vite-powered Vue project";
|
|
2736
2740
|
var type = "module";
|
|
2737
|
-
var packageManager = "pnpm@10.
|
|
2741
|
+
var packageManager = "pnpm@10.17.1";
|
|
2738
2742
|
var bin = { "create-vue": "bundle.js" };
|
|
2739
2743
|
var files = [
|
|
2740
2744
|
"locales",
|
|
@@ -2742,7 +2746,7 @@ var files = [
|
|
|
2742
2746
|
"template",
|
|
2743
2747
|
"!template/**/node_modules/.bin/*"
|
|
2744
2748
|
];
|
|
2745
|
-
var engines = { "node": "
|
|
2749
|
+
var engines = { "node": "^20.19.0 || >=22.12.0" };
|
|
2746
2750
|
var scripts = {
|
|
2747
2751
|
"prepare": "husky",
|
|
2748
2752
|
"format": "prettier --write .",
|
|
@@ -2768,19 +2772,19 @@ var devDependencies = {
|
|
|
2768
2772
|
"@clack/prompts": "^0.11.0",
|
|
2769
2773
|
"@tsconfig/node22": "^22.0.2",
|
|
2770
2774
|
"@types/eslint": "^9.6.1",
|
|
2771
|
-
"@types/node": "^22.
|
|
2775
|
+
"@types/node": "^22.18.6",
|
|
2772
2776
|
"@types/prompts": "^2.4.9",
|
|
2773
|
-
"@vue/create-eslint-config": "^0.
|
|
2774
|
-
"@vue/tsconfig": "^0.
|
|
2777
|
+
"@vue/create-eslint-config": "^0.12.1",
|
|
2778
|
+
"@vue/tsconfig": "^0.8.1",
|
|
2775
2779
|
"ejs": "^3.1.10",
|
|
2776
2780
|
"husky": "^9.1.7",
|
|
2777
|
-
"lint-staged": "^16.
|
|
2781
|
+
"lint-staged": "^16.2.3",
|
|
2778
2782
|
"picocolors": "^1.1.1",
|
|
2779
|
-
"prettier": "3.
|
|
2780
|
-
"rolldown": "1.0.0-beta.
|
|
2783
|
+
"prettier": "3.6.2",
|
|
2784
|
+
"rolldown": "1.0.0-beta.40",
|
|
2781
2785
|
"rollup-plugin-license": "^3.6.0",
|
|
2782
2786
|
"vitest": "^3.2.4",
|
|
2783
|
-
"zx": "^8.
|
|
2787
|
+
"zx": "^8.8.4"
|
|
2784
2788
|
};
|
|
2785
2789
|
var lint_staged = { "*.{js,ts,vue,json}": ["prettier --write"] };
|
|
2786
2790
|
var publishConfig = {
|
|
@@ -2810,8 +2814,8 @@ var package_default = {
|
|
|
2810
2814
|
|
|
2811
2815
|
//#endregion
|
|
2812
2816
|
//#region index.ts
|
|
2813
|
-
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
2814
|
-
var import_ejs = __toESM(require_ejs(), 1);
|
|
2817
|
+
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
2818
|
+
var import_ejs = /* @__PURE__ */ __toESM(require_ejs(), 1);
|
|
2815
2819
|
const language = await getLanguage(fileURLToPath(new URL("./locales", import.meta.url)));
|
|
2816
2820
|
const FEATURE_FLAGS = [
|
|
2817
2821
|
"default",
|
|
@@ -2884,7 +2888,10 @@ function canSkipEmptying(dir) {
|
|
|
2884
2888
|
if (!fs.existsSync(dir)) return true;
|
|
2885
2889
|
const files$1 = fs.readdirSync(dir);
|
|
2886
2890
|
if (files$1.length === 0) return true;
|
|
2887
|
-
if (files$1.length === 1 && files$1[0] === ".git")
|
|
2891
|
+
if (files$1.length === 1 && files$1[0] === ".git") {
|
|
2892
|
+
dotGitDirectoryState.hasDotGitDirectory = true;
|
|
2893
|
+
return true;
|
|
2894
|
+
}
|
|
2888
2895
|
return false;
|
|
2889
2896
|
}
|
|
2890
2897
|
function emptyDir(dir) {
|
|
@@ -2987,18 +2994,16 @@ async function init() {
|
|
|
2987
2994
|
packageName: defaultProjectName,
|
|
2988
2995
|
features: [],
|
|
2989
2996
|
e2eFramework: void 0,
|
|
2990
|
-
experimentFeatures: []
|
|
2997
|
+
experimentFeatures: [],
|
|
2998
|
+
needsBareboneTemplates: false
|
|
2991
2999
|
};
|
|
2992
3000
|
Ie(process.stdout.isTTY && process.stdout.getColorDepth() > 8 ? gradientBanner : defaultBanner);
|
|
2993
|
-
if (!targetDir) {
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
}));
|
|
3000
|
-
targetDir = result.projectName = result.packageName = _result.trim();
|
|
3001
|
-
}
|
|
3001
|
+
if (!targetDir) targetDir = result.projectName = result.packageName = (await unwrapPrompt(he({
|
|
3002
|
+
message: language.projectName.message,
|
|
3003
|
+
placeholder: defaultProjectName,
|
|
3004
|
+
defaultValue: defaultProjectName,
|
|
3005
|
+
validate: (value) => value.length === 0 || value.trim().length > 0 ? void 0 : language.projectName.invalidMessage
|
|
3006
|
+
}))).trim();
|
|
3002
3007
|
if (!canSkipEmptying(targetDir) && !forceOverwrite) {
|
|
3003
3008
|
result.shouldOverwrite = await unwrapPrompt(ye({
|
|
3004
3009
|
message: `${targetDir === "." ? language.shouldOverwrite.dirForPrompts.current : `${language.shouldOverwrite.dirForPrompts.target} "${targetDir}"`} ${language.shouldOverwrite.message}`,
|
|
@@ -3049,7 +3054,12 @@ async function init() {
|
|
|
3049
3054
|
required: false
|
|
3050
3055
|
}));
|
|
3051
3056
|
}
|
|
3052
|
-
|
|
3057
|
+
if (argv$1.bare) result.needsBareboneTemplates = true;
|
|
3058
|
+
else if (!isFeatureFlagsUsed) result.needsBareboneTemplates = await unwrapPrompt(ye({
|
|
3059
|
+
message: language.needsBareboneTemplates.message,
|
|
3060
|
+
initialValue: false
|
|
3061
|
+
}));
|
|
3062
|
+
const { features, experimentFeatures, needsBareboneTemplates } = result;
|
|
3053
3063
|
const needsTypeScript = argv$1.ts || argv$1.typescript || features.includes("typescript");
|
|
3054
3064
|
const needsJsx = argv$1.jsx || features.includes("jsx");
|
|
3055
3065
|
const needsRouter = argv$1.router || argv$1["vue-router"] || features.includes("router");
|
|
@@ -3138,8 +3148,7 @@ async function init() {
|
|
|
3138
3148
|
if (needsOxlint) render("config/oxlint");
|
|
3139
3149
|
if (needsPrettier) render("config/prettier");
|
|
3140
3150
|
if (needsRolldownVite) replaceVite();
|
|
3141
|
-
|
|
3142
|
-
render(`code/${codeTemplate}`);
|
|
3151
|
+
render(`code/${(needsTypeScript ? "typescript-" : "") + (needsRouter ? "router" : "default")}`);
|
|
3143
3152
|
if (needsPinia && needsRouter) render("entry/router-and-pinia");
|
|
3144
3153
|
else if (needsPinia) render("entry/pinia");
|
|
3145
3154
|
else if (needsRouter) render("entry/router");
|
|
@@ -3155,7 +3164,7 @@ async function init() {
|
|
|
3155
3164
|
fs.unlinkSync(filepath);
|
|
3156
3165
|
}
|
|
3157
3166
|
});
|
|
3158
|
-
if (
|
|
3167
|
+
if (needsBareboneTemplates) {
|
|
3159
3168
|
trimBoilerplate(root);
|
|
3160
3169
|
render("bare/base");
|
|
3161
3170
|
if (needsTypeScript) render("bare/typescript");
|
|
@@ -3177,7 +3186,7 @@ async function init() {
|
|
|
3177
3186
|
} else preOrderDirectoryTraverse(root, () => {}, (filepath) => {
|
|
3178
3187
|
if (filepath.endsWith(".ts")) fs.unlinkSync(filepath);
|
|
3179
3188
|
});
|
|
3180
|
-
if (
|
|
3189
|
+
if (needsBareboneTemplates) {
|
|
3181
3190
|
removeCSSImport(root, needsTypeScript, needsCypressCT);
|
|
3182
3191
|
if (needsRouter) emptyRouterConfig(root, needsTypeScript);
|
|
3183
3192
|
}
|
|
@@ -3203,9 +3212,9 @@ async function init() {
|
|
|
3203
3212
|
outroMessage += ` ${(0, import_picocolors.bold)((0, import_picocolors.green)(getCommand(packageManager$1, "install")))}\n`;
|
|
3204
3213
|
if (needsPrettier) outroMessage += ` ${(0, import_picocolors.bold)((0, import_picocolors.green)(getCommand(packageManager$1, "format")))}\n`;
|
|
3205
3214
|
outroMessage += ` ${(0, import_picocolors.bold)((0, import_picocolors.green)(getCommand(packageManager$1, "dev")))}\n`;
|
|
3206
|
-
outroMessage += `
|
|
3215
|
+
if (!dotGitDirectoryState.hasDotGitDirectory) outroMessage += `
|
|
3207
3216
|
${(0, import_picocolors.dim)("|")} ${language.infos.optionalGitCommand}
|
|
3208
|
-
|
|
3217
|
+
|
|
3209
3218
|
${(0, import_picocolors.bold)((0, import_picocolors.green)("git init && git add -A && git commit -m \"initial commit\""))}`;
|
|
3210
3219
|
Se(outroMessage);
|
|
3211
3220
|
}
|
|
@@ -3214,4 +3223,5 @@ init().catch((e$1) => {
|
|
|
3214
3223
|
process.exit(1);
|
|
3215
3224
|
});
|
|
3216
3225
|
|
|
3217
|
-
//#endregion
|
|
3226
|
+
//#endregion
|
|
3227
|
+
export { };
|
package/locales/en-US.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"needsOxlint": {
|
|
63
|
-
"message": "Oxlint
|
|
63
|
+
"message": "Oxlint"
|
|
64
64
|
},
|
|
65
65
|
"needsExperimental": {
|
|
66
66
|
"message": "Enable experimental features"
|
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
"needsRolldownVite": {
|
|
73
73
|
"message": "rolldown-vite (experimental)"
|
|
74
74
|
},
|
|
75
|
+
"needsBareboneTemplates": {
|
|
76
|
+
"message": "Skip all example code and start with a blank Vue project?"
|
|
77
|
+
},
|
|
75
78
|
"errors": {
|
|
76
79
|
"operationCancelled": "Operation cancelled"
|
|
77
80
|
},
|
package/locales/fr-FR.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"needsOxlint": {
|
|
63
|
-
"message": "Oxlint
|
|
63
|
+
"message": "Oxlint"
|
|
64
64
|
},
|
|
65
65
|
"needsExperimental": {
|
|
66
66
|
"message": "Activer les fonctionnalités expérimentales"
|
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
"needsRolldownVite": {
|
|
73
73
|
"message": "rolldown-vite (expérimental)"
|
|
74
74
|
},
|
|
75
|
+
"needsBareboneTemplates": {
|
|
76
|
+
"message": "Ignorer tout le code d'exemple et commencer avec un projet Vue vierge\u00a0?"
|
|
77
|
+
},
|
|
75
78
|
"errors": {
|
|
76
79
|
"operationCancelled": "Operation annulée"
|
|
77
80
|
},
|
package/locales/tr-TR.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"needsOxlint": {
|
|
63
|
-
"message": "Oxlint
|
|
63
|
+
"message": "Oxlint"
|
|
64
64
|
},
|
|
65
65
|
"needsExperimental": {
|
|
66
66
|
"message": "Deneysel özellikleri etkinleştir"
|
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
"needsRolldownVite": {
|
|
73
73
|
"message": "rolldown-vite (deneysel)"
|
|
74
74
|
},
|
|
75
|
+
"needsBareboneTemplates": {
|
|
76
|
+
"message": "Tüm örnek kodları atlayıp boş bir Vue projesi ile başlansın mı?"
|
|
77
|
+
},
|
|
75
78
|
"errors": {
|
|
76
79
|
"operationCancelled": "İşlem iptal edildi"
|
|
77
80
|
},
|
package/locales/zh-Hans.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"needsOxlint": {
|
|
63
|
-
"message": "Oxlint
|
|
63
|
+
"message": "Oxlint"
|
|
64
64
|
},
|
|
65
65
|
"needsExperimental": {
|
|
66
66
|
"message": "启用试验特性"
|
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
"needsRolldownVite": {
|
|
73
73
|
"message": "rolldown-vite(试验阶段)"
|
|
74
74
|
},
|
|
75
|
+
"needsBareboneTemplates": {
|
|
76
|
+
"message": "跳过所有示例代码,创建一个空白的 Vue 项目?"
|
|
77
|
+
},
|
|
75
78
|
"errors": {
|
|
76
79
|
"operationCancelled": "操作取消"
|
|
77
80
|
},
|
package/locales/zh-Hant.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"needsOxlint": {
|
|
63
|
-
"message": "Oxlint
|
|
63
|
+
"message": "Oxlint"
|
|
64
64
|
},
|
|
65
65
|
"needsExperimental": {
|
|
66
66
|
"message": "启用試驗性功能"
|
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
"needsRolldownVite": {
|
|
73
73
|
"message": "rolldown-vite(試驗性功能)"
|
|
74
74
|
},
|
|
75
|
+
"needsBareboneTemplates": {
|
|
76
|
+
"message": "跳過所有範例程式碼,建立一個空白的 Vue 專案?"
|
|
77
|
+
},
|
|
75
78
|
"errors": {
|
|
76
79
|
"operationCancelled": "操作取消"
|
|
77
80
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.1",
|
|
4
4
|
"description": "🛠️ The recommended way to start a Vite-powered Vue project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"!template/**/node_modules/.bin/*"
|
|
14
14
|
],
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": "
|
|
16
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"@clack/prompts": "^0.11.0",
|
|
31
31
|
"@tsconfig/node22": "^22.0.2",
|
|
32
32
|
"@types/eslint": "^9.6.1",
|
|
33
|
-
"@types/node": "^22.
|
|
33
|
+
"@types/node": "^22.18.6",
|
|
34
34
|
"@types/prompts": "^2.4.9",
|
|
35
|
-
"@vue/create-eslint-config": "^0.
|
|
36
|
-
"@vue/tsconfig": "^0.
|
|
35
|
+
"@vue/create-eslint-config": "^0.12.1",
|
|
36
|
+
"@vue/tsconfig": "^0.8.1",
|
|
37
37
|
"ejs": "^3.1.10",
|
|
38
38
|
"husky": "^9.1.7",
|
|
39
|
-
"lint-staged": "^16.
|
|
39
|
+
"lint-staged": "^16.2.3",
|
|
40
40
|
"picocolors": "^1.1.1",
|
|
41
|
-
"prettier": "3.
|
|
42
|
-
"rolldown": "1.0.0-beta.
|
|
41
|
+
"prettier": "3.6.2",
|
|
42
|
+
"rolldown": "1.0.0-beta.40",
|
|
43
43
|
"rollup-plugin-license": "^3.6.0",
|
|
44
44
|
"vitest": "^3.2.4",
|
|
45
|
-
"zx": "^8.
|
|
45
|
+
"zx": "^8.8.4"
|
|
46
46
|
},
|
|
47
47
|
"lint-staged": {
|
|
48
48
|
"*.{js,ts,vue,json}": [
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": true,
|
|
3
3
|
"type": "module",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
6
|
+
},
|
|
4
7
|
"scripts": {
|
|
5
8
|
"dev": "vite",
|
|
6
9
|
"build": "vite build",
|
|
7
10
|
"preview": "vite preview"
|
|
8
11
|
},
|
|
9
12
|
"dependencies": {
|
|
10
|
-
"vue": "^3.5.
|
|
13
|
+
"vue": "^3.5.22"
|
|
11
14
|
},
|
|
12
15
|
"devDependencies": {
|
|
13
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
14
|
-
"vite": "^7.
|
|
15
|
-
"vite-plugin-vue-devtools": "^
|
|
16
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
17
|
+
"vite": "^7.1.7",
|
|
18
|
+
"vite-plugin-vue-devtools": "^8.0.2"
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"cypress": "^
|
|
9
|
-
"start-server-and-test": "^2.
|
|
8
|
+
"cypress": "^15.3.0",
|
|
9
|
+
"start-server-and-test": "^2.1.2"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
},
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@nightwatch/vue": "^3.1.2",
|
|
7
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
8
|
-
"chromedriver": "^
|
|
9
|
-
"geckodriver": "^
|
|
7
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
8
|
+
"chromedriver": "^140.0.4",
|
|
9
|
+
"geckodriver": "^6.0.1",
|
|
10
10
|
"nightwatch": "^3.12.2",
|
|
11
11
|
"ts-node": "^10.9.2",
|
|
12
|
-
"vite": "^7.
|
|
12
|
+
"vite": "^7.1.7",
|
|
13
13
|
"vite-plugin-nightwatch": "^0.4.6"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"type-check": "vue-tsc --build"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@types/node": "^22.
|
|
8
|
+
"@types/node": "^22.18.6",
|
|
9
9
|
"npm-run-all2": "^8.0.4",
|
|
10
|
-
"typescript": "~5.
|
|
11
|
-
"vue-tsc": "^
|
|
10
|
+
"typescript": "~5.9.0",
|
|
11
|
+
"vue-tsc": "^3.1.0"
|
|
12
12
|
}
|
|
13
13
|
}
|