-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Add support for yarn and lerna monorepos. #3741
Merged
+535
−52
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
bf2d814
Support for multiple source paths via package.json srcPaths entry.
d9f5cf7
Clean up, use file matching (similar to original) in webpack configs …
bradfordlemley 12e76ad
Remove package lock files.
bradfordlemley bd1124d
Fix for eject.
bradfordlemley eae24e9
Filter tests to run only tests in monorepo components included by the…
bradfordlemley f4b3a0d
Fix conditions for when to use template.
bradfordlemley 739b59b
Fix eject.
bradfordlemley 7227e5d
Remove code that is not needed w/ Jest 22.
bradfordlemley a93573d
Include all cra-comp tests in monorepo instead of trying to include o…
bradfordlemley 8102907
Pin find-pkg version.
bradfordlemley 9a1b92c
Hopefully fix jest test file matching on windows by removing first sl…
bradfordlemley f4f2882
E2E tests for monorepo.
bradfordlemley d8e0319
Run monorepo tests in CI.
bradfordlemley f96d04c
Fix and test post-eject build.
bradfordlemley 565c1d7
Fix e2e test.
bradfordlemley 75ae0c5
Fix test suite names in appveyor.
bradfordlemley fbc6bde
Include individual package dirs as srcPaths instead of top-level mono…
bradfordlemley 21f0b00
Fix running tests after eject.
bradfordlemley 9feda8b
Clean up test workspace, add some verifcations.
bradfordlemley 8ab33c7
Cleanup.
bradfordlemley d52e904
Try to fix hang when running test on appveyor.
bradfordlemley 79ac815
Don't write babel or lint config to package.json when ejecting.
bradfordlemley 3e81144
Incorporate review comments.
bradfordlemley ec6f5a8
Fixes for windows.
bradfordlemley 978674f
Fix for kitchensink mocha tests compiling.
bradfordlemley fc9b890
Add lerna monorepo test.
bradfordlemley 4d0bc68
Fix lerna bootstrap on windows.
bradfordlemley 9e7490c
Incorporate more review comments:
bradfordlemley 50b4666
Add monorepo info to user guide.
bradfordlemley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Clean up, use file matching (similar to original) in webpack configs …
…instead of matching function.
commit d9f5cf77e8e3bc312d19057fda90d9de3067be50
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Could you please explain why this has become necessary? Is this because non-CRA packages have their source code at the same level of nesting as their own
node_modules
and we want to skip those?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.
Yep, since srcPaths includes comp1 root (or or top-level monorepo root, depending on decision above), both comp1/file.js and comp1/node_modules/somedep/somefile.js get included in the include filter, so we need to filter out node_modules. (Originally, only app/src was included, so there was no need to filter out app/node_modules.)
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.
Am not sure this is getting exclufed. I can still find node_modules inside the comp1 that is inside app3. Doesnt it completely exclude nodemodules?
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.
These webpack excludes just exclude them from getting transpiled and linted.