https://github.com/bzlparty/rules_quickjs
Bazel Rules for QuickJS
https://github.com/bzlparty/rules_quickjs
bazel bazel-rules quickjs
Last synced: 9 days ago
JSON representation
Bazel Rules for QuickJS
- Host: GitHub
- URL: https://github.com/bzlparty/rules_quickjs
- Owner: bzlparty
- License: lgpl-3.0
- Created: 2023-12-28T20:08:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T21:27:12.000Z (over 1 year ago)
- Last Synced: 2025-10-21T06:58:43.532Z (4 months ago)
- Topics: bazel, bazel-rules, quickjs
- Language: Starlark
- Homepage:
- Size: 138 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bazel Rules for QuickJS
[](https://github.com/bzlparty/rules_quickjs/actions/workflows/test.yaml)
[](https://github.com/bzlparty/rules_quickjs/releases/latest)
This project brings [quickjs-ng/quickjs](https://github.com/quickjs-ng/quickjs) to Bazel!
Inspired by (and based on) [rules_js](https://github.com/aspect-build/rules_js), it lets you run JavaScript with `qjs` under Bazel.
## Installation
See install instructions on the [release page](https://github.com/bzlparty/rules_quickjs/releases).
## Usage
In a `BUILD.bazel` file:
```starlark
load("@bzlparty_rules_quickjs//quickjs:defs.bzl", "qjs_binary")
qjs_binary(
name = "index",
entry_point = ":index.js",
)
```
See the [rules documentation](/docs/rules.md) for more details.
Run `qjs` from Bazel:
```bash
bazel run @bzlparty_quickjs//:qjs
```
## License
Copyright Contributors to the bzlparty project.
Unless otherwise specified, source code in this repository is licensed under the GNU Lesser General Public License, Version 3 or later (LGPL-3.0-or-later). A copy is included in the `LICENSE` file.
Other licenses may be specified as well for certain files or where third-party components are used.