This project brings quickjs-ng/quickjs to Bazel!
Inspired by (and based on) rules_js, it lets you run JavaScript with qjs
under Bazel.
[!NOTE] Since the archives taken from quickjs-ng only include the interpreter binary, there is no support for the QuickJS compiler (
qjsc
), yet.
See install instructions on the release page.
In a BUILD.bazel
file:
load("@bzlparty_rules_quickjs//quickjs:qjs.bzl", "qjs_binary")
qjs_binary(
name = "index",
entry_point = ":index.js",
)
See the documentation for more details.
Run qjs
from Bazel:
bazel run @bzlparty_quickjs//:qjs
Install git hooks:
pre-commit install