Home / File/ integration.ts — astro Source File

integration.ts — astro Source File

Architecture documentation for integration.ts, a typescript file in the astro codebase. 2 imports, 0 dependents.

File typescript 2 imports

Entity Profile

Dependency Diagram

graph LR
  6f3514e3_2bad_cb99_895f_7c8d1bc8f6d0["integration.ts"]
  d9a92db9_c95e_9165_13ac_24b3d859d946["node:url"]
  6f3514e3_2bad_cb99_895f_7c8d1bc8f6d0 --> d9a92db9_c95e_9165_13ac_24b3d859d946
  f16d8c76_2866_6150_bd14_0347b59abfe9["astro"]
  6f3514e3_2bad_cb99_895f_7c8d1bc8f6d0 --> f16d8c76_2866_6150_bd14_0347b59abfe9
  style 6f3514e3_2bad_cb99_895f_7c8d1bc8f6d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { fileURLToPath } from 'node:url';
import type { AstroIntegration } from 'astro';

// API Reference: https://docs.astro.build/en/reference/integrations-reference/
export default {
	name: 'my-astro-integration',
	hooks: {
		'astro:config:setup': ({ addDevToolbarApp }) => {
			addDevToolbarApp({
				id: 'my-toolbar-app',
				name: 'My Toolbar App',
				icon: '🚀',
				entrypoint: fileURLToPath(new URL('./app.js', import.meta.url)),
			});
		},
	},
} satisfies AstroIntegration;

Dependencies

  • astro
  • node:url

Frequently Asked Questions

What does integration.ts do?
integration.ts is a source file in the astro codebase, written in typescript.
What does integration.ts depend on?
integration.ts imports 2 module(s): astro, node:url.
Where is integration.ts in the architecture?
integration.ts is located at examples/toolbar-app/src/integration.ts (directory: examples/toolbar-app/src).

Analyze Your Own Codebase

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

Try Supermodel Free