-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: apply patches for v4 (#33170)
* chore: apply patches for v4 * adjust publish-next command * replace alpha with next * switch to node14 in circleci * update yarn.lock * set COMPILER_OPTIONS and update circleci config * use sudo for now
- Loading branch information
Showing
122 changed files
with
278 additions
and
289 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 |
---|---|---|
|
@@ -8,14 +8,14 @@ executors: | |
image: | ||
type: string | ||
# First 10.x LTS release, but old Yarn | ||
default: "12.13.0" | ||
default: "14.17.0" | ||
docker: | ||
- image: cimg/node:<< parameters.image >> | ||
|
||
aliases: | ||
e2e-executor: &e2e-executor | ||
docker: | ||
- image: cypress/browsers:node12.18.3-chrome87-ff82 | ||
- image: cypress/browsers:node14.15.0-chrome86-ff82 | ||
|
||
restore_cache: &restore_cache | ||
restore_cache: | ||
|
@@ -102,7 +102,7 @@ aliases: | |
requires: | ||
- lint | ||
- typecheck | ||
- unit_tests_node12 | ||
- unit_tests_node14 | ||
|
||
e2e_tests_production_runtime_alias: &e2e_tests_production_runtime_alias | ||
<<: *e2e-executor | ||
|
@@ -188,7 +188,7 @@ jobs: | |
- checkout | ||
- run: ./scripts/assert-changed-files.sh "packages/*|(e2e|integration)-tests/*|.circleci/*|scripts/e2e-test.sh|yarn.lock" | ||
# python 2 is not built in and node-gyp needs it to build lmdb | ||
- run: apt-get update && apt-get install python -y | ||
- run: sudo apt-get update && sudo apt-get install python -y | ||
- <<: *restore_cache | ||
- <<: *install_node_modules | ||
- <<: *check_lockfile | ||
|
@@ -227,11 +227,6 @@ jobs: | |
- run: yarn typecheck | ||
- run: yarn check-repo-fields | ||
|
||
unit_tests_node12: | ||
executor: | ||
name: node | ||
<<: *test_template | ||
|
||
unit_tests_node14: | ||
executor: | ||
name: node | ||
|
@@ -255,9 +250,9 @@ jobs: | |
command: | | ||
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV | ||
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV | ||
- run: nvm install v12 | ||
- run: nvm alias default v12 | ||
- run: nvm use v12 | ||
- run: nvm install v14 | ||
- run: nvm alias default v14 | ||
- run: nvm use v14 | ||
- run: npm i -g [email protected] | ||
- e2e-test: | ||
test_path: integration-tests/gatsby-source-wordpress | ||
|
@@ -477,7 +472,7 @@ jobs: | |
steps: | ||
- checkout | ||
# jq is helpful for parsing json & python required for node-gyp to build lmdb | ||
- run: apt-get update && apt-get install jq python -y | ||
- run: sudo apt-get update && sudo apt-get install jq python -y | ||
- <<: *restore_cache | ||
- <<: *install_node_modules | ||
- run: yarn markdown | ||
|
@@ -489,7 +484,7 @@ jobs: | |
executor: node | ||
steps: | ||
- checkout | ||
- run: apt-get update && apt-get install jq python -y | ||
- run: sudo apt-get update && sudo apt-get install jq python -y | ||
- <<: *restore_cache | ||
- <<: *install_node_modules | ||
- run: git config --global user.name "GatsbyJS Bot" | ||
|
@@ -540,11 +535,11 @@ jobs: | |
|
||
- <<: *attach_to_bootstrap | ||
- run: | ||
name: Install node 12.13 and yarn | ||
name: Install node 14.17 and yarn | ||
command: | | ||
nvm install 12.13.0 | ||
nvm alias default 12.13.0 | ||
nvm use 12.13.0 | ||
nvm install 14.17.0 | ||
nvm alias default 14.17.0 | ||
nvm use 14.17.0 | ||
choco install yarn | ||
- run: | ||
name: Rebuild packages for windows | ||
|
@@ -571,7 +566,7 @@ jobs: | |
steps: | ||
- checkout | ||
# python 2 is not built in and node-gyp needs it to build lmdb | ||
- run: apt-get update && apt-get install python -y | ||
- run: sudo apt-get update && sudo apt-get install python -y | ||
- run: | ||
name: "Update React to prerelease" | ||
command: "REACT_CHANNEL=<< parameters.version >> node ./scripts/upgrade-react" | ||
|
@@ -664,12 +659,6 @@ workflows: | |
requires: | ||
- lint | ||
- bootstrap | ||
- unit_tests_node12: | ||
<<: *ignore_docs | ||
requires: | ||
- lint | ||
- typecheck | ||
- bootstrap | ||
- unit_tests_node14: | ||
<<: *ignore_docs | ||
requires: | ||
|
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
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 |
---|---|---|
|
@@ -43,6 +43,6 @@ | |
"slash": "^3.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.15.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -100,6 +100,6 @@ | |
"postinstall": "node scripts/postinstall.js" | ||
}, | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.15.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -50,6 +50,6 @@ | |
"typescript": "^4.3.5" | ||
}, | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.15.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -36,6 +36,6 @@ | |
"preval.macro": "^5.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.15.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -56,6 +56,6 @@ | |
"whatwg-fetch": "^3.6.2" | ||
}, | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.15.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -41,6 +41,6 @@ | |
}, | ||
"types": "index.d.ts", | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.15.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -44,6 +44,6 @@ | |
"dist/" | ||
], | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.15.0" | ||
} | ||
} |
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
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
Oops, something went wrong.