aboutsummaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorNathan Herring <Capstan@users.noreply.github.com>2017-10-31 22:54:25 +0100
committerTony Allevato <tony.allevato@gmail.com>2017-10-31 14:54:25 -0700
commitceeecf9ce66ae3389e0ec9ad85c59824fe343ec9 (patch)
tree2e7f5f1e9e120636f51ed799f8ed84fbf8ce8b7d /BUILD
parent2a48723686fe2cc814e7acd0fa61ee26ed660513 (diff)
downloadbazel-skylib-ceeecf9ce66ae3389e0ec9ad85c59824fe343ec9.tar.gz
Add skylark_library rule (#8)
`skylark_library` targets aggregate `.bzl` files and their dependencies for unit tests as well as Skydoc generation.
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD27
1 files changed, 25 insertions, 2 deletions
diff --git a/BUILD b/BUILD
index 592d48e..38be5dc 100644
--- a/BUILD
+++ b/BUILD
@@ -1,4 +1,8 @@
-licenses(["notice"])
+licenses(["notice"]) # Apache 2.0
+
+package(default_visibility = ["//visibility:public"])
+
+load("//:skylark_library.bzl", "skylark_library")
exports_files([
"LICENSE",
@@ -12,5 +16,24 @@ filegroup(
"//lib:test_deps",
] + glob(["*.bzl"]),
testonly = True,
- visibility = ["//visibility:public"],
+)
+
+skylark_library(
+ name = "lib",
+ srcs = ["lib.bzl"],
+ deps = [
+ "//lib:collections",
+ "//lib:dicts",
+ "//lib:paths",
+ "//lib:selects",
+ "//lib:sets",
+ "//lib:shell",
+ "//lib:structs",
+ "//lib:unittest",
+ ],
+)
+
+skylark_library(
+ name = "skylark_library",
+ srcs = ["skylark_library.bzl"],
)