Sergiusz Bazanski | 838cf65 | 2019-07-16 23:31:25 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 2 | load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data") |
| 3 | |
| 4 | go_embed_data( |
| 5 | name = "assets", |
| 6 | srcs = glob(["*.js"]), |
| 7 | package = "assets", |
| 8 | flatten = True, |
| 9 | ) |
| 10 | |
| 11 | # keep |
| 12 | go_library( |
| 13 | name = "go_default_library", |
| 14 | srcs = [":assets"], |
Sergiusz Bazanski | 61594bb | 2019-07-21 15:20:51 +0200 | [diff] [blame] | 15 | importpath = "code.hackerspace.pl/hscloud/dc/topo/assets", |
| 16 | visibility = ["//dc/topo:__pkg__"], |
Sergiusz Bazanski | 838cf65 | 2019-07-16 23:31:25 +0200 | [diff] [blame] | 17 | ) |