-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix running as child process #29
Conversation
This makes sense and as long as the build passes I say |
Current coverage is 100%@@ master #29 diff @@
===================================
Files 8 8
Lines 187 187
Methods 0 0
Messages 0 0
Branches 0 0
===================================
Hits 187 187
Misses 0 0
Partials 0 0
|
Cheers 🍻 |
FYI, this broke the following case:
Because |
PR #29 broke the following case: ``` p-s -p lint,test ``` This commit fixes it by getting the scripts from the args first and seeing if there are any scripts available to run. If not, then we show the help message.
PR #29 broke the following case: ``` p-s -p lint,test ``` This commit fixes it by getting the scripts from the args first and seeing if there are any scripts available to run. If not, then we show the help message.
Also @nkbt, as a thanks for the contribution, I've given you write access to this repo. Please continue to make pull requests as you see fit :-) |
PR #29 broke the following case: ``` p-s -p lint,test ``` This commit fixes it by getting the scripts from the args first and seeing if there are any scripts available to run. If not, then we show the help message.
PR #29 broke the following case: ``` p-s -p lint,test ``` This commit fixes it by getting the scripts from the args first and seeing if there are any scripts available to run. If not, then we show the help message.
PR #29 broke the following case: ``` p-s -p lint,test ``` This commit fixes it by getting the scripts from the args first and seeing if there are any scripts available to run. If not, then we show the help message.
PR #29 broke the following case: ``` p-s -p lint,test ``` This commit fixes it by getting the scripts from the args first and seeing if there are any scripts available to run. If not, then we show the help message.
PR #29 broke the following case: ``` p-s -p lint,test ``` This commit fixes it by getting the scripts from the args first and seeing if there are any scripts available to run. If not, then we show the help message.
PR #29 broke the following case: ``` p-s -p lint,test ``` This commit fixes it by getting the scripts from the args first and seeing if there are any scripts available to run. If not, then we show the help message.
Oh wow, sorry for the break, I don't have this case =(... Prob we need some e2e tests |
I should set up |
The problem I see with using |
I would go for just a shell script for CI/local =). Bash for the win. something like npm start blah > test.log
cat test.log | grep "all good" I have bunch of this sort of e2e tests for our cli tools and docker images. |
Created #31 for anyone to take ownership 👍 |
I'll get some basic stuff done since I have bunch of little scripts ready
|
Nixt looks pretty sick by the way. Ill give it a try here
|
Sweet! 👍 |
What:
When running as child process with arguments (like
--config smth
),process.argv
is never empty, though commander has no args.Also it would be logically more correct to check
program.args
, since later we use it asprogram.args[0]
.Why
I want to proxy p-s from my component like
To avoid adding extra dependency.