Skip to content

Commit 1a77b8a

Browse files
committed
feat(init): update nuxt icon with ascii art
1 parent 1afc06e commit 1a77b8a

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

packages/nuxi/src/commands/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default defineCommand({
8888

8989
let templateDownloadPath = resolve(cwd, ctx.args.dir)
9090

91-
logger.info(colors.greenBright(`Welcome to ${colors.bold(('Nuxt'))}!`))
91+
logger.info(colors.bold(`Welcome to Nuxt!`.split('').map(m => `\x1B[38;5;79m${m}`).join('')))
9292
logger.info(`Creating a new project in ${colors.cyan(relative(cwd, templateDownloadPath) || templateDownloadPath)}.`)
9393

9494
// Get template name

packages/nuxi/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const main = defineCommand({
3232
setupGlobalConsole({ dev })
3333

3434
if (hasTTY && (!command || command === 'init')) {
35-
logger.log(`${nuxtIcon}\n`)
35+
process.stdout.write(`${nuxtIcon}\n`)
3636
}
3737

3838
// Check Node.js version and CLI updates in background

packages/nuxi/src/utils/ascii.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
import { colors } from 'consola/utils'
2-
31
/**
4-
* Thank you to Matt Eason for the proposal of this ASCII art
5-
* https://bsky.app/profile/matteason.me/post/3lhwnl5e4g22l
2+
* Thank you to IndyJoenz for this ASCII art
3+
* https://bsky.app/profile/durdraw.org/post/3liadod3gv22a
64
*/
75
const icon = [
8-
` __`,
9-
` / \\ __ `,
10-
` / /\\ \\/ \\ `,
11-
` / / \\ /\\ \\ `,
12-
` / /___/ / _\\ \\ `,
13-
`/_______/ /____\\ `,
6+
` \x1B[38;5;8m \x1B[38;5;78m \x1B[38;5;78m \x1B[38;5;78m \x1B[38;5;78m \x1B[38;5;78m \x1B[38;5;79m \x1B[38;5;79m.\x1B[38;5;79md\x1B[38;5;79m$\x1B[38;5;79mb\x1B[38;5;79m.`,
7+
` \x1B[38;5;8m \x1B[38;5;78m \x1B[38;5;78m \x1B[38;5;78m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79mi\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79mA\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79mL\x1B[38;5;79m \x1B[38;5;78m \x1B[38;5;73m.\x1B[38;5;73md\x1B[38;5;73m$\x1B[38;5;73mb`,
8+
` \x1B[38;5;8m \x1B[38;5;78m \x1B[38;5;78m \x1B[38;5;79m \x1B[38;5;79m.\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79mF\x1B[38;5;79m\`\x1B[38;5;79m \x1B[38;5;79m\`\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79mL\x1B[38;5;79m.\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73mA\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m.`,
9+
` \x1B[38;5;8m \x1B[38;5;78m \x1B[38;5;79m \x1B[38;5;79mj\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m'\x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m\`\x1B[38;5;79m4\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m:\x1B[38;5;73m\`\x1B[38;5;73m \x1B[38;5;73m\`\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m.`,
10+
` \x1B[38;5;8m \x1B[38;5;78m \x1B[38;5;79mj\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m'\x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;73m.\x1B[38;5;73m4\x1B[38;5;73m$\x1B[38;5;73m:\x1B[38;5;73m \x1B[38;5;79m \x1B[38;5;73m \x1B[38;5;79m \x1B[38;5;73m\`\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m.`,
11+
` \x1B[38;5;79m \x1B[38;5;79mj\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m\`\x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;73m.\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m:\x1B[38;5;79m \x1B[38;5;79m \x1B[38;5;73m \x1B[38;5;73m \x1B[38;5;73m \x1B[38;5;73m \x1B[38;5;73m\`\x1B[38;5;73m4\x1B[38;5;73m$\x1B[38;5;73mL`,
12+
` \x1B[38;5;79m:\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m:\x1B[38;5;79m_\x1B[38;5;79m_\x1B[38;5;79m_\x1B[38;5;79m_\x1B[38;5;79m.\x1B[38;5;73md\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m:\x1B[38;5;78m \x1B[38;5;78m \x1B[38;5;73m_\x1B[38;5;73m_\x1B[38;5;73m_\x1B[38;5;73m_\x1B[38;5;73m_\x1B[38;5;73m.\x1B[38;5;73m:\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m:`,
13+
` \x1B[38;5;79m\`\x1B[38;5;79m4\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;79m$\x1B[38;5;73mP\x1B[38;5;73m\`\x1B[38;5;73m \x1B[38;5;73m.\x1B[38;5;79mi\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73m$\x1B[38;5;73mP\x1B[38;5;73m\``,
14+
`\x1B[0m`,
1415
]
1516

16-
export const nuxtIcon = icon.map(line => colors.greenBright(line)).join('\n')
17+
export const nuxtIcon = icon.join('\n')

0 commit comments

Comments
 (0)