-
-
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
eliminate dev-only code on eject #53 #191 #206
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
will look at the test problem |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
I don’t think What do you think is a reasonable solution here? |
@gaearon , I don't have a good solution now. I am thinking if there is an alternative way to test the _eject_ed BTW, it looks that
Perhaps, we could make a
|
What I meant is that, with this flag, we can run This is not useful to users because they can run |
Yes, it is straightforward to see if there is any errors/warnings in local console, and any problem of starting server is obvious to be noticed when changes are made locally. But if users want to add CI Build to their react project, as what we did here, it might be worth to check the project can be started when installed in a clean environment (it usually takes a long time to do a clean re-install locally). An idea just come to my mind when typing the above. Following your plan in #191 , we can import |
If it can be built, it can be started. (At least that’s something we want to enforce.) Unless we screw up our configs, all
This will likely be confusing and error prone. Let’s just keep |
I agree with you. So let's leave the PR open for now. I will play around and try to develop a way to "ship dev-only or dep-only code" as you proposed in #191 . Before releasing the next version,
|
Closing in favor of #257. |
will be removed when the scripts are exposed to users on
eject
npm pack
copies all files to the created package. To adopt the approach proposed in #191 and give aclean
code in the published package , we may need to temporary add files to .npmignore before npm, similar to what we do to package.json code link