This repository has been archived by the owner on Dec 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all 3 providers into their own files
- Loading branch information
David Johnston
committed
Sep 2, 2020
1 parent
84ef82e
commit c31851c
Showing
7 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
exports_files( | ||
# NOTE(dwtj): We export all `bzl` files in this package so that the website | ||
# can wrap these files in `bzl_library` targets and pass them to `stardoc`. | ||
# We don't want to declare `bzl_library` targets and `stardoc` targets in | ||
# this package, because then all users of these rules would also depend | ||
# upon the `bazel-skylib` and `stardoc` external repositories (and thus | ||
# need to configure their Bazel workspace to include these dependencies). | ||
glob([ | ||
"**/*.bzl", | ||
]), | ||
# TODO(dwtj): These files are probably only needed for the website. Can we | ||
# make visibility narrower even though the website is in an external | ||
# repository? | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
filegroup( | ||
name = "all_bzl_files_in_project", | ||
srcs = glob(["**/*.bzl"]), | ||
# TODO(dwtj): These files are probably only needed for the website. Can we | ||
# make visibility narrower even though the website is in an external | ||
# repository? | ||
visibility = ["//visibility:public"] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'''Defines the `MarkdownInfo` provider. | ||
''' | ||
|
||
MarkdownInfo = provider( | ||
fields = [ | ||
'direct_source_files', | ||
'transitive_source_files', | ||
'markdownlint_config_file', | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'''Defines the `MarkdownlintAspectInfo` provider. | ||
''' | ||
|
||
MarkdownlintAspectInfo = provider( | ||
fields = { | ||
# Will be `None` if the target can't be or shouldn't be linted. | ||
'output_file': 'The lint report file produced by `markdownlint`.', | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'''Defines the `MarkdownlintToolchainInfo` provider. | ||
''' | ||
|
||
MarkdownlintToolchainInfo = provider( | ||
fields = [ | ||
"node_executable", | ||
"markdownlint_executable", | ||
"config_file", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters