Uh oh!
There was an error while loading. Please reload this page.
eliminate dev-only code on eject #53 #191 - #206
Conversation
ghost
commented
Jul 26, 2016
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 cla@fb.com. Thanks! |
Jiansen
commented
Jul 26, 2016
will look at the test problem |
ghost
commented
Jul 26, 2016
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Jiansen
commented
Jul 26, 2016
gaearon
commented
Jul 26, 2016
I don’t think What do you think is a reasonable solution here? |
Jiansen
commented
Jul 26, 2016
@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
|
gaearon
commented
Jul 26, 2016
What I meant is that, with this flag, we can run This is not useful to users because they can run |
Jiansen
commented
Jul 26, 2016
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 |
gaearon
commented
Jul 26, 2016
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 |
Jiansen
commented
Jul 26, 2016
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,
|
gaearon
commented
Aug 1, 2016
Closing in favor of #257. |
will be removed when the scripts are exposed to users on
ejectnpm packcopies all files to the created package. To adopt the approach proposed in #191 and give acleancode 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