Skip to content

Commit

Permalink
Add latest JS rules (#99)
Browse files Browse the repository at this point in the history
* Add latest rules_nodejs

* Add latest aspect_rules_js
  • Loading branch information
alexeagle authored Jun 10, 2022
1 parent b83c71d commit e7b901a
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 2 deletions.
12 changes: 12 additions & 0 deletions modules/aspect_rules_js/0.11.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"aspect-build/rules_js"

module(
name = "aspect_rules_js",
version = "0.11.1",
compatibility_level = 1,
)

bazel_dep(name = "aspect_bazel_lib", version = "1.0.0")
bazel_dep(name = "bazel_skylib", version = "1.1.1")
bazel_dep(name = "rules_nodejs", version = "5.5.0")
bazel_dep(name = "platforms", version = "0.0.4")
11 changes: 11 additions & 0 deletions modules/aspect_rules_js/0.11.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bcr_test_module:
module_path: "e2e/bzlmod"
matrix:
# TODO(kormide): add "windows" when green
platform: ["debian10", "macos", "ubuntu2004"]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
test_targets:
- "//..."
5 changes: 5 additions & 0 deletions modules/aspect_rules_js/0.11.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "sha256-116wqG42tJ+V0gzZ3qm1M/u4+AVLfYUi6i1l09nQxAM=",
"strip_prefix": "rules_js-0.11.1",
"url": "https://github.com/aspect-build/rules_js/archive/refs/tags/v0.11.1.tar.gz"
}
3 changes: 2 additions & 1 deletion modules/aspect_rules_js/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
}
],
"versions": [
"0.3.2"
"0.3.2",
"0.11.1"
],
"yanked_versions": {}
}
19 changes: 19 additions & 0 deletions modules/rules_nodejs/5.5.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"bzlmod declaration for bazelbuild/rules_nodejs"

module(
name = "rules_nodejs",
version = "5.5.0",
compatibility_level = 1,
# If the user doesn't register any node toolchains,
# they get this one by default.
toolchains_to_register = ["@default_node_toolchains//:all"],
)

bazel_dep(name = "bazel_skylib", version = "1.0.3")
bazel_dep(name = "platforms", version = "0.0.4")

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
# Note, this gets the default version of Node.js from
# https://github.com/bazelbuild/rules_nodejs/blob/5.5.0/nodejs/repositories.bzl#L11
node.toolchain(name = "default_node")
use_repo(node, "default_node_toolchains")
14 changes: 14 additions & 0 deletions modules/rules_nodejs/5.5.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build_targets: &build_targets
- '@rules_nodejs//nodejs/...'

platforms:
centos7:
build_targets: *build_targets
debian10:
build_targets: *build_targets
macos:
build_targets: *build_targets
ubuntu2004:
build_targets: *build_targets
windows:
build_targets: *build_targets
4 changes: 4 additions & 0 deletions modules/rules_nodejs/5.5.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"integrity": "sha256-TUiZjj+h4DxoTmvfesmAUSMsdIa/pBLltUdbuux7slc=",
"url": "https://github.com/bazelbuild/rules_nodejs/releases/download/5.5.0/rules_nodejs-core-5.5.0.tar.gz"
}
3 changes: 2 additions & 1 deletion modules/rules_nodejs/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
],
"versions": [
"4.5.0",
"4.5.1"
"4.5.1",
"5.5.0"
],
"yanked_versions": {}
}

0 comments on commit e7b901a

Please sign in to comment.