forked from facebook/create-react-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Yarn Workspaces (facebook#3755)
* Switch to Yarn Workspaces * Feedback * Move flowconfig * Use publish script * Keep git status check * Fix Flow without perf penalty * Remove Flow from package.json "test" * Try running it from script directly (?) * Try magic incantations * lol flow COME ON * Try to skip Flow on AppVeyor * -df * -df * -df * Try to fix CI * Revert unrelated changes * Update CONTRIBUTING.md
- Loading branch information
Showing
12 changed files
with
65 additions
and
107 deletions.
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