Serge Bazanski | a767467 | 2021-05-30 21:09:34 +0000 | [diff] [blame] | 1 | load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data") |
voltar13 | 0571711 | 2024-01-15 13:17:37 +0100 | [diff] [blame^] | 2 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
Serge Bazanski | a767467 | 2021-05-30 21:09:34 +0000 | [diff] [blame] | 3 | |
| 4 | go_embed_data( |
| 5 | name = "static", |
voltar13 | 0571711 | 2024-01-15 13:17:37 +0100 | [diff] [blame^] | 6 | srcs = glob( |
| 7 | [ |
| 8 | "*", |
| 9 | ], |
| 10 | ["BUILD.bazel"], |
| 11 | ) + [ |
Serge Bazanski | 19c8b60 | 2022-02-01 09:36:47 +0000 | [diff] [blame] | 12 | "@com_gstatic_fonts_comfortaa_400//file:font.ttf", |
| 13 | "@com_gstatic_fonts_inconsolata_400//file:font.ttf", |
| 14 | "@com_gstatic_fonts_inconsolata_700//file:font.ttf", |
| 15 | "@com_npmjs_leaflet//:distfiles", |
Serge Bazanski | a767467 | 2021-05-30 21:09:34 +0000 | [diff] [blame] | 16 | ], |
| 17 | package = "static", |
| 18 | ) |
| 19 | |
| 20 | # keep |
| 21 | go_library( |
| 22 | name = "static_go", |
| 23 | srcs = [":static"], |
| 24 | importpath = "code.hackerspace.pl/hscloud/hswaw/site/static", |
| 25 | visibility = ["//visibility:public"], |
| 26 | ) |