-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathBUILD.bazel
93 lines (82 loc) · 1.9 KB
/
BUILD.bazel
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
load("@aspect_rules_js//js:defs.bzl", "js_library")
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//bazel/ts:defs.bzl", "ts_config", "ts_project")
exports_files(
[
"babel.config.json",
"pnpm-lock.yaml",
],
visibility = ["//:__subpackages__"],
)
npm_link_all_packages(name = "node_modules")
ts_project(
name = "root",
srcs = [
"jest.setup.ts",
],
visibility = ["//src:__subpackages__"],
deps = [
":node_modules/@jest/globals",
":node_modules/jest-extended",
"//:node_modules/@types/jest", # keep
],
)
ts_config(
name = "tsconfig",
src = "tsconfig.json",
visibility = [
"//e2e:__subpackages__",
"//src:__subpackages__",
],
)
js_library(
name = "package_json",
srcs = ["package.json"],
visibility = ["//:__subpackages__"],
)
js_library(
name = "jest_config",
srcs = [
"jest.config.js",
],
visibility = ["//:__subpackages__"],
deps = [
"//:node_modules/babel-jest",
"//:root",
],
)
buildifier(
name = "buildifier",
exclude_patterns = ["./.git/*"],
lint_mode = "fix",
mode = "fix",
)
buildifier(
name = "buildifier.check",
exclude_patterns = ["./.git/*"],
lint_mode = "warn",
mode = "diff",
)
alias(
name = "format",
actual = "//tools/format",
)
js_library(
name = "prettierrc",
srcs = [".prettierrc.cjs"],
visibility = ["//visibility:public"],
)
js_library(
name = "eslintrc",
srcs = ["eslint.config.mjs"],
visibility = ["//visibility:public"],
deps = [
"//:node_modules/@babel",
"//:node_modules/@eslint/js",
"//:node_modules/eslint-plugin-simple-import-sort",
"//:node_modules/eslint-plugin-unused-imports",
"//:node_modules/globals",
"//:node_modules/typescript-eslint",
],
)