feat: add docs
This commit is contained in:
@@ -21,20 +21,28 @@ def _bun_library_impl(ctx):
|
||||
|
||||
js_library = rule(
|
||||
implementation = _bun_library_impl,
|
||||
doc = "Aggregates JavaScript sources and transitive Bun source dependencies.",
|
||||
attrs = {
|
||||
"srcs": attr.label_list(
|
||||
allow_files = [".js", ".jsx", ".mjs", ".cjs"],
|
||||
doc = "JavaScript source files in this library.",
|
||||
),
|
||||
"deps": attr.label_list(
|
||||
doc = "Other Bun source libraries to include transitively.",
|
||||
),
|
||||
"deps": attr.label_list(),
|
||||
},
|
||||
)
|
||||
|
||||
ts_library = rule(
|
||||
implementation = _bun_library_impl,
|
||||
doc = "Aggregates TypeScript sources and transitive Bun source dependencies.",
|
||||
attrs = {
|
||||
"srcs": attr.label_list(
|
||||
allow_files = [".ts", ".tsx"],
|
||||
doc = "TypeScript source files in this library.",
|
||||
),
|
||||
"deps": attr.label_list(
|
||||
doc = "Other Bun source libraries to include transitively.",
|
||||
),
|
||||
"deps": attr.label_list(),
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user