Skip to content

Commit

Permalink
Near-complete rewrite of rules_node. (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcj authored Sep 21, 2017
1 parent f6fff71 commit 9337ee0
Show file tree
Hide file tree
Showing 69 changed files with 1,809 additions and 1,738 deletions.
39 changes: 4 additions & 35 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ os:
- osx

env:
- V=0.4.4
- V=0.4.3
- V=0.4.2
- V=0.4.1
- V=0.4.0
- V=0.3.2
- V=0.3.1

- V=0.5.4
- V=0.5.3
# Not compatible under 5.3

before_install:
- OS=linux
Expand All @@ -35,33 +30,7 @@ before_install:
- rm -f install.sh

script:
- |
bazel \
--output_base=$HOME/.cache/bazel \
--batch \
--host_jvm_args=-Xmx500m \
--host_jvm_args=-Xms500m \
test \
--verbose_failures \
--sandbox_debug \
--spawn_strategy=standalone \
--genrule_strategy=standalone \
--local_resources=400,1,1.0 \
//... \
$FLAGS
bazel \
--output_base=$HOME/.cache/bazel \
--batch \
--host_jvm_args=-Xmx500m \
--host_jvm_args=-Xms500m \
run \
--verbose_failures \
--sandbox_debug \
--spawn_strategy=standalone \
--genrule_strategy=standalone \
--local_resources=400,1,1.0 \
//examples/foo \
$FLAGS
- make test_all

notifications:
email: false
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v0.4.0 (Thu 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.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
test_all:
(cd tests/helloworld && bazel test //:helloworld_test)
(cd tests/lyrics && bazel test //:lyrics_test)
(cd tests/express && bazel test //:server_test)
(cd tests/namespace && bazel test //:question_test)
(cd tests/typescript && bazel test //:typescript_test)
(cd tests/mocha && bazel test //:test)
Loading

0 comments on commit 9337ee0

Please sign in to comment.