Skip to content
Merged
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
44 changes: 44 additions & 0 deletions modules/rules_tsickle/1.0.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"""rules_tsickle provides bazel rules for transforming ts files to closure compatible js"""

module(
name = "rules_tsickle",
version = "1.0.0",
compatibility_level = 1,
)

# -----------------------------------------------------------------
# bazel_dep(s) - core dependencies, keep sorted alphabetically
# -----------------------------------------------------------------

bazel_dep(name = "aspect_bazel_lib", version = "2.21.0")
bazel_dep(name = "aspect_rules_js", version = "2.6.0")
bazel_dep(name = "aspect_rules_ts", version = "3.7.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "rules_nodejs", version = "6.5.0")

# --------------------------------------------------------------------------------
# language js configuration
# --------------------------------------------------------------------------------

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = False)
node.toolchain(node_version = "22.14.0")
use_repo(node, "nodejs_toolchains")

npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = False)
npm.npm_translate_lock(
name = "npm_tsickle",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm_tsickle")

pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
use_repo(pnpm, "pnpm")

# --------------------------------------------------------------------------------
# language ts configuration
# --------------------------------------------------------------------------------

rules_ts_ext = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext")
rules_ts_ext.deps(ts_version_from = "//:package.json")
use_repo(rules_ts_ext, "npm_typescript")
17 changes: 17 additions & 0 deletions modules/rules_tsickle/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/rules_tsickle/releases/download/v1.0.0/source.json.intoto.jsonl",
"integrity": "sha256-4muIoD4slH02aJK0F+VG1EL69RoPR8tEu4+qIGygrco="
},
"MODULE.bazel": {
"url": "https://github.com/stackb/rules_tsickle/releases/download/v1.0.0/MODULE.bazel.intoto.jsonl",
"integrity": "sha256-RUyjUUElYo05AQ0tWEayHZZiMBCMxtu9FvsZ7PNQ+p4="
},
"rules_tsickle-v1.0.0.tar.gz": {
"url": "https://github.com/stackb/rules_tsickle/releases/download/v1.0.0/rules_tsickle-v1.0.0.tar.gz.intoto.jsonl",
"integrity": "sha256-5zF7kL2RefF2ERAwy5IMFWErKDJVAJRSJUDt0MPB7zU="
}
}
}
14 changes: 14 additions & 0 deletions modules/rules_tsickle/1.0.0/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,9 +1,9 @@
"""rules_tsickle provides bazel rules for transforming ts files to closure compatible js"""

module(
name = "rules_tsickle",
- version = "0.0.0",
+ version = "1.0.0",
compatibility_level = 1,
)

# -----------------------------------------------------------------
12 changes: 12 additions & 0 deletions modules/rules_tsickle/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:
- "//..."
9 changes: 9 additions & 0 deletions modules/rules_tsickle/1.0.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-LjYIz66qCJPLy5UT5ypBo9cWXWNu4r451nu54d8MQj0=",
"strip_prefix": "rules_tsickle-v1.0.0",
"url": "https://github.com/stackb/rules_tsickle/releases/download/v1.0.0/rules_tsickle-v1.0.0.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-QwvfKZSRA/WHJy8H3PR1niR7oKL9F4TJR51wHHXZsW8="
},
"patch_strip": 1
}
18 changes: 18 additions & 0 deletions modules/rules_tsickle/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"homepage": "https://github.com/stackb/rules_tsickle",
"maintainers": [
{
"name": "Paul Cody",
"email": "pcj@stack.build",
"github": "pcj",
"github_user_id": 50580
}
],
"repository": [
"github:stackb/rules_tsickle"
],
"versions": [
"1.0.0"
],
"yanked_versions": {}
}
Loading