blob: 4b40c764a8d08ba2092aa4acf471156e88cc0fb4 [file] [log] [blame]
Philipp Schrader5562df72022-02-16 20:56:51 -08001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "static",
5 srcs = ["static.go"],
6 importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/static",
7 target_compatible_with = ["@platforms//cpu:x86_64"],
8 visibility = ["//visibility:public"],
Emily Markovafaecfe12023-07-01 12:40:03 -07009 deps = [
10 "//scouting/db",
11 "//scouting/webserver/server",
12 ],
Philipp Schrader5562df72022-02-16 20:56:51 -080013)
14
15go_test(
16 name = "static_test",
17 srcs = ["static_test.go"],
18 data = [
Philipp Schrader45721a72022-04-02 16:27:53 -070019 "test_pages/index.html",
Philipp Schrader5562df72022-02-16 20:56:51 -080020 "test_pages/page.txt",
21 "test_pages/root.txt",
22 ],
23 embed = [":static"],
Philipp Schradercdb5cfc2022-02-20 14:57:07 -080024 target_compatible_with = ["@platforms//cpu:x86_64"],
Emily Markovafaecfe12023-07-01 12:40:03 -070025 deps = [
26 "//scouting/db",
27 "//scouting/webserver/server",
28 ],
Philipp Schrader5562df72022-02-16 20:56:51 -080029)