Bazel is a build system released as open source by Google. It's primary feature is that it's designed from top to bottom for hermetically sound builds without requiring a full rebuild.
This project is an extension for Bazel to add the capability to build nodejs projects.
Add the following to your WORKSPACE:
git_repository(
name="org_penguintechs_bazel_rules_nodejs",
remote="https://github.com/wt/bazel_rules_nodejs.git",
commit="<appropriate SHA1 for some commit>",
)
load("@org_penguintechs_bazel_rules_nodejs//nodejs:def.bzl",
"nodejs_repositories")
nodejs_repositories()
Eventually, I will change use using tags for versions. These are early days.
Args:
- name
- main_script - the file that is the main script to run
First of all, thanks for thinking about contributing.
I'd eventually like to contribute this back to Google to host in the bazelbuild GitHub org at some point. Please make sure this is something you can get behind before contributing.
Send me a PR. I prefer small atomic and reviewable changes in each PR.
Also, please file issues if you don't have time to write up a code change for your idea.
- Add some testing
- Add rules to import libs from npm and other sources.
- Add ability to generate one file for deployment, something like nar.