Uh oh!
There was an error while loading. Please reload this page.
Use "commander" for cli argv handling - #1195
Conversation
gaearon
commented
Dec 7, 2016
Could you show the output difference before and after? |
Before:
After:
|
gaearon
commented
Dec 10, 2016
Does the CLI still run on old Node? (It should print an explanation before exiting the process.) |
EnoahNetzach
commented
Dec 10, 2016
I tried it on a docker running The output was the same. |
gaearon
commented
Dec 10, 2016
Yep. The thinking is that with time, minimal version of |
EnoahNetzach
commented
Dec 10, 2016
Should we also add a quick check in travis? |
gaearon
commented
Dec 10, 2016
It would be nice. |
| if [ `node --version | sed -e 's/^v//' -e 's/\..\+//g'` -lt 4 ] | ||
| then | ||
| cd $temp_app_path | ||
| node "$root_path"/packages/create-react-app/index.js test-node-version && exit 1 || exit 0 |
There was a problem hiding this comment.
We should verify that it prints a nice message instead of failing with e.g. a parse error.
gaearon
commented
Dec 11, 2016
I'm a bit concerned the project is abandoned: tj/commander.js#568. |
gaearon
commented
Dec 11, 2016
Yarn uses it so should be fine. Thanks! |
* Use "commander" for cli argv handling * Handle different scripts version forms and exits without a name given * Revert comment about min supported node version * Check sooner for the minimal node version * Add travis test for node <4 * Parse stderr in node versions <4
* Use "commander" for cli argv handling * Handle different scripts version forms and exits without a name given * Revert comment about min supported node version * Check sooner for the minimal node version * Add travis test for node <4 * Parse stderr in node versions <4
commanderis more easily configurable than the previous tool, and gives some output out-of-the-box.Also I've bumped the comment on the minimal node version as per #575.