Skip to content

Commit 9337ee0

Browse files
authored
Near-complete rewrite of rules_node. (#30)
1 parent f6fff71 commit 9337ee0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1809
-1738
lines changed

.travis.yml

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@ os:
88
- osx
99

1010
env:
11-
- V=0.4.4
12-
- V=0.4.3
13-
- V=0.4.2
14-
- V=0.4.1
15-
- V=0.4.0
16-
- V=0.3.2
17-
- V=0.3.1
18-
11+
- V=0.5.4
12+
- V=0.5.3
13+
# Not compatible under 5.3
1914

2015
before_install:
2116
- OS=linux
@@ -35,33 +30,7 @@ before_install:
3530
- rm -f install.sh
3631

3732
script:
38-
- |
39-
bazel \
40-
--output_base=$HOME/.cache/bazel \
41-
--batch \
42-
--host_jvm_args=-Xmx500m \
43-
--host_jvm_args=-Xms500m \
44-
test \
45-
--verbose_failures \
46-
--sandbox_debug \
47-
--spawn_strategy=standalone \
48-
--genrule_strategy=standalone \
49-
--local_resources=400,1,1.0 \
50-
//... \
51-
$FLAGS
52-
bazel \
53-
--output_base=$HOME/.cache/bazel \
54-
--batch \
55-
--host_jvm_args=-Xmx500m \
56-
--host_jvm_args=-Xms500m \
57-
run \
58-
--verbose_failures \
59-
--sandbox_debug \
60-
--spawn_strategy=standalone \
61-
--genrule_strategy=standalone \
62-
--local_resources=400,1,1.0 \
63-
//examples/foo \
64-
$FLAGS
33+
- make test_all
6534

6635
notifications:
6736
email: false

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
v0.4.0 (Thu Sep 21 2017)
2+
3+
This is a complete rewrite of `rules_node`. In prior releases `npm`
4+
was used to install dependencies, this has been replaced with `yarn`.
5+
The mechanism for associating external (npm) node modules was
6+
previously based on assembling a `NODE_PATH` enviroment variable.
7+
This has been replaced by code that constructs a fresh `node_modules/`
8+
tree foreach `node_binary` rule, having much better hermeticity
9+
characteristics.

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
test_all:
2+
(cd tests/helloworld && bazel test //:helloworld_test)
3+
(cd tests/lyrics && bazel test //:lyrics_test)
4+
(cd tests/express && bazel test //:server_test)
5+
(cd tests/namespace && bazel test //:question_test)
6+
(cd tests/typescript && bazel test //:typescript_test)
7+
(cd tests/mocha && bazel test //:test)

0 commit comments

Comments
 (0)