BUILD.bazel 729 B

123456789101112131415161718192021222324252627282930
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "doc.go",
  6. "helpers.go",
  7. "policies.go",
  8. "policy.go",
  9. "sanitize.go",
  10. ],
  11. importmap = "go-common/vendor/github.com/microcosm-cc/bluemonday",
  12. importpath = "github.com/microcosm-cc/bluemonday",
  13. visibility = ["//visibility:public"],
  14. deps = ["@org_golang_x_net//html:go_default_library"],
  15. )
  16. filegroup(
  17. name = "package-srcs",
  18. srcs = glob(["**"]),
  19. tags = ["automanaged"],
  20. visibility = ["//visibility:private"],
  21. )
  22. filegroup(
  23. name = "all-srcs",
  24. srcs = [":package-srcs"],
  25. tags = ["automanaged"],
  26. visibility = ["//visibility:public"],
  27. )