Releases: pubref/rules_node
2019-04-21
Fri Oct 27 2017
This release continues a major re-write of rules_node.
- The node_binary has been decomposed into a
node_modules
rule (responsible for building the anode_modules/
tree), anode_bundle
rule (responsible for co-locating a node exe and the node_modules tree). As before, thenode_module
rule is responsible for building a single entry in a node_modules tree. - Support for using
node_binary
as a genrule executable. parse_yarn_lock.js
now generates anode_binary
entry for anything that would otherwise exist innode_modules/.bin
.- Re-write mocha_test as a genrule.
- Adds a
node_test
rule. - More tests/examples (webpack, typescript, express, mocha...)
Sep 21 2017
This is a complete rewrite of rules_node. In prior releases npm was used to install dependencies, this has been replaced with yarn. The mechanism for associating external (npm) node modules was previously based on assembling a NODE_PATH enviroment variable. This has been replaced by code that constructs a fresh node_modules/ tree foreach node_binary rule, having much better hermeticity characteristics.
Feb 5 2017
Fixes issue with toolchain related to bazel 0.4.4
Sun Jan 22
Disables the internal use of the sha256 attribute, which is still too flaky for general use.
Sun Oct 1
New and improved npm_repository repository rule.
- Adds npm_repository rule that downloads and installs a set of npm module
dependencies in the workspace. - Adds support scripts dar.py and dnode_modules.py that are used by npm_repository.
- Removes npm_library rule.
- Adds 0.3.2rc2 and rc3 to build matrix.
Wed Sep 28
This release includes a new rule node_library
that takes a set of sourcefiles, a set of dependencies and package configuration, dynamically writes a package.json file, and npm install
's it as a local module.
Initial release.
Initial release provides node_binary
, npm_library
.
TODO would include node_test
and node_library
, as well as some scheme npm_library sha256 values.