-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Updates storybook-start.js to use child_process instead of shelljs #3527
Conversation
@@ -1,9 +1,9 @@ | |||
#!/usr/bin/env node | |||
/* eslint-disable no-console */ | |||
|
|||
/* eslint-disable-next-line camelcase */ | |||
import child_process from 'child_process'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you don't like camelCase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We like camelCase so much we lint in favour of it?
You could possibly import like:
import { spawn } from 'child_process';
I think that should make the warning go away?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sky-franciscogoncalves Do you think you could fix this minor comment?, and we can get this in the next major release!
Codecov Report
@@ Coverage Diff @@
## master #3527 +/- ##
=======================================
Coverage 37.61% 37.61%
=======================================
Files 459 459
Lines 10377 10377
Branches 928 922 -6
=======================================
Hits 3903 3903
+ Misses 5932 5903 -29
- Partials 542 571 +29
Continue to review full report at Codecov.
|
Thanks for contributing @sky-franciscogoncalves 👍 |
Issue
What I did
Updated react-native's
storybook-start.js
to usechild_process
instead of ShellJS. This is because the later does not support running commands that require interactive input, as you can see here.The need to use these type of commands, started when I updated both Haul and Storybook to their last versions.
How to test
To test this you should update Haul to v1.0.0-rc.0 and Storybook to v4.0.0-alpha.4. Then you should perform
storybook start -p 7007 --haul haul.config.js --platform all
. Where the config file follows Haul's new configuration style.Please let me know if I can improve this PR in anyway.