Closed mennopruijssers closed 8 years ago
(travis will fail until #268 is merged into master)
LGTM
Not sure I agree 100% with the approach here but we're on the right track. My 2c:
main.js
("testpop") is part of ringpop-node, then I think we should include it's dependencies in the dependencies
section of package.json
(and not devDependencies
, where it curently is); because it's a ringpop-node binary and it genuinely depends on those packages.tchannel
and commander
then we should move our "testpop" binary to a subdir with it's own package.json
. This is what ringpop-go does with its testpop..I do not agree with adding a new whitelist to the integration test runner script itself. This seems like an obscure place to list yet another set of dependencies and I can see someone getting tripped up by this in the future.
Closing since we need a better way of doing this.
Recently we used a dev-dependency in production code by accident. By pruning the dependencies to only use production dependencies during integration tests we make sure this doesn't happen again. However, while implementing it I discovered a problem with main.js: it requires
commander
andtchannel
which are both listed as dev-dependencies.