Home / Function/ setup() — astro Function Reference

setup() — astro Function Reference

Architecture documentation for the setup() function in codspeed-setup.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  477d6843_2f4c_fd67_a0e0_ce6fba11eb02["setup()"]
  4855f18f_6cc0_6561_6bbb_0ad232d1f185["codspeed-setup.js"]
  477d6843_2f4c_fd67_a0e0_ce6fba11eb02 -->|defined in| 4855f18f_6cc0_6561_6bbb_0ad232d1f185
  f1feebfd_7bf6_a301_7fce_29c4c8bbc773["makeProject()"]
  477d6843_2f4c_fd67_a0e0_ce6fba11eb02 -->|calls| f1feebfd_7bf6_a301_7fce_29c4c8bbc773
  style 477d6843_2f4c_fd67_a0e0_ce6fba11eb02 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmark/bench/codspeed-setup.js lines 10–22

async function setup() {
	console.log('Setting up render-bench project...');
	const render = await makeProject('render-bench');
	const root = fileURLToPath(render);

	console.log(`Building project at ${root}...`);
	await exec(astroBin, ['build'], {
		nodeOptions: {
			cwd: root,
			stdio: 'inherit',
		},
	});
}

Subdomains

Frequently Asked Questions

What does setup() do?
setup() is a function in the astro codebase, defined in benchmark/bench/codspeed-setup.js.
Where is setup() defined?
setup() is defined in benchmark/bench/codspeed-setup.js at line 10.
What does setup() call?
setup() calls 1 function(s): makeProject.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free