-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Extract some utilities into a separate package #723
Conversation
Need to add |
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.
Ok, eject in the e2e test still tries to install our packages from |
var prompt = require('react-dev-utils/prompt'); | ||
prompt( | ||
'Are you sure you want to eat all the candy?', | ||
false |
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.
I always put a comment for boolean variables with what they mean, otherwise it's pretty confusing :)
/* isYesDefault*/ false
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.
Even better:
prompt('Are you sure you want to eat all the candy?', { default: false });
* Extract some utilities into a separate package * Add utils dir to `files` in package.json * Do not create an empty `utils` dir on eject
This makes projects cleaner after ejecting!