-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
108 lines (96 loc) · 2.52 KB
/
Copy pathBUILD.bazel
File metadata and controls
108 lines (96 loc) · 2.52 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
"""Targets in the repository root"""
load("@aspect_rules_js//js:defs.bzl", "js_library")
load("@gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@rules_clojure//rules:tools_deps.bzl", "clojure_gen_srcs")
load("@rules_kotlin//kotlin:core.bzl", "define_kt_toolchain")
npm_link_all_packages(name = "node_modules")
clojure_gen_srcs(name = "clojure_gen_build_files")
exports_files(
[
"deps.edn",
],
visibility = ["//visibility:public"],
)
exports_files(
[
".clang-tidy",
".ruff.toml",
".shellcheckrc",
"buf.yaml",
"checkstyle.xml",
"gazelle_python.yaml",
"pmd.xml",
"pyproject.toml",
".editorconfig",
".ktlint-baseline.xml",
".clippy.toml",
],
visibility = [
"//tools/format:__pkg__",
"//tools/lint:__pkg__",
],
)
js_library(
name = "eslintrc",
srcs = ["eslint.config.mjs"],
# prevent conflicting actions when linting
tags = ["no-lint"],
visibility = ["//:__subpackages__"],
deps = [
":node_modules/@eslint/js",
":node_modules/typescript-eslint",
],
)
js_library(
name = "prettierrc",
srcs = ["prettier.config.mjs"],
# prevent conflicting actions when linting
tags = ["no-lint"],
visibility = ["//tools/format:__pkg__"],
deps = [],
)
js_library(
name = "stylelintrc",
srcs = ["stylelint.config.mjs"],
# prevent conflicting actions when linting
tags = ["no-lint"],
visibility = ["//tools/lint:__pkg__"],
deps = [
":node_modules/stylelint",
],
)
# Gazelle configuration
# gazelle:exclude githooks/*
# gazelle:exclude tools/*
# gazelle:exclude angular/*
# gazelle:exclude ktor_tutorial/*
# gazelle:exclude mindreadr/*
# gazelle:exclude nicknamer/*
# gazelle:rust_cargo_lockfile Cargo.lock
# gazelle:rust_crates_prefix @crates//:
# gazelle:ts_enabled false
# gazelle:ts_npm_link_pattern //:node_modules/{pkg}
gazelle(
name = "gazelle",
gazelle = ":gazelle_bin",
)
gazelle_binary(
name = "gazelle_bin",
languages = DEFAULT_LANGUAGES + [
"@contrib_rules_jvm//java/gazelle",
"@bazel_skylib_gazelle_plugin//bzl",
"@gazelle_rust//rust_language",
"@gazelle_ts//ts",
],
)
### Kotlin toolchain configuration
define_kt_toolchain(
name = "kotlin_toolchain",
jvm_target = "25",
)
### Rust project generation
alias(
name = "gen_rust_project",
actual = "@rules_rs//tools/rust_analyzer:gen_rust_project",
)