mirror of
https://github.com/peridotbuild/peridot.git
synced 2024-09-25 11:34:10 +00:00
Misc build file changes
This commit is contained in:
parent
bd4a123064
commit
67edc67499
@ -17,6 +17,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
go_library(
|
||||
name = "go",
|
||||
srcs = [
|
||||
"auth.go",
|
||||
"db.go",
|
||||
"flags.go",
|
||||
"frontend_server.go",
|
||||
@ -27,10 +28,13 @@ go_library(
|
||||
"slice.go",
|
||||
"wrapper_helpers.go",
|
||||
],
|
||||
embedsrcs = ["assets/oh_no_unauthenticated.png"],
|
||||
importpath = "go.resf.org/peridot/base/go",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//vendor/github.com/coreos/go-oidc/v3/oidc",
|
||||
"//vendor/github.com/grpc-ecosystem/go-grpc-middleware",
|
||||
"//vendor/github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/auth",
|
||||
"//vendor/github.com/grpc-ecosystem/go-grpc-prometheus",
|
||||
"//vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime",
|
||||
"//vendor/github.com/prometheus/client_golang/prometheus/promhttp",
|
||||
@ -38,7 +42,13 @@ go_library(
|
||||
"//vendor/github.com/wk8/go-ordered-map/v2:go-ordered-map",
|
||||
"//vendor/go.ciq.dev/pika",
|
||||
"@org_golang_google_grpc//:go_default_library",
|
||||
"@org_golang_google_grpc//codes",
|
||||
"@org_golang_google_grpc//credentials/insecure",
|
||||
"@org_golang_google_grpc//metadata",
|
||||
"@org_golang_google_grpc//status",
|
||||
"@org_golang_google_protobuf//encoding/protojson",
|
||||
"@org_golang_google_protobuf//types/known/timestamppb",
|
||||
"@org_golang_google_protobuf//types/known/wrapperspb",
|
||||
"@org_golang_x_oauth2//:oauth2",
|
||||
],
|
||||
)
|
||||
|
@ -12,12 +12,16 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
load("@aspect_rules_swc//swc:defs.bzl", "swc")
|
||||
load("//tools/build_rules/ui_library:defs.bzl", "ui_library")
|
||||
|
||||
swc(
|
||||
ui_library(
|
||||
name = "ts",
|
||||
srcs = glob([
|
||||
"*.tsx",
|
||||
"*.ts",
|
||||
]),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//:node_modules/await-to-js",
|
||||
],
|
||||
)
|
||||
|
@ -21,4 +21,11 @@ ui_library(
|
||||
"*.ts",
|
||||
]),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//:node_modules/@mui/lab",
|
||||
"//:node_modules/@mui/material",
|
||||
"//:node_modules/react",
|
||||
"//:node_modules/tslib",
|
||||
"//base/ts",
|
||||
],
|
||||
)
|
||||
|
@ -11,3 +11,11 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
|
||||
|
||||
copy_to_bin(
|
||||
name = "esbuild_config",
|
||||
srcs = [":esbuild.config.mjs"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
@ -53,5 +53,6 @@ def ui_bundle(name, srcs = [], data = [], deps = [], css = False):
|
||||
"//conditions:default": False,
|
||||
}),
|
||||
tsconfig = "//:tsconfig",
|
||||
config = "//tools/build_rules/ui_bundle:esbuild_config",
|
||||
**esbuild_kwargs
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
load("@aspect_rules_swc//swc:defs.bzl", "swc")
|
||||
load("@aspect_rules_js//js:defs.bzl", "js_library")
|
||||
|
||||
def ui_library(name, srcs, visibility = ["//visibility:private"], **kwargs):
|
||||
def ui_library(name, srcs, visibility = ["//visibility:private"], deps = [], **kwargs):
|
||||
swc(
|
||||
name = name + "_lib",
|
||||
srcs = srcs,
|
||||
@ -12,6 +12,7 @@ def ui_library(name, srcs, visibility = ["//visibility:private"], **kwargs):
|
||||
|
||||
js_library(
|
||||
name = name,
|
||||
deps = deps,
|
||||
srcs = [":" + name + "_lib"],
|
||||
visibility = visibility,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user