new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Next.js · API reference · all subjects

build commands

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Build commands for Next.js development

Build commands: pnpm --filter=next build builds the Next.js package; pnpm build builds all JS code; pnpm build-all builds all JS and Rust code; pnpm --filter=next exec taskr <task> runs a specific task.

Bundle Analyzer package not published to npm

The Bundle Analyzer package is not published to npm. Instead it is built and vendored into the main next package during its build process.

Fuzzponent command line tool for generating React component dependency graphs

Fuzzponent is a tool that generates a nested React component dependency graph, useful for benchmarking. It was originally built by Dale Bustad while at Vercel.

Fuzzponent basic usage example

To create a dependency tree with 3020 files in the components directory, run: fuzzponent --depth 2 --seed 206 --outdir components. The entrypoint of the dependency tree can then be imported at components/index.js.

Fuzzponent command line options reference

Fuzzponent accepts the following options: --help (boolean), --version (boolean), -d/--depth (number, required) for component hierarchy depth, -s/--seed (number, required) for prng seed, -o/--outdir (string, default: '/Users/timneutkens/projects/next.js/bench/nested-deps') for the directory where components should be written, --minLen (number, default: 18) for the smallest acceptable component name length, --maxLen (number, default: 24) for the largest acceptable component name length, --minChild (number, default: 4) for the smallest number of acceptable component children, --maxChild (number, default: 80) for the largest number of acceptable component children, and --extension (string, default: 'jsx') for the extension to use for generated components.

Give your agent this brain