fix: bootstrap cloud web deps for workbench e2e
This commit is contained in:
@@ -5,8 +5,8 @@ import path from "node:path";
|
|||||||
|
|
||||||
const webRelativePath = path.join("web", "hwlab-cloud-web");
|
const webRelativePath = path.join("web", "hwlab-cloud-web");
|
||||||
const sharedWebDepsName = "hwlab-cloud-web-deps";
|
const sharedWebDepsName = "hwlab-cloud-web-deps";
|
||||||
const requiredWebPackages = ["vite", "vue", "@vitejs/plugin-vue", "vue-tsc", "vitest"];
|
const requiredWebPackages = ["vite", "vue", "@vitejs/plugin-vue", "vue-tsc", "vitest", "@playwright/test"];
|
||||||
const requiredWebBins = [path.join(".bin", "vite"), path.join(".bin", "vue-tsc")];
|
const requiredWebBins = [path.join(".bin", "vite"), path.join(".bin", "vue-tsc"), path.join(".bin", "playwright")];
|
||||||
const allowedArgs = new Set(["--web", "--json", "--quiet", "--help"]);
|
const allowedArgs = new Set(["--web", "--json", "--quiet", "--help"]);
|
||||||
|
|
||||||
const args = process.argv.slice(2);
|
const args = process.argv.slice(2);
|
||||||
|
|||||||
@@ -4,15 +4,16 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"deps": "node ../../scripts/worktree-deps.mjs --web",
|
||||||
"check": "bun run scripts/check.ts && bun run scripts/tsc-check.ts && bun test scripts",
|
"dev": "bun run deps --quiet && vite",
|
||||||
"check:tsc": "bun run scripts/tsc-check.ts",
|
"check": "bun run deps --quiet && bun run scripts/check.ts && bun run scripts/tsc-check.ts && bun test scripts",
|
||||||
"check:tsc-strict": "bun run scripts/tsc-check.ts --strict",
|
"check:tsc": "bun run deps --quiet && bun run scripts/tsc-check.ts",
|
||||||
"typecheck": "vue-tsc --noEmit",
|
"check:tsc-strict": "bun run deps --quiet && bun run scripts/tsc-check.ts --strict",
|
||||||
"build": "bun run scripts/build.ts",
|
"typecheck": "bun run deps --quiet && vue-tsc --noEmit",
|
||||||
"test": "vitest run",
|
"build": "bun run deps --quiet && bun run scripts/build.ts",
|
||||||
"e2e:workbench": "bun run build && bunx playwright test -c playwright.workbench.config.ts",
|
"test": "bun run deps --quiet && vitest run",
|
||||||
"e2e:workbench:report": "bunx playwright show-report .state/workbench-e2e/html-report"
|
"e2e:workbench": "bun run deps --quiet && bun run build && bunx playwright test -c playwright.workbench.config.ts",
|
||||||
|
"e2e:workbench:report": "bun run deps --quiet && bunx playwright show-report .state/workbench-e2e/html-report"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vueuse/core": "^10.7.0",
|
"@vueuse/core": "^10.7.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user