Skip to content

Commit 59a7b28

Browse files
feat: welcome
1 parent f0d15a1 commit 59a7b28

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/index.ts

+13
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ import {promptProjectName, promptStarter, promptTemplate} from './services/promp
66
import type {GeneratorInput} from './types/generator';
77
import {checkNodeVersion} from './utils/env.utils';
88
import {assertAnswerCtrlC} from './utils/prompts.utils';
9+
import {grey} from 'kleur';
10+
import {version} from '../package.json';
11+
12+
const JUNO_LOGO = ` __ __ __ __ _ ____
13+
__) || | || \\| |/ \\
14+
\\___/ \\___/ |_|\\__|\\____/`;
15+
16+
const WELCOME = `${JUNO_LOGO} CLI ${grey(`v${version}`)}
17+
18+
Welcome 👋
19+
`;
920

1021
export const run = async () => {
1122
const {valid} = checkNodeVersion();
@@ -14,6 +25,8 @@ export const run = async () => {
1425
return;
1526
}
1627

28+
console.log(WELCOME);
29+
1730
// TODO: Welcome text "Hey 👋! Welcome to Juno blahblahblah..."
1831

1932
const {action}: Pick<GeneratorInput, 'action'> = await prompts({

0 commit comments

Comments
 (0)