Skip to content

Commit

Permalink
chore: rename repo to bzlparty_quickjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgred committed Dec 29, 2023
1 parent 94e3e57 commit 8627d62
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 14 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "aspect_rules_js", version = "1.34.1")

quickjs_extension = use_extension("//quickjs:extensions.bzl", "quickjs_extension")
use_repo(quickjs_extension, "quickjs")
use_repo(quickjs_extension, "bzlparty_quickjs")
10 changes: 5 additions & 5 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Bazel Rules for QuickJS

See install instructions on the [release page](https://github.com/bzlparty/rules_quickjs/releases).

In a `BUILD.bazel` file:

```starlark
load("@bzlparty_rules_quickjs//quickjs:qjs.bzl", "qjs_binary")

qjs_binary(
name = "index",
entry_point = ":index.js",
)
```

Run `qjs` from Bazel:

```bash
bazel run @bzlparty_quickjs//:qjs
```
12 changes: 6 additions & 6 deletions e2e/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion quickjs/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ quickjs_repo = repository_rule(
)

quickjs_extension = module_extension(
implementation = lambda _: quickjs_repo(name = "quickjs", version = "0.3.0"),
implementation = lambda _: quickjs_repo(name = "bzlparty_quickjs", version = "0.3.0"),
)
2 changes: 1 addition & 1 deletion quickjs/qjs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ qjs_binary = rule(
allow_files = True,
),
"_binary": attr.label(
default = "@quickjs//:qjs",
default = "@bzlparty_quickjs//:qjs",
executable = True,
cfg = "exec",
allow_single_file = True,
Expand Down

0 comments on commit 8627d62

Please sign in to comment.