-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Initial monorepo configuration #419
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 cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
@@ -20,6 +20,7 @@ | |||
"files": [ | |||
"bin", | |||
"config", | |||
"PATENTS", |
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.
Please do not move the PATENTS file, it must stay at the top of the repo
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.
Fixed, sorry about that
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.
Thanks! No worries, some of the legal related things unfortunately need some special treatment :)
Sorry for the trouble, mind rebasing? Thanks! |
@gaearon No problem at all |
@gaearon I'm trying to be a good citizen keeping this in sync, given this PR touches so much surface area it is going to get out of sync pretty easily. I rebased again, just ping me if this is going to sit for a while and I will rebase once / if it goes through review. Thanks! |
Issue #450 will cause an issue with this as well, do you prefer I dump the README.md in the /packages/create-react-app directory and put a more generic one in the root directory? |
Sorry, I’ve been jumping between projects lately, and CRA is currently on hold until enough fixes accumulate. I’ll get back to this when I’m ready to cut 0.3.0 (or maybe even get right to 1.0.0). |
I would like root |
I also just merged #257 which changes some things so you’ll need to rebase again, but I’m ready to get this in right after that. Sorry about the back and forth. It’s a massive change and I appreciate the effort. |
No problem, I'll look into that today and rebase up as well. Cheers On Fri, Sep 2, 2016 at 8:50 AM, Dan Abramov notifications@github.com
|
wow! Lot's of awesome changes! I need to parse through some of this, I may need to take this on tomorrow. I'll try and get it out ASAP. |
@ryanyogan This is blocking some future improvements I want to make (since they’ll need new packages). Can you please let me know if you can revisit this? Let us know if you’re too busy and we could ask somebody else to try to get it to a mergeable state. Your help is very much appreciated either way. Thanks! |
Hi Dan, sorry I have been flying around for some interviews, I can give On Fri, Sep 16, 2016 at 5:04 PM, Dan Abramov notifications@github.com
|
@ryanyogan If you haven’t had time yet, feel free to push work in progress and I’m sure somebody can pick it up! |
Will do, sorry, it's been a crazy week. On Sep 18, 2016 12:11 PM, "Dan Abramov" notifications@github.com wrote:
|
This is now in. Thanks! |
This PR augments the directory structure to conform to a multi-package "monorepo"
Tree structure changes
Status
Given this PR modifies a good portion of the application structure, it may go out of sync quickly.
This PR has been updated to reflect:
master: 7c912b5ffe48eda1c8b0b6f005a117d5764eb0a6
on August 15th, 2016 at 12:15PM PDT
Please ping @ryanyogan if you are reviewing and it is no longer in sync.
How to test
sh tasks/e2e.sh
orcd packages/react-scripts && npm run e2e
cd packages/create-react-app
npm uninstall create-react-app -g
we need to remove your official package temporarilynpm i . -g
<-- this command will install from the local directorynpm uninstall create-react-app -g
when complete, you don't want this test to clash with the official package. Now you can go back to the officialnpm i create-react-app -g
cd packages/create-react-app && npm i
cd packages/react-scripts && npm i && npm run create-react-app test-app
npm run build
build
folder in the root directory, don't forget to trash it.test-app
in thepackages/react-scripts
directory, you will want to trash that once complete. You will also have anode_modules
folder in both thepackages/create-react-app
folder and thepackages/react-scripts
folder, you will want to delete them withrm -rf node_modules
in the respective directory.Noteable changes / todo's
tasks/e2e.sh
file, I am not happy with them I think this file can be improved upon.