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