forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
54 lines (49 loc) · 1.41 KB
/
BUILD.bazel
File metadata and controls
54 lines (49 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
load("@aspect_rules_js//js:defs.bzl", "js_library", "js_run_binary")
load("//dev:defs.bzl", "sass_library")
load("//client/shared/dev:generate_schema.bzl", "generate_schema")
load("//client/shared/dev:generate_graphql_operations.bzl", "generate_graphql_operations")
load("//client/shared/dev:tools.bzl", "module_style_typings")
module_style_typings(
name = "module_style_typings",
)
generate_graphql_operations(
name = "graphql_operations",
srcs = [
":graphql_operations_files",
],
out = "src/graphql-operations.ts",
interface_name = "SharedGraphQlOperations",
)
js_library(
name = "graphql_operations_files",
# Keep in sync with glob in client/shared/dev/generateGraphQlOperations.js
srcs = glob(
[
"src/**/*.ts",
"src/**/*.tsx",
],
[
"src/testing/**/*.*",
# TODO: Ignore legacy build generated file as it conflicts with the Bazel
# build. This can be removed after the migration.
"src/graphql-operations.ts",
],
),
visibility = ["//client/shared:__pkg__"],
)
[generate_schema(
name = name,
out = "src/schema/%s.schema.d.ts" % name,
) for name in [
"json-schema-draft-07",
"site",
"settings",
"batch_spec",
]]
sass_library(
name = "global-style-vars",
srcs = [
"src/global-styles/icons.scss",
],
visibility = ["//visibility:public"],
)