create-vue 3.8.0 → 3.9.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/locales/en-US.json +3 -1
- package/locales/fr-FR.json +3 -1
- package/locales/tr-TR.json +64 -0
- package/locales/zh-CN.json +3 -1
- package/outfile.cjs +39 -15
- package/package.json +10 -8
- package/template/base/_gitignore +2 -0
- package/template/base/jsconfig.json +8 -0
- package/template/base/node_modules/.bin/vite +2 -2
- package/template/base/package.json +4 -3
- package/template/base/src/assets/main.css +1 -1
- package/template/config/cypress/cypress.config.js +2 -2
- package/template/config/cypress/node_modules/.bin/cypress +2 -2
- package/template/config/cypress/node_modules/.bin/server-test +2 -2
- package/template/config/cypress/node_modules/.bin/start-server-and-test +2 -2
- package/template/config/cypress/node_modules/.bin/start-test +2 -2
- package/template/config/cypress/package.json +2 -2
- package/template/config/cypress-ct/cypress.config.js +2 -2
- package/template/config/cypress-ct/node_modules/.bin/cypress +2 -2
- package/template/config/cypress-ct/package.json +2 -2
- package/template/config/jsx/node_modules/.bin/browserslist +4 -4
- package/template/config/jsx/node_modules/.bin/vite +2 -2
- package/template/config/jsx/package.json +3 -3
- package/template/config/nightwatch/nightwatch/nightwatch.d.ts +4 -2
- package/template/config/nightwatch/{nightwatch.conf.js → nightwatch.conf.cjs} +5 -4
- package/template/config/nightwatch/node_modules/.bin/browserslist +4 -4
- package/template/config/nightwatch/node_modules/.bin/chromedriver +2 -2
- package/template/config/nightwatch/node_modules/.bin/geckodriver +2 -2
- package/template/config/nightwatch/node_modules/.bin/nightwatch +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node-cwd +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node-esm +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node-script +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-node-transpile-only +2 -2
- package/template/config/nightwatch/node_modules/.bin/ts-script +2 -2
- package/template/config/nightwatch/node_modules/.bin/vite +4 -4
- package/template/config/nightwatch/package.json +9 -9
- package/template/config/nightwatch/tests/e2e/example.js +1 -4
- package/template/config/nightwatch-ct/package.json +5 -2
- package/template/config/pinia/package.json +1 -1
- package/template/config/playwright/e2e/vue.spec.js +1 -1
- package/template/config/playwright/node_modules/.bin/playwright +2 -2
- package/template/config/playwright/package.json +1 -1
- package/template/config/playwright/playwright.config.js +5 -8
- package/template/config/router/package.json +1 -1
- package/template/config/typescript/node_modules/.bin/tsc +2 -2
- package/template/config/typescript/node_modules/.bin/tsserver +2 -2
- package/template/config/typescript/node_modules/.bin/vue-tsc +2 -2
- package/template/config/typescript/package.json +4 -4
- package/template/config/vitest/node_modules/.bin/vitest +2 -2
- package/template/config/vitest/package.json +4 -4
- package/template/tsconfig/base/package.json +1 -1
- package/template/tsconfig/base/tsconfig.app.json +1 -0
- package/template/tsconfig/base/tsconfig.node.json +1 -0
- package/template/tsconfig/nightwatch/nightwatch/tsconfig.json +3 -1
- package/template/tsconfig/nightwatch-ct/tsconfig.app.json +1 -0
- package/template/tsconfig/vitest/package.json +1 -4
- package/template/config/cypress/cypress.config.ts +0 -8
- package/template/config/cypress-ct/cypress.config.ts +0 -15
- package/template/config/nightwatch/nightwatch/custom-assertions/elementHasCount.js +0 -45
- package/template/config/nightwatch/nightwatch/custom-assertions/elementHasCount.ts +0 -43
- package/template/config/nightwatch/nightwatch/custom-commands/strictClick.js +0 -19
- package/template/config/nightwatch/nightwatch/custom-commands/strictClick.ts +0 -18
- package/template/config/nightwatch/nightwatch/globals.js +0 -23
- package/template/config/nightwatch/node_modules/.bin/wait-on +0 -17
- package/template/config/playwright/playwright.config.ts +0 -112
- package/template/tsconfig/base/tsconfig.json +0 -11
- package/template/tsconfig/cypress-ct/package.json +0 -5
- package/template/tsconfig/cypress-ct/tsconfig.json +0 -14
- package/template/tsconfig/nightwatch/tsconfig.json +0 -17
- package/template/tsconfig/nightwatch-ct/tsconfig.json +0 -14
- package/template/tsconfig/vitest/tsconfig.json +0 -14
package/locales/en-US.json
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"message": "is not empty. Remove existing files and continue?"
|
|
11
11
|
},
|
|
12
12
|
"packageName": {
|
|
13
|
-
"message": "Package name:"
|
|
13
|
+
"message": "Package name:",
|
|
14
|
+
"invalidMessage": "Invalid package.json name"
|
|
14
15
|
},
|
|
15
16
|
"needsTypeScript": {
|
|
16
17
|
"message": "Add TypeScript?"
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
},
|
|
30
31
|
"needsE2eTesting": {
|
|
31
32
|
"message": "Add an End-to-End Testing Solution?",
|
|
33
|
+
"hint": "- Use arrow-keys. Return to submit.",
|
|
32
34
|
"selectOptions": {
|
|
33
35
|
"negative": { "title": "No" },
|
|
34
36
|
"cypress": {
|
package/locales/fr-FR.json
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"message": "n'est pas vide. Supprimer les fichiers existants et continuer\u00a0?"
|
|
11
11
|
},
|
|
12
12
|
"packageName": {
|
|
13
|
-
"message": "Nom du package\u00a0:"
|
|
13
|
+
"message": "Nom du package\u00a0:",
|
|
14
|
+
"invalidMessage": "Le nom du package.json est invalide"
|
|
14
15
|
},
|
|
15
16
|
"needsTypeScript": {
|
|
16
17
|
"message": "Ajouter TypeScript\u00a0?"
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
},
|
|
30
31
|
"needsE2eTesting": {
|
|
31
32
|
"message": "Ajouter une solution de test de bout en bout (e2e)\u00a0?",
|
|
33
|
+
"hint": "- Utilisez les flèches et appuyez sur la touche Entrée pour valider",
|
|
32
34
|
"selectOptions": {
|
|
33
35
|
"negative": { "title": "Non" },
|
|
34
36
|
"cypress": {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectName": {
|
|
3
|
+
"message": "Proje adı:"
|
|
4
|
+
},
|
|
5
|
+
"shouldOverwrite": {
|
|
6
|
+
"dirForPrompts": {
|
|
7
|
+
"current": "Geçerli dizin",
|
|
8
|
+
"target": "Hedef dizin"
|
|
9
|
+
},
|
|
10
|
+
"message": "boş değil. Varolan dosyalar silinip devam edilsin mi?"
|
|
11
|
+
},
|
|
12
|
+
"packageName": {
|
|
13
|
+
"message": "Paket adı:",
|
|
14
|
+
"invalidMessage": "Geçersiz package.json adı"
|
|
15
|
+
},
|
|
16
|
+
"needsTypeScript": {
|
|
17
|
+
"message": "TypeScript Eklensin mi?"
|
|
18
|
+
},
|
|
19
|
+
"needsJsx": {
|
|
20
|
+
"message": "JSX Desteği Eklensin mi?"
|
|
21
|
+
},
|
|
22
|
+
"needsRouter": {
|
|
23
|
+
"message": "Tek Sayfa Uygulama geliştirilmesi için Vue Router eklensin mi?"
|
|
24
|
+
},
|
|
25
|
+
"needsPinia": {
|
|
26
|
+
"message": "Durum yönetimi için Pinia eklensin mi?"
|
|
27
|
+
},
|
|
28
|
+
"needsVitest": {
|
|
29
|
+
"message": "Birim Testi için Vitest eklensin mi?"
|
|
30
|
+
},
|
|
31
|
+
"needsE2eTesting": {
|
|
32
|
+
"message": "Uçtan Uca Test Çözümü Eklensin mi?",
|
|
33
|
+
"hint": "- Ok tuşlarını kullan. Gönderime geri dön.",
|
|
34
|
+
"selectOptions": {
|
|
35
|
+
"negative": { "title": "Hayır" },
|
|
36
|
+
"cypress": {
|
|
37
|
+
"title": "Cypress",
|
|
38
|
+
"desc": "ayrıca Cypress Bileşen Testi ile birim testini de destekler"
|
|
39
|
+
},
|
|
40
|
+
"nightwatch": {
|
|
41
|
+
"title": "Nightwatch",
|
|
42
|
+
"desc": "ayrıca Nightwatch Bileşen Testi ile birim testini de destekler"
|
|
43
|
+
},
|
|
44
|
+
"playwright": { "title": "Playwright" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"needsEslint": {
|
|
48
|
+
"message": "Kod kalitesi için ESLint eklensin mi?"
|
|
49
|
+
},
|
|
50
|
+
"needsPrettier": {
|
|
51
|
+
"message": "Kod formatlama için Prettier eklensin mi?"
|
|
52
|
+
},
|
|
53
|
+
"errors": {
|
|
54
|
+
"operationCancelled": "İşlem iptal edildi"
|
|
55
|
+
},
|
|
56
|
+
"defaultToggleOptions": {
|
|
57
|
+
"active": "Evet",
|
|
58
|
+
"inactive": "Hayır"
|
|
59
|
+
},
|
|
60
|
+
"infos": {
|
|
61
|
+
"scaffolding": "İskele projesi",
|
|
62
|
+
"done": "Tamamlandı. Şimdi bunu çalıştır:"
|
|
63
|
+
}
|
|
64
|
+
}
|
package/locales/zh-CN.json
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"message": "非空,是否覆盖?"
|
|
11
11
|
},
|
|
12
12
|
"packageName": {
|
|
13
|
-
"message": "请输入包名称:"
|
|
13
|
+
"message": "请输入包名称:",
|
|
14
|
+
"invalidMessage": "无效的 package.json 名称"
|
|
14
15
|
},
|
|
15
16
|
"needsTypeScript": {
|
|
16
17
|
"message": "是否使用 TypeScript 语法?"
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
},
|
|
30
31
|
"needsE2eTesting": {
|
|
31
32
|
"message": "是否要引入一款端到端(End to End)测试工具?",
|
|
33
|
+
"hint": "- 使用箭头切换按Enter确认。",
|
|
32
34
|
"selectOptions": {
|
|
33
35
|
"negative": { "title": "不需要" },
|
|
34
36
|
"cypress": {
|
package/outfile.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/*! create-vue v3.
|
|
2
|
+
/*! create-vue v3.9.1 | MIT */
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -4358,9 +4358,8 @@ ${commandFor("lint")}
|
|
|
4358
4358
|
var fs3 = __toESM(require("fs"), 1);
|
|
4359
4359
|
var path3 = __toESM(require("path"), 1);
|
|
4360
4360
|
function getLocale() {
|
|
4361
|
-
const shellLocale =
|
|
4362
|
-
process.env.
|
|
4363
|
-
process.env.LC_MESSAGES || process.env.LANG || // TODO: Windows support if needed, could consider https://www.npmjs.com/package/os-locale
|
|
4361
|
+
const shellLocale = process.env.LC_ALL || // POSIX locale environment variables
|
|
4362
|
+
process.env.LC_MESSAGES || process.env.LANG || Intl.DateTimeFormat().resolvedOptions().locale || // Built-in ECMA-402 support
|
|
4364
4363
|
"en-US";
|
|
4365
4364
|
const locale = shellLocale.split(".")[0].replace("_", "-");
|
|
4366
4365
|
return locale;
|
|
@@ -4587,8 +4586,9 @@ function renderEslint(rootDir, { needsTypeScript, needsCypress, needsCypressCT,
|
|
|
4587
4586
|
{
|
|
4588
4587
|
files: needsCypressCT ? [
|
|
4589
4588
|
"**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}",
|
|
4590
|
-
"cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}"
|
|
4591
|
-
|
|
4589
|
+
"cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}",
|
|
4590
|
+
"cypress/support/**/*.{js,ts,jsx,tsx}"
|
|
4591
|
+
] : ["cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}", "cypress/support/**/*.{js,ts,jsx,tsx}"],
|
|
4592
4592
|
extends: ["plugin:cypress/recommended"]
|
|
4593
4593
|
}
|
|
4594
4594
|
];
|
|
@@ -4627,13 +4627,6 @@ function renderEslint(rootDir, { needsTypeScript, needsCypress, needsCypressCT,
|
|
|
4627
4627
|
fs4.writeFileSync(extensionsJsonPath, JSON.stringify(existingExtensions, null, 2) + "\n", "utf-8");
|
|
4628
4628
|
}
|
|
4629
4629
|
|
|
4630
|
-
// utils/filterList.ts
|
|
4631
|
-
var FILES_TO_FILTER = [
|
|
4632
|
-
"nightwatch.e2e.conf.js",
|
|
4633
|
-
"nightwatch.component.conf.js",
|
|
4634
|
-
"globals.js"
|
|
4635
|
-
];
|
|
4636
|
-
|
|
4637
4630
|
// index.ts
|
|
4638
4631
|
function isValidPackageName(projectName) {
|
|
4639
4632
|
return /^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(projectName);
|
|
@@ -4722,7 +4715,7 @@ async function init() {
|
|
|
4722
4715
|
type: () => isValidPackageName(targetDir) ? null : "text",
|
|
4723
4716
|
message: language.packageName.message,
|
|
4724
4717
|
initial: () => toValidPackageName(targetDir),
|
|
4725
|
-
validate: (dir) => isValidPackageName(dir) ||
|
|
4718
|
+
validate: (dir) => isValidPackageName(dir) || language.packageName.invalidMessage
|
|
4726
4719
|
},
|
|
4727
4720
|
{
|
|
4728
4721
|
name: "needsTypeScript",
|
|
@@ -4767,6 +4760,7 @@ async function init() {
|
|
|
4767
4760
|
{
|
|
4768
4761
|
name: "needsE2eTesting",
|
|
4769
4762
|
type: () => isFeatureFlagsUsed ? null : "select",
|
|
4763
|
+
hint: language.needsE2eTesting.hint,
|
|
4770
4764
|
message: language.needsE2eTesting.message,
|
|
4771
4765
|
initial: 0,
|
|
4772
4766
|
choices: (prev, answers) => [
|
|
@@ -4887,24 +4881,54 @@ ${language.infos.scaffolding} ${root}...`);
|
|
|
4887
4881
|
if (needsTypeScript) {
|
|
4888
4882
|
render("config/typescript");
|
|
4889
4883
|
render("tsconfig/base");
|
|
4884
|
+
const rootTsConfig = {
|
|
4885
|
+
// It doesn't target any specific files because they are all configured in the referenced ones.
|
|
4886
|
+
files: [],
|
|
4887
|
+
// All templates contain at least a `.node` and a `.app` tsconfig.
|
|
4888
|
+
references: [
|
|
4889
|
+
{
|
|
4890
|
+
path: "./tsconfig.node.json"
|
|
4891
|
+
},
|
|
4892
|
+
{
|
|
4893
|
+
path: "./tsconfig.app.json"
|
|
4894
|
+
}
|
|
4895
|
+
]
|
|
4896
|
+
};
|
|
4890
4897
|
if (needsCypress) {
|
|
4891
4898
|
render("tsconfig/cypress");
|
|
4899
|
+
rootTsConfig.compilerOptions = {
|
|
4900
|
+
module: "NodeNext"
|
|
4901
|
+
};
|
|
4892
4902
|
}
|
|
4893
4903
|
if (needsCypressCT) {
|
|
4894
4904
|
render("tsconfig/cypress-ct");
|
|
4905
|
+
rootTsConfig.references.push({
|
|
4906
|
+
path: "./tsconfig.cypress-ct.json"
|
|
4907
|
+
});
|
|
4895
4908
|
}
|
|
4896
4909
|
if (needsPlaywright) {
|
|
4897
4910
|
render("tsconfig/playwright");
|
|
4898
4911
|
}
|
|
4899
4912
|
if (needsVitest) {
|
|
4900
4913
|
render("tsconfig/vitest");
|
|
4914
|
+
rootTsConfig.references.push({
|
|
4915
|
+
path: "./tsconfig.vitest.json"
|
|
4916
|
+
});
|
|
4901
4917
|
}
|
|
4902
4918
|
if (needsNightwatch) {
|
|
4903
4919
|
render("tsconfig/nightwatch");
|
|
4920
|
+
rootTsConfig.references.push({
|
|
4921
|
+
path: "./nightwatch/tsconfig.json"
|
|
4922
|
+
});
|
|
4904
4923
|
}
|
|
4905
4924
|
if (needsNightwatchCT) {
|
|
4906
4925
|
render("tsconfig/nightwatch-ct");
|
|
4907
4926
|
}
|
|
4927
|
+
fs5.writeFileSync(
|
|
4928
|
+
path5.resolve(root, "tsconfig.json"),
|
|
4929
|
+
JSON.stringify(rootTsConfig, null, 2) + "\n",
|
|
4930
|
+
"utf-8"
|
|
4931
|
+
);
|
|
4908
4932
|
}
|
|
4909
4933
|
if (needsEslint) {
|
|
4910
4934
|
renderEslint(root, { needsTypeScript, needsCypress, needsCypressCT, needsPrettier });
|
|
@@ -4944,7 +4968,7 @@ ${language.infos.scaffolding} ${root}...`);
|
|
|
4944
4968
|
() => {
|
|
4945
4969
|
},
|
|
4946
4970
|
(filepath) => {
|
|
4947
|
-
if (filepath.endsWith(".js")
|
|
4971
|
+
if (filepath.endsWith(".js")) {
|
|
4948
4972
|
const tsFilePath = filepath.replace(/\.js$/, ".ts");
|
|
4949
4973
|
if (fs5.existsSync(tsFilePath)) {
|
|
4950
4974
|
fs5.unlinkSync(filepath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "An easy way to start a Vue project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -27,21 +27,22 @@
|
|
|
27
27
|
"homepage": "https://github.com/vuejs/create-vue#readme",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@tsconfig/node18": "^18.2.2",
|
|
30
|
-
"@types/eslint": "^8.44.
|
|
31
|
-
"@types/node": "^18.
|
|
32
|
-
"@types/prompts": "^2.4.
|
|
30
|
+
"@types/eslint": "^8.44.9",
|
|
31
|
+
"@types/node": "^18.19.3",
|
|
32
|
+
"@types/prompts": "^2.4.9",
|
|
33
33
|
"@vue/create-eslint-config": "^0.3.2",
|
|
34
|
-
"@vue/tsconfig": "^0.
|
|
34
|
+
"@vue/tsconfig": "^0.5.0",
|
|
35
35
|
"ejs": "^3.1.9",
|
|
36
36
|
"esbuild": "^0.18.20",
|
|
37
37
|
"esbuild-plugin-license": "^1.2.2",
|
|
38
38
|
"husky": "^8.0.3",
|
|
39
39
|
"kolorist": "^1.8.0",
|
|
40
|
-
"lint-staged": "^15.0
|
|
40
|
+
"lint-staged": "^15.2.0",
|
|
41
41
|
"minimist": "^1.2.8",
|
|
42
42
|
"npm-run-all2": "^6.1.1",
|
|
43
|
-
"prettier": "^3.
|
|
43
|
+
"prettier": "^3.1.1",
|
|
44
44
|
"prompts": "^2.4.2",
|
|
45
|
+
"vitest": "^1.0.4",
|
|
45
46
|
"zx": "^7.2.3"
|
|
46
47
|
},
|
|
47
48
|
"lint-staged": {
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"build": "zx ./scripts/build.mjs",
|
|
55
56
|
"snapshot": "zx ./scripts/snapshot.mjs",
|
|
56
57
|
"pretest": "run-s build snapshot",
|
|
57
|
-
"test": "zx ./scripts/test.mjs"
|
|
58
|
+
"test": "zx ./scripts/test.mjs",
|
|
59
|
+
"test:unit": "vitest"
|
|
58
60
|
}
|
|
59
61
|
}
|
package/template/base/_gitignore
CHANGED
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules/vite/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules/vite/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules/vite/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules/vite/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": true,
|
|
3
|
+
"type": "module",
|
|
3
4
|
"scripts": {
|
|
4
5
|
"dev": "vite",
|
|
5
6
|
"build": "vite build",
|
|
6
7
|
"preview": "vite preview"
|
|
7
8
|
},
|
|
8
9
|
"dependencies": {
|
|
9
|
-
"vue": "^3.3.
|
|
10
|
+
"vue": "^3.3.11"
|
|
10
11
|
},
|
|
11
12
|
"devDependencies": {
|
|
12
|
-
"@vitejs/plugin-vue": "^4.
|
|
13
|
-
"vite": "^
|
|
13
|
+
"@vitejs/plugin-vue": "^4.5.2",
|
|
14
|
+
"vite": "^5.0.10"
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules/cypress/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules/cypress/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules/cypress/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules/cypress/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../cypress/bin/cypress" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../start-server-and-test/src/bin/start.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../start-server-and-test/src/bin/start.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/src/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules/start-server-and-test/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/start-server-and-test@2.0.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../start-server-and-test/src/bin/start.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules/cypress/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules/cypress/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules/cypress/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules/cypress/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/cypress@13.6.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../cypress/bin/cypress" "$@"
|
|
@@ -6,12 +6,12 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.22.1/node_modules/browserslist/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.22.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.22.1/node_modules/browserslist/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.22.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.22.1/node_modules/browserslist/cli.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/browserslist@4.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/browserslist@4.22.1/node_modules/browserslist/cli.js" "$@"
|
|
17
17
|
fi
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules/vite/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules/vite/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules/vite/bin/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules/vite/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/vite@5.0.10_@types+node@18.19.3/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
@@ -2,10 +2,12 @@ import { NightwatchCustomAssertions, NightwatchCustomCommands } from 'nightwatch
|
|
|
2
2
|
|
|
3
3
|
declare module 'nightwatch' {
|
|
4
4
|
interface NightwatchCustomAssertions {
|
|
5
|
-
|
|
5
|
+
// Add your custom assertions' types here
|
|
6
|
+
// elementHasCount: (selector: string, count: number) => NightwatchBrowser
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
interface NightwatchCustomCommands {
|
|
9
|
-
|
|
10
|
+
// Add your custom commands' types here
|
|
11
|
+
// strictClick: (selector: string) => NightwatchBrowser
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -21,19 +21,20 @@ module.exports = {
|
|
|
21
21
|
page_objects_path: [],
|
|
22
22
|
|
|
23
23
|
// See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html
|
|
24
|
-
custom_commands_path: [
|
|
24
|
+
custom_commands_path: [],
|
|
25
25
|
|
|
26
26
|
// See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-assertions.html
|
|
27
|
-
custom_assertions_path: [
|
|
27
|
+
custom_assertions_path: [],
|
|
28
28
|
|
|
29
29
|
// See https://nightwatchjs.org/guide/extending-nightwatch/adding-plugins.html
|
|
30
30
|
plugins: ['@nightwatch/vue'],
|
|
31
31
|
|
|
32
32
|
// See https://nightwatchjs.org/guide/concepts/test-globals.html#external-test-globals
|
|
33
|
-
globals_path: '
|
|
33
|
+
globals_path: '',
|
|
34
34
|
|
|
35
35
|
vite_dev_server: {
|
|
36
|
-
start_vite:
|
|
36
|
+
start_vite: true,
|
|
37
|
+
port: process.env.CI ? 4173 : 5173
|
|
37
38
|
},
|
|
38
39
|
|
|
39
40
|
webdriver: {},
|
|
@@ -6,12 +6,12 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.
|
|
9
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.22.1/node_modules/browserslist/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.22.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.
|
|
11
|
+
export NODE_PATH="/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.22.1/node_modules/browserslist/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/browserslist@4.22.1/node_modules:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.22.1/node_modules/browserslist/cli.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/browserslist@4.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/browserslist@4.22.1/node_modules/browserslist/cli.js" "$@"
|
|
17
17
|
fi
|