-
-
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
Switch to Yarn Workspaces #3755
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2413af7
Switch to Yarn Workspaces
gaearon 3ebc525
Feedback
gaearon efc6da5
Move flowconfig
gaearon 651e29e
Use publish script
gaearon c47bcaf
Keep git status check
gaearon 0a6d95e
Fix Flow without perf penalty
gaearon de7cd49
Remove Flow from package.json "test"
gaearon 3f852a5
Try running it from script directly (?)
gaearon 194b12a
Try magic incantations
gaearon cf48276
Merge branch 'master' into workspaces
gaearon f5a17bb
lol flow COME ON
gaearon a5d7b90
Try to skip Flow on AppVeyor
gaearon ac267e7
-df
gaearon 7f24b2a
-df
gaearon 8f23335
-df
gaearon aec37ac
Try to fix CI
gaearon 4a0c86c
Revert unrelated changes
gaearon 1075380
Update CONTRIBUTING.md
gaearon 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--install.no-lockfile true |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
[ignore] | ||
.*/node_modules/eslint-plugin-jsx-a11y/.* | ||
|
||
[include] | ||
src/**/*.js | ||
<PROJECT_ROOT>/src/**/*.js | ||
|
||
[ignore] | ||
.*/node_modules/.* | ||
.*/.git/.* | ||
.*/__test__/.* | ||
.*/fixtures/.* | ||
|
||
[libs] | ||
flow/ | ||
|
||
[options] | ||
module.file_ext=.js | ||
sharedmemory.hash_table_pow=19 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
declare module 'anser' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'babel-code-frame' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'html-entities' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'settle-promise' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module 'source-map' { | ||
declare module.exports: any; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,8 +99,8 @@ yarn config set registry "$custom_registry_url" | |
npx [email protected] -u user -p password -e [email protected] -r "$custom_registry_url" --quotes | ||
|
||
# Publish the monorepo | ||
git clean -f | ||
./tasks/release.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest | ||
git clean -df | ||
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest | ||
|
||
# ****************************************************************************** | ||
# Test --scripts-version with a version number | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,8 +91,8 @@ yarn config set registry "$custom_registry_url" | |
npx [email protected] -u user -p password -e [email protected] -r "$custom_registry_url" --quotes | ||
|
||
# Publish the monorepo | ||
git clean -f | ||
./tasks/release.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest | ||
git clean -df | ||
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest | ||
|
||
# ****************************************************************************** | ||
# Now that we have published them, create a clean app folder and install them. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,12 @@ npx [email protected] -u user -p password -e [email protected] -r "$custom_reg | |
cd packages/react-error-overlay/ | ||
./node_modules/.bin/eslint --max-warnings 0 src/ | ||
yarn test | ||
|
||
if [ $APPVEYOR != 'True' ]; then | ||
# Flow started hanging on AppVeyor after we moved to Yarn Workspaces :-( | ||
yarn flow | ||
fi | ||
|
||
cd ../.. | ||
cd packages/react-dev-utils/ | ||
yarn test | ||
|
@@ -134,8 +140,8 @@ CI=true yarn test | |
# Test local start command | ||
yarn start --smoke-test | ||
|
||
git clean -f | ||
./tasks/release.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest | ||
git clean -df | ||
./tasks/publish.sh --yes --force-publish=* --skip-git --cd-version=prerelease --exact --npm-tag=latest | ||
|
||
# ****************************************************************************** | ||
# Install react-scripts prerelease via create-react-app prerelease. | ||
|
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.
Why did this change in this PR? Do workspaces have an issue with working directories?
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 don't remember. I think it might not be related to YW but to Yarn in general (which sets cwd to the project you run the script in).