Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions modules/stackb_ui_js/1.0.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
module(
name = "stackb_ui_js",
version = "1.0.0",
compatibility_level = 1,
)

# -------------------------------------------------------------------
# Bazel Dependencies
# -------------------------------------------------------------------

bazel_dep(name = "stackb_rules_closure", version = "1.0.0")
bazel_dep(name = "rules_shell", version = "0.6.1", dev_dependency = True)

# -------------------------------------------------------------------
# Dev Dependencies
# -------------------------------------------------------------------

bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True)

# -------------------------------------------------------------------
# Overrides
# -------------------------------------------------------------------

# Commit: a44b4bc7af840ef4646e41828491691c96e85402
# Date: 2025-11-20 00:04:01 +0000 UTC
# URL: https://github.com/stackb/rules_closure/commit/a44b4bc7af840ef4646e41828491691c96e85402
#
# Merge pull request #6 from stackb/module_rename
# Size: 5019979 (5.0 MB)
archive_override(
module_name = "stackb_rules_closure",
sha256 = "7d11e93efa87dd27a27c68060cb1b5144a03de80044b58474033546199674083",
strip_prefix = "rules_closure-a44b4bc7af840ef4646e41828491691c96e85402",
urls = ["https://github.com/stackb/rules_closure/archive/a44b4bc7af840ef4646e41828491691c96e85402.tar.gz"],
)

# NOTE: cannot upgrade past protobuf editions...
#
# Commit: 263ee701cba6b75e1f8eddad5adcdf74718318b1
# Date: 2025-10-08 21:32:22 +0000 UTC
# URL: https://github.com/protocolbuffers/protobuf-javascript/commit/263ee701cba6b75e1f8eddad5adcdf74718318b1
#
# remove writeZigzagVarint64BigInt
# Size: 401599 (402 kB)
archive_override(
module_name = "protobuf_javascript",
patch_strip = 1,
patches = [":protobuf_javascript.patch"],
sha256 = "8a50071fbca5e4a26361e6c9d81dd842207f0005f7cc1720226f20c25a231805",
strip_prefix = "protobuf-javascript-263ee701cba6b75e1f8eddad5adcdf74718318b1",
urls = ["https://github.com/protocolbuffers/protobuf-javascript/archive/263ee701cba6b75e1f8eddad5adcdf74718318b1.tar.gz"],
)

# Commit: 04fc63fb40bf30d2e5e0b3786028eb41218de979
# Date: 2025-10-09 04:43:15 +0000 UTC
# URL: https://github.com/stackb/rules_proto/commit/04fc63fb40bf30d2e5e0b3786028eb41218de979
#
# Remove lock file for @maven
#
# It is shared by multiple workspaces and seems to cause problems when locked
# Size: 4088796 (4.1 MB)
archive_override(
module_name = "build_stack_rules_proto",
sha256 = "aff21579deef91316c726582bec71c621dde2ae2ec74099a55b637bda8997333",
strip_prefix = "rules_proto-04fc63fb40bf30d2e5e0b3786028eb41218de979",
urls = ["https://github.com/stackb/rules_proto/archive/04fc63fb40bf30d2e5e0b3786028eb41218de979.tar.gz"],
)

# google_bazel_common override is needed for @closure-compiler
git_override(
module_name = "google_bazel_common",
# Pin to newer version to fix b/408030907
commit = "2cab52929507935aa43d460a3976d3bedc814d3a",
remote = "https://github.com/google/bazel-common",
)
17 changes: 17 additions & 0 deletions modules/stackb_ui_js/1.0.0/attestations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"mediaType": "application/vnd.build.bazel.registry.attestation+json;version=1.0.0",
"attestations": {
"source.json": {
"url": "https://github.com/stackb/ui.js/releases/download/v1.0.0/source.json.intoto.jsonl",
"integrity": "sha256-A7Cop66MjN0x7Mk6Zr+5x68Y6kMqa7l/coMKW4rgwRU="
},
"MODULE.bazel": {
"url": "https://github.com/stackb/ui.js/releases/download/v1.0.0/MODULE.bazel.intoto.jsonl",
"integrity": "sha256-5839/aA6aR//G4sYs0St1o9CqAdWNNAqVejIqZaJLv4="
},
"ui.js-v1.0.0.tar.gz": {
"url": "https://github.com/stackb/ui.js/releases/download/v1.0.0/ui.js-v1.0.0.tar.gz.intoto.jsonl",
"integrity": "sha256-WVzz2j98NFzG1YTmo324ZL86o0LGZNjVXzbXbB7gl3s="
}
}
}
12 changes: 12 additions & 0 deletions modules/stackb_ui_js/1.0.0/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,7 +1,7 @@
module(
name = "stackb_ui_js",
- version = "0.0.0",
+ version = "1.0.0",
compatibility_level = 1,
)

# -------------------------------------------------------------------
12 changes: 12 additions & 0 deletions modules/stackb_ui_js/1.0.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
bcr_test_module:
module_path: "."
matrix:
platform: ["debian11", "ubuntu2404", "macos"]
bazel: [7.x, 8.x]
tasks:
run_tests:
name: "Build module"
platform: ${{ platform }}
bazel: ${{ bazel }}
test_targets:
- "//..."
Comment on lines +8 to +12
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The task is named "Build module", but it only specifies test_targets. This is misleading and could result in presubmit checks passing vacuously if no test targets are found. To make the presubmit more robust, this suggestion adds build_targets to ensure all library targets are buildable and renames the task for clarity. The list format for build_targets and test_targets is changed to flow style to fit the suggestion within the original line count.

      name: "Build and test module"
      platform: ${{ platform }}
      bazel: ${{ bazel }}
      build_targets: ["//..."]
      test_targets: ["//..."]

9 changes: 9 additions & 0 deletions modules/stackb_ui_js/1.0.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-uuW7K2oIRFq9v4YVqUVAfvSlkWuzM98j7lbLRsbz1Dw=",
"strip_prefix": "ui.js-v1.0.0",
"url": "https://github.com/stackb/ui.js/releases/download/v1.0.0/ui.js-v1.0.0.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-geEF82mKNkjLhjnY9Oq3A2GnZQPDxplcvwWChyDfmL8="
},
"patch_strip": 1
}
18 changes: 18 additions & 0 deletions modules/stackb_ui_js/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"homepage": "https://github.com/stackb/ui.js",
"maintainers": [
{
"name": "Paul Cody",
"email": "[email protected]",
"github_user_id": 50580,
"github": "pcj"
}
],
"repository": [
"github:stackb/ui.js"
],
"versions": [
"1.0.0"
],
"yanked_versions": {}
}
Loading