generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2a2b96
commit e2f856d
Showing
23 changed files
with
212 additions
and
1,144 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
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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
BAZELISK_BASE_URL=https://github.com/aspect-build/aspect-cli/releases/download | ||
USE_BAZEL_VERSION=aspect/5.7.2 | ||
USE_BAZEL_VERSION=aspect/5.9.25 |
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 |
---|---|---|
@@ -1,7 +1 @@ | ||
6.3.2 | ||
# The first line of this file is used by Bazelisk and Bazel to be sure | ||
# the right version of Bazel is used to build and test this repo. | ||
# This also defines which version is used on CI. | ||
# | ||
# Note that you should also run integration_tests against other Bazel | ||
# versions you support. | ||
7.1.1 |
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
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,55 @@ | ||
"aspect-build/rules_cypress" | ||
|
||
module( | ||
name = "aspect_rules_cypress", | ||
version = "0.0.0", | ||
compatibility_level = 1, | ||
) | ||
|
||
cypress = use_extension("//cypress:extensions.bzl", "cypress") | ||
cypress.toolchain(cypress_version = "12.3.0") | ||
use_repo(cypress, "cypress_toolchains") | ||
|
||
register_toolchains("@cypress_toolchains//:all") | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "1.42.3") | ||
bazel_dep(name = "aspect_rules_js", version = "1.29.2") | ||
bazel_dep(name = "bazel_skylib", version = "1.4.1") | ||
bazel_dep(name = "platforms", version = "0.0.5") | ||
bazel_dep(name = "rules_nodejs", version = "5.8.2") | ||
|
||
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") | ||
node.toolchain(node_version = "16.14.2") | ||
|
||
####### Dev dependencies ######## | ||
|
||
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") | ||
bazel_dep( | ||
name = "buildifier_prebuilt", | ||
version = "6.4.0", | ||
dev_dependency = True, | ||
) | ||
|
||
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
# To update CHROME_REVISION, use the below script | ||
# | ||
# LASTCHANGE_URL="https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media" | ||
# CHROME_REVISION=$(curl -s -S $LASTCHANGE_URL) | ||
# echo "latest CHROME_REVISION_LINUX is $CHROME_REVISION" | ||
CHROME_REVISION_LINUX = "1072361" | ||
|
||
http_archive( | ||
name = "chrome_linux", | ||
build_file_content = """filegroup( | ||
name = "all", | ||
srcs = glob(["**"]), | ||
visibility = ["//visibility:public"], | ||
)""", | ||
dev_dependency = True, | ||
sha256 = "0df22f743facd1e090eff9b7f8d8bdc293fb4dc31ce9156d2ef19b515974a72b", | ||
strip_prefix = "chrome-linux", | ||
urls = [ | ||
"https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F" + CHROME_REVISION_LINUX + "%2Fchrome-linux.zip?alt=media", | ||
], | ||
) |
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
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
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,27 @@ | ||
"extensions for bzlmod" | ||
|
||
load("@aspect_rules_cypress//cypress:repositories.bzl", "cypress_register_toolchains") | ||
|
||
def _toolchain_extension(module_ctx): | ||
for mod in module_ctx.modules: | ||
for toolchain in mod.tags.toolchain: | ||
cypress_register_toolchains( | ||
name = toolchain.name, | ||
cypress_version = toolchain.cypress_version, | ||
register = False, | ||
) | ||
|
||
cypress = module_extension( | ||
implementation = _toolchain_extension, | ||
tag_classes = { | ||
"toolchain": tag_class(attrs = { | ||
"name": attr.string( | ||
doc = "Base name for generated repositories", | ||
default = "cypress", | ||
), | ||
"cypress_version": attr.string( | ||
doc = "Version of cypress to download", | ||
), | ||
}), | ||
}, | ||
) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.