31 lines
729 B
Python
31 lines
729 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"doc.go",
|
|
"helpers.go",
|
|
"policies.go",
|
|
"policy.go",
|
|
"sanitize.go",
|
|
],
|
|
importmap = "go-common/vendor/github.com/microcosm-cc/bluemonday",
|
|
importpath = "github.com/microcosm-cc/bluemonday",
|
|
visibility = ["//visibility:public"],
|
|
deps = ["@org_golang_x_net//html:go_default_library"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|