2022-10-30 07:58:16 +00:00
|
|
|
load("//rules_resf:defs.bzl", "RESFDEPLOY_OUTS_BASE", "container", "peridot_k8s", "resf_frontend")
|
2022-07-07 20:11:50 +00:00
|
|
|
|
2022-10-30 01:59:25 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
2022-07-07 20:11:50 +00:00
|
|
|
|
|
|
|
server_deps = ["//common/frontend_server"]
|
|
|
|
|
|
|
|
server_entrypoint = "server/index.mjs"
|
|
|
|
|
|
|
|
server_srcs = glob(["server/**/*.mjs"])
|
|
|
|
|
2022-10-30 07:58:16 +00:00
|
|
|
resf_frontend(
|
2022-10-30 01:59:25 +00:00
|
|
|
name = "apollo",
|
2022-07-07 20:11:50 +00:00
|
|
|
srcs = glob([
|
|
|
|
"src/**/*.tsx",
|
|
|
|
"src/**/*.ts",
|
|
|
|
]),
|
2022-10-30 01:59:25 +00:00
|
|
|
entrypoint = "apollo/ui/src/entrypoint.tsx",
|
2022-10-30 07:58:16 +00:00
|
|
|
index_html = "//rules_resf/internal/resf_bundle:index_no_mobile.hbs",
|
2022-07-07 20:11:50 +00:00
|
|
|
server_deps = server_deps,
|
|
|
|
server_entrypoint = server_entrypoint,
|
|
|
|
server_srcs = server_srcs,
|
2022-10-30 07:58:16 +00:00
|
|
|
tailwind_config = "//rules_resf/internal/resf_bundle:tailwind.config.nopreflight.js",
|
2022-10-30 01:59:25 +00:00
|
|
|
title = "Rocky Enterprise Software Foundation Product Errata",
|
2022-07-07 20:11:50 +00:00
|
|
|
deps = [
|
2022-10-30 01:59:25 +00:00
|
|
|
"//apollo/proto/v1:client_typescript",
|
|
|
|
"//common/mui",
|
2022-07-07 20:11:50 +00:00
|
|
|
"//common/ui",
|
|
|
|
"//tailwind:css",
|
2022-10-31 16:51:22 +00:00
|
|
|
"@npm//@chakra-ui/react",
|
|
|
|
"@npm//@chakra-ui/icons",
|
|
|
|
"@npm//@emotion/unitless",
|
|
|
|
"@npm//framer-motion",
|
|
|
|
"@npm//framesync",
|
|
|
|
"@npm//popmotion",
|
|
|
|
"@npm//style-value-types",
|
2022-07-07 20:11:50 +00:00
|
|
|
"@npm//await-to-js",
|
|
|
|
"@npm//react",
|
|
|
|
"@npm//react-dom",
|
|
|
|
"@npm//react-router",
|
|
|
|
"@npm//react-router-dom",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
container(
|
|
|
|
base = "//bases/bazel/node",
|
|
|
|
files = [
|
2022-10-30 01:59:25 +00:00
|
|
|
":apollo.bundle",
|
2022-07-07 20:11:50 +00:00
|
|
|
],
|
|
|
|
frontend = True,
|
2022-10-30 01:59:25 +00:00
|
|
|
image_name = "apollo-frontend",
|
2022-07-07 20:11:50 +00:00
|
|
|
server_entrypoint = server_entrypoint,
|
|
|
|
server_files = server_srcs + server_deps,
|
|
|
|
)
|
2022-10-30 01:59:25 +00:00
|
|
|
|
|
|
|
peridot_k8s(
|
|
|
|
name = "apollo-frontend",
|
|
|
|
src = "deploy.jsonnet",
|
2022-10-30 07:58:16 +00:00
|
|
|
outs = RESFDEPLOY_OUTS_BASE,
|
2022-10-30 01:59:25 +00:00
|
|
|
deps = ["//ci"],
|
|
|
|
)
|