intro.ts — astro Source File
Architecture documentation for intro.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 8f642218_1d5a_b367_100c_5af05d2a8b8d["intro.ts"] 0d2ed6a4_ba13_53b9_91e8_1ccbdcaac22b["../messages.js"] 8f642218_1d5a_b367_100c_5af05d2a8b8d --> 0d2ed6a4_ba13_53b9_91e8_1ccbdcaac22b 6d4ff623_63ed_2360_85a7_197d38173f66["./actions/context.js"] 8f642218_1d5a_b367_100c_5af05d2a8b8d --> 6d4ff623_63ed_2360_85a7_197d38173f66 44da03af_fba3_824c_9c9c_2685d1d33d31["cli-kit"] 8f642218_1d5a_b367_100c_5af05d2a8b8d --> 44da03af_fba3_824c_9c9c_2685d1d33d31 style 8f642218_1d5a_b367_100c_5af05d2a8b8d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { color, label } from '@astrojs/cli-kit';
import { banner, say } from '../messages.js';
import type { Context } from './context.js';
export async function intro(
ctx: Pick<Context, 'skipHouston' | 'welcome' | 'hat' | 'tie' | 'version' | 'username' | 'fancy'>,
) {
banner();
if (!ctx.skipHouston) {
const { welcome, hat, tie } = ctx;
await say(
[
[
'Welcome',
'to',
label('astro', color.bgGreen, color.black),
Promise.resolve(ctx.version).then(
(version) => (version ? color.green(`v${version}`) : '') + ',',
),
Promise.resolve(ctx.username).then((username) => `${username}!`),
],
welcome ?? "Let's build something awesome!",
] as string[],
{ clear: true, hat, tie },
);
}
}
Domain
Subdomains
Functions
Dependencies
- ../messages.js
- ./actions/context.js
- cli-kit
Source
Frequently Asked Questions
What does intro.ts do?
intro.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in intro.ts?
intro.ts defines 1 function(s): intro.
What does intro.ts depend on?
intro.ts imports 3 module(s): ../messages.js, ./actions/context.js, cli-kit.
Where is intro.ts in the architecture?
intro.ts is located at packages/create-astro/src/actions/intro.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/create-astro/src/actions).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free