-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into fix/hmr-ping
- Loading branch information
Showing
86 changed files
with
1,291 additions
and
241 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
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ test/node_modules | |
*.log | ||
pids | ||
*.cpuprofile | ||
*.heapsnapshot | ||
|
||
# coverage | ||
.nyc_output | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
{ | ||
"name": "bench-app-router-server", | ||
"private": true, | ||
"license": "MIT", | ||
"dependencies": { | ||
"webpack-bundle-analyzer": "^4.6.1", | ||
"webpack-stats-plugin": "^1.1.0", | ||
"next": "workspace:*", | ||
"next-minimal-server": "workspace:*" | ||
}, | ||
"scripts": { | ||
"build-application": "next build", | ||
"start": "next-minimal-server" | ||
} | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "fuzzponent", | ||
"bin": { | ||
"fuzzponent": "./bin/fuzzponent.js" | ||
}, | ||
"dependencies": { | ||
"@babel/types": "7.18.0", | ||
"@babel/generator": "7.18.0", | ||
"random-seed": "0.3.0", | ||
"yargs": "16.2.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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Fuzzponent | ||
|
||
Originally built by [Dale Bustad](https://github.com/divmain/fuzzponent) while at Vercel. | ||
|
||
[Original repository](https://github.com/divmain/fuzzponent). | ||
|
||
Generate a nested React component dependency graph, useful for benchmarking. | ||
|
||
## Example | ||
|
||
To create a dependency tree with `3020` files in the `components` directory: | ||
|
||
``` | ||
fuzzponent --depth 2 --seed 206 --outdir components | ||
``` | ||
|
||
You can then import the entrypoint of the dependency tree at `components/index.js`. | ||
|
||
## Options | ||
|
||
``` | ||
Options: | ||
--help Show help [boolean] | ||
--version Show version number [boolean] | ||
-d, --depth component hierarchy depth [number] [required] | ||
-s, --seed prng seed [number] [required] | ||
-o, --outdir the directory where components should be written | ||
[string] [default: "/Users/timneutkens/projects/next.js/bench/nested-deps"] | ||
--minLen the smallest acceptable component name length | ||
[number] [default: 18] | ||
--maxLen the largest acceptable component name length | ||
[number] [default: 24] | ||
--minChild the smallest number of acceptable component children | ||
[number] [default: 4] | ||
--maxChild the largest number of acceptable component children | ||
[number] [default: 80] | ||
--extension extension to use for generated components | ||
[string] [default: "jsx"] | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
components/* | ||
CPU* |
13 changes: 13 additions & 0 deletions
13
bench/nested-deps-app-router/app/client-components-only/page.js
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,13 @@ | ||
'use client' | ||
import React from 'react' | ||
|
||
import Comp from '../../components/index.jsx' | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<h1>Hello!!!!!!!!!!!!</h1> | ||
<Comp /> | ||
</> | ||
) | ||
} |
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,14 @@ | ||
import React from 'react' | ||
|
||
export const metadata = { | ||
title: 'Next.js', | ||
description: 'Generated by Next.js', | ||
} | ||
|
||
export default function RootLayout({ children }) { | ||
return ( | ||
<html lang="en"> | ||
<body>{children}</body> | ||
</html> | ||
) | ||
} |
8 changes: 8 additions & 0 deletions
8
bench/nested-deps-app-router/app/server-and-client-components/client-component.js
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,8 @@ | ||
'use client' | ||
import React from 'react' | ||
|
||
import Comp from '../../components/index.jsx' | ||
|
||
export default function Home() { | ||
return <Comp /> | ||
} |
12 changes: 12 additions & 0 deletions
12
bench/nested-deps-app-router/app/server-and-client-components/page.js
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,12 @@ | ||
import React from 'react' | ||
import Comp from '../../components/index.jsx' | ||
import ClientComponent from './client-component' | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<Comp /> | ||
<ClientComponent /> | ||
</> | ||
) | ||
} |
6 changes: 6 additions & 0 deletions
6
bench/nested-deps-app-router/app/server-components-only/page.js
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,6 @@ | ||
import React from 'react' | ||
import Comp from '../../components/index.jsx' | ||
|
||
export default function Home() { | ||
return <Comp /> | ||
} |
Oops, something went wrong.