Home / File/ index.ts — astro Source File

index.ts — astro Source File

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

Entity Profile

Dependency Diagram

graph LR
  5877bbe4_19d7_1a52_f53b_c485a4216297["index.ts"]
  f7d5a8b1_6d20_6c83_f593_71bffeaeaf3e["../domain/help-payload.js"]
  5877bbe4_19d7_1a52_f53b_c485a4216297 --> f7d5a8b1_6d20_6c83_f593_71bffeaeaf3e
  style 5877bbe4_19d7_1a52_f53b_c485a4216297 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { HelpPayload } from '../domain/help-payload.js';

export const DEFAULT_HELP_PAYLOAD: HelpPayload = {
	commandName: 'astro',
	usage: '[command] [...flags]',
	headline: 'Build faster websites.',
	tables: {
		Commands: [
			['add', 'Add an integration.'],
			['build', 'Build your project and write it to disk.'],
			['check', 'Check your project for errors.'],
			['create-key', 'Create a cryptography key'],
			['db', 'Manage your Astro database.'],
			['dev', 'Start the development server.'],
			['docs', 'Open documentation in your web browser.'],
			['info', 'List info about your current Astro setup.'],
			['preview', 'Preview your build locally.'],
			['sync', 'Generate content collection types.'],
			['preferences', 'Configure user preferences.'],
			['telemetry', 'Configure telemetry settings.'],
		],
		'Global Flags': [
			['--config <path>', 'Specify your config file.'],
			['--root <path>', 'Specify your project root folder.'],
			['--site <url>', 'Specify your project site.'],
			['--base <pathname>', 'Specify your project base.'],
			['--verbose', 'Enable verbose logging.'],
			['--silent', 'Disable all logging.'],
			['--version', 'Show the version number and exit.'],
			['--help', 'Show this help message.'],
		],
	},
};

Domain

Dependencies

  • ../domain/help-payload.js

Frequently Asked Questions

What does index.ts do?
index.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain.
What does index.ts depend on?
index.ts imports 1 module(s): ../domain/help-payload.js.
Where is index.ts in the architecture?
index.ts is located at packages/astro/src/cli/help/index.ts (domain: CoreAstro, directory: packages/astro/src/cli/help).

Analyze Your Own Codebase

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

Try Supermodel Free