mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:12:02 +00:00
This runs playwright tests with bazel. This changes how the app is served in the tests, specifically playwright will intercept all network calls to the local server and serve the static assets directly or serve root index.html file if nothing is matched. --------- Co-authored-by: bahrmichael <michael.bahr@sourcegraph.com> Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr> Co-authored-by: Michael Bahr <1830132+bahrmichael@users.noreply.github.com> Co-authored-by: Jean-Hadrien Chabran <jean-hadrien.chabran@sourcegraph.com> Co-authored-by: Camden Cheek <camden@ccheek.com>
58 lines
2.8 KiB
JSON
58 lines
2.8 KiB
JSON
{
|
|
"private": true,
|
|
"name": "@sourcegraph/web",
|
|
"version": "1.10.1",
|
|
"description": "The Sourcegraph web app",
|
|
"scripts": {
|
|
"build-ts": "tsc --build tsconfig.json --emitDeclarationOnly",
|
|
"test": "vitest",
|
|
"task:mocha": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha",
|
|
"test:regression": "pnpm run task:mocha './src/regression/**/*.test.ts' --exit",
|
|
"test:regression:codeintel": "pnpm task:mocha ./src/regression/codeintel.test.ts",
|
|
"test:regression:config-settings": "pnpm task:mocha ./src/regression/config-settings.test.ts",
|
|
"test:regression:core": "pnpm task:mocha ./src/regression/core.test.ts",
|
|
"test:regression:init": "pnpm task:mocha ./src/regression/init.test.ts",
|
|
"test:regression:integrations": "pnpm task:mocha ./src/regression/integrations.test.ts",
|
|
"test:regression:onboarding": "pnpm task:mocha ./src/regression/onboarding.test.ts",
|
|
"test:regression:search": "pnpm task:mocha ./src/regression/search.test.ts",
|
|
"storybook": "STORIES_GLOB='client/web/src/**/*.story.tsx' pnpm --filter @sourcegraph/storybook run start",
|
|
"serve:dev": "ts-node-transpile-only --project ./dev/tsconfig.json ./dev/server/development.server.ts",
|
|
"serve:prod": "ts-node-transpile-only --project ./dev/tsconfig.json ./dev/server/production.server.ts",
|
|
"generate": "pnpm -w run generate",
|
|
"dev": "ts-node -T dev/esbuild/server.ts",
|
|
"build": "pnpm run generate && pnpm run clean && ts-node -T dev/esbuild/build.ts",
|
|
"clean": "rm -r dist/chunks dist/main-* dist/embedMain-*",
|
|
"watch": "WATCH=1 pnpm run --silent build",
|
|
"lint": "pnpm lint:js && pnpm:lint:css",
|
|
"lint:js": "NODE_OPTIONS=\"--max_old_space_size=16192\" eslint --cache '**/*.[tj]s?(x)'",
|
|
"lint:css": "stylelint 'src/**/*.scss' --quiet",
|
|
"bundlesize": "pnpm exec bundlesize --config=./bundlesize.config.js"
|
|
},
|
|
"devDependencies": {
|
|
"@bazel/concatjs": "^5.8.1",
|
|
"@bazel/runfiles": "^5.8.1",
|
|
"@sourcegraph/build-config": "workspace:*",
|
|
"@sourcegraph/extension-api-types": "workspace:*",
|
|
"@sourcegraph/storybook": "workspace:*",
|
|
"@sourcegraph/testing": "workspace:*",
|
|
"@types/node": "^20.11.19",
|
|
"@types/tmp": "^0.2.6",
|
|
"tmp": "^0.2.3",
|
|
"true-case-path": "^2.2.1"
|
|
},
|
|
"dependencies": {
|
|
"@sourcegraph/branded": "workspace:*",
|
|
"@sourcegraph/client-api": "workspace:*",
|
|
"@sourcegraph/codeintellify": "workspace:*",
|
|
"@sourcegraph/cody-shared": "workspace:*",
|
|
"@sourcegraph/cody-ui": "workspace:*",
|
|
"@sourcegraph/common": "workspace:*",
|
|
"@sourcegraph/http-client": "workspace:*",
|
|
"@sourcegraph/observability-client": "workspace:*",
|
|
"@sourcegraph/schema": "workspace:*",
|
|
"@sourcegraph/shared": "workspace:*",
|
|
"@sourcegraph/telemetry": "^0.16.0",
|
|
"@sourcegraph/wildcard": "workspace:*",
|
|
"mermaid": "^10.9.1"
|
|
}
|
|
} |