Demonstrate running ts_project with no npm install (#27) * Demonstrate running ts_project with no npm install * fix bzl_library graph * more refactors, comments
EXPERIMENTAL this code is currently pre-release and not subject to any stability guarantee. It could be archived or there could be major breaking changes. Our goal is to eventually have rough feature parity with rules_nodejs “builtin”, but probably not until mid 2022 at the earliest.
This ruleset is a high-performance alternative to rules_nodejs.
The primary difference is that we don't run npm install or yarn install, instead we use a Bazel-idiomatic approach to managing the third-party dependencies.
Features include:
See the design doc
In addition, as a clean rewrite many of the bugs in rules_nodejs are naturally resolved:
tool in a genrule #1553, #2600From the release you wish to use: https://github.com/aspect-build/rules_js/releases copy the WORKSPACE snippet into your WORKSPACE file.
See the API documentation in the docs folder and the example usage in the example folder. Note that the example also relies on code in the /WORKSPACE file in the root of this repo.