| load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data") |
| load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| |
| go_embed_data( |
| name = "static", |
| srcs = glob( |
| [ |
| "*", |
| ], |
| ["BUILD.bazel"], |
| ) + [ |
| "@com_gstatic_fonts_comfortaa_400//file:font.ttf", |
| "@com_gstatic_fonts_inconsolata_400//file:font.ttf", |
| "@com_gstatic_fonts_inconsolata_700//file:font.ttf", |
| "@com_npmjs_leaflet//:distfiles", |
| ], |
| package = "static", |
| ) |
| |
| # keep |
| go_library( |
| name = "static_go", |
| srcs = [":static"], |
| importpath = "code.hackerspace.pl/hscloud/hswaw/site/static", |
| visibility = ["//visibility:public"], |
| ) |