-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rules_swc 0.3.0 is published on bazel-central-registry, but we haven't kept it current. Part of #134
- Loading branch information
Showing
9 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"aspect-build/rules_swc" | ||
|
||
module( | ||
name = "aspect_rules_swc", | ||
compatibility_level = 1, | ||
version = "0.0.0", | ||
) | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "1.19.0") | ||
# Note: only used for provider symbols, we don't spawn nodejs actions | ||
bazel_dep(name = "aspect_rules_js", version = "1.13.0") | ||
bazel_dep(name = "bazel_skylib", version = "1.3.0") | ||
bazel_dep(name = "platforms", version = "0.0.4") | ||
|
||
swc = use_extension("@aspect_rules_swc//swc:extensions.bzl", "swc") | ||
swc.toolchain(name = "swc", swc_version = "v1.3.25") | ||
use_repo(swc, "swc_toolchains") | ||
|
||
register_toolchains("@swc_toolchains//:all") |
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 @@ | ||
common --enable_bzlmod |
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 @@ | ||
../../.bazelversion |
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 @@ | ||
{} |
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 @@ | ||
load("@bazel_skylib//rules:build_test.bzl", "build_test") | ||
load("@aspect_rules_swc//swc:defs.bzl", "swc") | ||
|
||
swc(name = "compile") | ||
|
||
build_test( | ||
name = "test", | ||
targets = [":compile"], | ||
) |
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 @@ | ||
"Bazel dependencies" | ||
module(name = "e2e_bzlmod") | ||
|
||
bazel_dep(name = "aspect_rules_swc", dev_dependency = True, version = "0.0.0") | ||
bazel_dep(name = "bazel_skylib", dev_dependency = True, version = "1.3.0") | ||
|
||
local_path_override( | ||
module_name = "aspect_rules_swc", | ||
path = "../..", | ||
) |
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 @@ | ||
# Empty marker that this folder is the root of a Bazel workspace |
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,3 @@ | ||
export const hello = () => { | ||
console.log("hello world"); | ||
}; |