Skip to content

bzlparty/rules_quickjs

Repository files navigation

Bazel Rules for QuickJS

Test

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.

Installation

See install instructions on the release page.

Usage

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

Development

Install git hooks:

pre-commit install

License

GNU GPL 3.0