-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.bazel
56 lines (48 loc) · 1.34 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
"""
Oswee
"""
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
# package(default_visibility = ["//:__subpackages__"])
package(default_visibility = ["//visibility:public"])
# gazelle:exclude node_modules
# gazelle:build_file_name BUILD.bazel,BUILD
# gazelle:prefix github.com/oswee/oswee
gazelle(
name = "gazelle",
)
# To automatically format all .bzl files and all BUILD.bzl files, run:
# bazelisk run //:buildifier
# or
# yarn bazel run //:buildifier
buildifier(
name = "buildifier",
exclude_patterns = ["node_modules"],
)
buildifier(
name = "buildifier_check",
exclude_patterns = ["node_modules"],
mode = "check",
)
# Expose these files for the other Bazel downstream rules to use
# https://bazelbuild.github.io/rules_nodejs/TypeScript.html
# ts_library and ng_module use the `//:tsconfig.json` target
# by default. This alias allows omitting explicit tsconfig
# attribute.
exports_files(
[
# Stylelint and prettier config are neeeded for style linting
".stylelintrc.js",
".prettierrc.js",
"package.json",
],
visibility = ["//visibility:public"],
)
alias(
name = "tsconfig.base.json",
actual = "//javascript:tsconfig.base.json",
)
alias(
name = "tsconfig.json",
actual = "//javascript:tsconfig.json",
)