sourcegraph/client/shared/dev/BUILD.bazel
Quinn Slack dc478c82dd
chore(ci): remove Percy visual tests (#63515)
These are more frequently erroneous than helpful.

See
https://sourcegraph.slack.com/archives/C04MYFW01NV/p1719209633005499.

This eliminates a source of frustration and flakiness in pull requests
and removes a lot of code and Bazel complexity.

If we want to revive them, we can revert this commit. Note that
`client/web-sveltekit` does not use Percy, and if we want it to, we can
always revert this commit or start over from scratch if that's easier.


<!-- PR description tips:
https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e
-->

## Test plan

CI

Co-authored-by: Jean-Hadrien Chabran <jean-hadrien.chabran@sourcegraph.com>
2024-06-27 16:20:06 +02:00

72 lines
1.8 KiB
Python

load("@aspect_rules_js//js:defs.bzl", "js_binary", "js_library")
load("//dev:defs.bzl", "ts_binary")
# gazelle:ignore
# dev/ does not contain a src/
# gazelle:js_files **/*.{ts,tsx}
ts_binary(
name = "generate_schema",
data = [
"//:node_modules/json-schema-to-typescript",
],
entry_point = "generateSchema.ts",
visibility = ["//client/shared:__pkg__"],
)
js_library(
name = "extract_graphql_operation_codegen_plugin",
srcs = [
"extractGraphQlOperationCodegenPlugin.js",
],
deps = [
"//:node_modules/graphql",
"//:node_modules/signale",
],
)
js_binary(
name = "build_code_intel_extensions",
data = [
"//:node_modules/shelljs",
"//:node_modules/signale",
],
entry_point = "buildCodeIntelExtensions.js",
visibility = ["//client:__subpackages__"],
)
ts_binary(
name = "generate_graphql_operations",
data = [
":extract_graphql_operation_codegen_plugin",
"//:node_modules/@graphql-codegen/cli",
"//:node_modules/@graphql-codegen/typescript",
"//:node_modules/@graphql-codegen/typescript-apollo-client-helpers",
"//:node_modules/@graphql-codegen/typescript-operations",
"//:node_modules/glob",
"//:node_modules/graphql",
"//:node_modules/prettier",
"//cmd/frontend/graphqlbackend:graphql_schema",
],
entry_point = "generateGraphQlOperations.ts",
visibility = ["//client:__subpackages__"],
)
js_library(
name = "mocha-reporter",
srcs = [
"customMochaSpecReporter.js",
],
data = [
"//:node_modules/mocha",
],
visibility = ["//visibility:public"],
)
js_library(
name = "suppress-polly-errors",
srcs = ["suppressPollyErrors.js"],
visibility = ["//visibility:public"],
)