Move AOS Starter Web Page to frc971 folder
Signed-off-by: Nikolai Sohmers <nikolai@sohmers.com>
Change-Id: I1c14eb6598a9e48e82ef6ac05fc57f094c2f3124
diff --git a/frc971/www/BUILD b/frc971/www/BUILD
new file mode 100644
index 0000000..060912b
--- /dev/null
+++ b/frc971/www/BUILD
@@ -0,0 +1,37 @@
+load("//tools/build_rules:js.bzl", "rollup_bundle", "ts_project")
+
+package(default_visibility = ["//visibility:public"])
+
+filegroup(
+ name = "starter_files",
+ srcs = [
+ "starter.html",
+ "starter_main_bundle.min.js",
+ "styles.css",
+ ],
+)
+
+ts_project(
+ name = "starter_main",
+ srcs = [
+ "starter_handler.ts",
+ "starter_main.ts",
+ ],
+ target_compatible_with = ["@platforms//os:linux"],
+ deps = [
+ "//aos/network:connect_ts_fbs",
+ "//aos/network:message_bridge_client_ts_fbs",
+ "//aos/network/www:proxy",
+ "//aos/starter:starter_ts_fbs",
+ "@com_github_google_flatbuffers//ts:flatbuffers_ts",
+ ],
+)
+
+rollup_bundle(
+ name = "starter_main_bundle",
+ entry_point = "starter_main.ts",
+ target_compatible_with = ["@platforms//os:linux"],
+ deps = [
+ ":starter_main",
+ ],
+)
diff --git a/y2024/www/starter.html b/frc971/www/starter.html
similarity index 100%
rename from y2024/www/starter.html
rename to frc971/www/starter.html
diff --git a/y2024/www/starter_handler.ts b/frc971/www/starter_handler.ts
similarity index 100%
rename from y2024/www/starter_handler.ts
rename to frc971/www/starter_handler.ts
diff --git a/y2024/www/starter_main.ts b/frc971/www/starter_main.ts
similarity index 100%
rename from y2024/www/starter_main.ts
rename to frc971/www/starter_main.ts
diff --git a/y2024/www/styles.css b/frc971/www/styles.css
similarity index 100%
rename from y2024/www/styles.css
rename to frc971/www/styles.css
diff --git a/y2024/BUILD b/y2024/BUILD
index 26727a5..74ccd21 100644
--- a/y2024/BUILD
+++ b/y2024/BUILD
@@ -339,9 +339,9 @@
data = [
":aos_config",
"//aos/network:log_web_proxy_main",
+ "//frc971/www:starter_main_bundle.min.js",
"//y2024/www:field_main_bundle.min.js",
"//y2024/www:files",
- "//y2024/www:starter_main_bundle.min.js",
],
target_compatible_with = ["@platforms//os:linux"],
)
diff --git a/y2024/www/BUILD b/y2024/www/BUILD
index 6b751ed..b9bf06a 100644
--- a/y2024/www/BUILD
+++ b/y2024/www/BUILD
@@ -56,39 +56,13 @@
],
)
-ts_project(
- name = "starter_main",
- srcs = [
- "starter_handler.ts",
- "starter_main.ts",
- ],
- target_compatible_with = ["@platforms//os:linux"],
- deps = [
- "//aos/network:connect_ts_fbs",
- "//aos/network:message_bridge_client_ts_fbs",
- "//aos/network/www:proxy",
- "//aos/starter:starter_ts_fbs",
- "@com_github_google_flatbuffers//ts:flatbuffers_ts",
- ],
-)
-
-rollup_bundle(
- name = "starter_main_bundle",
- entry_point = "starter_main.ts",
- target_compatible_with = ["@platforms//os:linux"],
- visibility = ["//y2024:__subpackages__"],
- deps = [
- ":starter_main",
- ],
-)
-
aos_downloader_dir(
name = "www_files",
srcs = [
":field_main_bundle.min.js",
":files",
- ":starter_main_bundle.min.js",
"//frc971/analysis:plot_index_bundle.min.js",
+ "//frc971/www:starter_main_bundle.min.js",
],
dir = "www",
target_compatible_with = ["@platforms//os:linux"],