forked from vercel/next.js
-
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.
the way towards webpack 5 typings (vercel#29105)
Co-authored-by: sokra <[email protected]>
- Loading branch information
Showing
75 changed files
with
209,076 additions
and
238,602 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,2 @@ | ||
packages/next/bundles/** -text | ||
packages/next/compiled/** -text |
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 |
---|---|---|
|
@@ -53,7 +53,9 @@ jobs: | |
- uses: actions/cache@v2 | ||
id: cache-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
lint: | ||
|
@@ -63,7 +65,9 @@ jobs: | |
- uses: actions/cache@v2 | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
- run: ./scripts/check-manifests.js | ||
- run: yarn lint | ||
|
@@ -75,29 +79,44 @@ jobs: | |
env: | ||
NEXT_TELEMETRY_DISABLED: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
# https://github.com/actions/virtual-environments/issues/1187 | ||
- name: tune linux network | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
run: sudo ethtool -K eth0 tx off rx off | ||
|
||
- uses: actions/cache@v2 | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
- uses: actions/download-artifact@v2 | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
with: | ||
name: next-swc-binaries | ||
path: packages/next/build/swc/dist | ||
|
||
# Only check linux build for now, mac builds can sometimes be different even with the same code | ||
- run: | | ||
mv ./packages/next/build/swc/dist/next-swc.linux-x64-gnu.node \ | ||
./packages/next/native/next-swc.linux-x64-gnu.node | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
- run: ./scripts/check-pre-compiled.sh | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
||
- uses: EndBug/add-and-commit@v7 | ||
if: ${{ failure() }} | ||
with: | ||
add: 'packages/next/compiled packages/next/bundles --force' | ||
message: '⚙ Update compiled files' | ||
|
||
testUnit: | ||
name: Test Unit | ||
runs-on: ubuntu-latest | ||
|
@@ -110,7 +129,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
- run: node run-tests.js --type unit | ||
|
@@ -134,7 +155,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
- run: npm i -g [email protected] && npx playwright install-deps | ||
|
@@ -170,7 +193,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
- run: npm i -g [email protected] && npx playwright install-deps | ||
|
@@ -210,7 +235,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
- run: npm i -g [email protected] && npx playwright install-deps | ||
|
@@ -236,7 +263,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
# TODO: remove after we fix watchpack watching too much | ||
|
@@ -260,7 +289,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
- run: bash ./scripts/test-pnp.sh | ||
|
@@ -272,6 +303,8 @@ jobs: | |
needs: | ||
[ | ||
lint, | ||
check-examples, | ||
test-native, | ||
checkPrecompiled, | ||
testIntegration, | ||
testUnit, | ||
|
@@ -300,7 +333,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
- run: npm i -g [email protected] && npx playwright install-deps | ||
|
@@ -321,7 +356,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
- run: npx playwright install-deps && npx playwright install firefox | ||
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
|
@@ -348,7 +385,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
# TODO: use macos runner so that we can use playwright to test against | ||
|
@@ -380,7 +419,9 @@ jobs: | |
if: ${{needs.build.outputs.docsChange != 'docs only change'}} | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
|
||
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || npm i -g [email protected]' | ||
|
@@ -404,7 +445,9 @@ jobs: | |
- uses: actions/cache@v2 | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -422,7 +465,9 @@ jobs: | |
- uses: actions/cache@v2 | ||
id: restore-build | ||
with: | ||
path: ./* | ||
path: | | ||
./* | ||
!./.git | ||
key: ${{ github.sha }} | ||
- run: ./scripts/release-stats.sh | ||
- uses: ./.github/actions/next-stats-action | ||
|
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,5 +1,6 @@ | ||
{ | ||
"name": "nextjs-project", | ||
"version": "0.0.0", | ||
"private": true, | ||
"workspaces": [ | ||
"packages/*" | ||
|
@@ -61,14 +62,32 @@ | |
"@typescript-eslint/eslint-plugin": "4.29.1", | ||
"@typescript-eslint/parser": "4.29.1", | ||
"@vercel/fetch": "6.1.1", | ||
"@webassemblyjs/ast": "1.11.1", | ||
"@webassemblyjs/floating-point-hex-parser": "1.11.1", | ||
"@webassemblyjs/helper-api-error": "1.11.1", | ||
"@webassemblyjs/helper-buffer": "1.11.1", | ||
"@webassemblyjs/helper-code-frame": "npm:[email protected]", | ||
"@webassemblyjs/helper-module-context": "npm:[email protected]", | ||
"@webassemblyjs/helper-numbers": "1.11.1", | ||
"@webassemblyjs/helper-wasm-bytecode": "1.11.1", | ||
"@webassemblyjs/helper-wasm-section": "1.11.1", | ||
"@webassemblyjs/ieee754": "1.11.1", | ||
"@webassemblyjs/leb128": "1.11.1", | ||
"@webassemblyjs/utf8": "1.11.1", | ||
"@webassemblyjs/wasm-edit": "1.11.1", | ||
"@webassemblyjs/wasm-gen": "1.11.1", | ||
"@webassemblyjs/wasm-opt": "1.11.1", | ||
"@webassemblyjs/wasm-parser": "1.11.1", | ||
"@webassemblyjs/wast-parser": "npm:[email protected]", | ||
"@webassemblyjs/wast-printer": "1.11.1", | ||
"@zeit/next-css": "1.0.2-canary.2", | ||
"@zeit/next-sass": "1.0.2-canary.2", | ||
"@zeit/next-typescript": "1.1.2-canary.0", | ||
"abort-controller": "3.0.0", | ||
"alex": "9.1.0", | ||
"amphtml-validator": "1.0.33", | ||
"async-sema": "3.0.1", | ||
"browserslist": "^4.14.7", | ||
"browserslist": "4.16.6", | ||
"cheerio": "0.22.0", | ||
"clone": "2.1.2", | ||
"cookie": "0.4.1", | ||
|
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.