Add NodeDistribution to seed a node backend.

Review Request #2703 - Created Aug. 25, 2015 and submitted

Information
John Sirois
pants
jsirois/node/node_distribution
2063, 2066
2542
f5ceea5...
Reviewers
pants-reviews
mateor, tejal, zundel
The NodeDistribution supports transparently fetching an appropriate
node distribution and running `node` and `npm` commands using it.

Test are added to cover the new Subsystem.

 contrib/node/BUILD                                                                     |   5 ++
 contrib/node/src/python/pants/__init__.py                                              |   1 +
 contrib/node/src/python/pants/contrib/__init__.py                                      |   1 +
 contrib/node/src/python/pants/contrib/node/__init__.py                                 |   0
 contrib/node/src/python/pants/contrib/node/subsystems/BUILD                            |  15 +++++
 contrib/node/src/python/pants/contrib/node/subsystems/__init__.py                      |   0
 contrib/node/src/python/pants/contrib/node/subsystems/node_distribution.py             | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++
 contrib/node/tests/python/pants_test/__init__.py                                       |   1 +
 contrib/node/tests/python/pants_test/contrib/__init__.py                               |   1 +
 contrib/node/tests/python/pants_test/contrib/node/__init__.py                          |   0
 contrib/node/tests/python/pants_test/contrib/node/subsystems/BUILD                     |  18 ++++++
 contrib/node/tests/python/pants_test/contrib/node/subsystems/__init__.py               |   0
 contrib/node/tests/python/pants_test/contrib/node/subsystems/test_node_distribution.py |  56 +++++++++++++++++++
 pants.ini                                                                              |  10 ++--
 14 files changed, 254 insertions(+), 4 deletions(-)

Ran the new tests manually using ./pants test contrib/node::.

CI went green here:
https://travis-ci.org/pantsbuild/pants/builds/77203950

John Sirois
John Sirois
Eric Ayers
Eric Ayers
Tejal Desai
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...