diff options
author | 2024-01-05 22:00:47 +0100 | |
---|---|---|
committer | 2024-01-05 15:00:47 -0600 | |
commit | 651f45b4010ad9b8d9f61fdc748618e220fe5375 (patch) | |
tree | 6dac3386ea0b27096430a0caac5130981a0ed9df /packages/create-astro/src/messages.ts | |
parent | 75084b49d0eb414400014c822c492c1e11cce790 (diff) | |
download | astro-651f45b4010ad9b8d9f61fdc748618e220fe5375.tar.gz astro-651f45b4010ad9b8d9f61fdc748618e220fe5375.tar.zst astro-651f45b4010ad9b8d9f61fdc748618e220fe5375.zip |
Adds automatic, seasonally appropriate messages from Houston (#9476)
* feat: allow Houston to wear Scarfs
* refactor: allow 1 object to be passed instead of separate
* set messages back to original state / add ties
* refactor to getClothes method
* refactor: add clothes per season
* refactor: add messages with timing too
* refactor to new file
* refactor: use `hat` & `tie` instead of `clothes`
* refactor: use `getSeasonalHouston` only once
* chore: upgrade dependencies
* fix mistake in date
* feat(create-astro): refactor seasonal logic
* chore: remove unused entrypoint
* refactor: simplify seasonal data
* chore: add changeset
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to 'packages/create-astro/src/messages.ts')
-rw-r--r-- | packages/create-astro/src/messages.ts | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/packages/create-astro/src/messages.ts b/packages/create-astro/src/messages.ts index 31032fbab..a11f45acd 100644 --- a/packages/create-astro/src/messages.ts +++ b/packages/create-astro/src/messages.ts @@ -24,8 +24,8 @@ export function setStdout(writable: typeof process.stdout) { stdout = writable; } -export async function say(messages: string | string[], { clear = false, hat = '' } = {}) { - return houston(messages, { clear, hat, stdout }); +export async function say(messages: string | string[], { clear = false, hat = '', tie = ''} = {}) { + return houston(messages, { clear, hat, tie, stdout }); } export async function spinner(args: { @@ -39,33 +39,6 @@ export async function spinner(args: { export const title = (text: string) => align(label(text), 'end', 7) + ' '; -export const welcome = [ - // `Let's claim your corner of the internet.`, - // `I'll be your assistant today.`, - // `Let's build something awesome!`, - // `Let's build something great!`, - // `Let's build something fast!`, - // `Let's build the web we want.`, - // `Let's make the web weird!`, - // `Let's make the web a better place!`, - // `Let's create a new project!`, - // `Let's create something unique!`, - // `Time to build a new website.`, - // `Time to build a faster website.`, - // `Time to build a sweet new website.`, - // `We're glad to have you on board.`, - // `Keeping the internet weird since 2021.`, - // `Initiating launch sequence...`, - // `Initiating launch sequence... right... now!`, - // `Awaiting further instructions.`, - `Ho, ho, ho! 'Tis the season to code and create.`, - `Jingle all the way through your web creation journey!`, - `Let's unwrap the magic of the web together!`, - `Bells are ringing, and so are your creative ideas!`, - `It's starting to look a lot like Christmas on the internet.`, - `It's time to decorate the web with your festive ideas!`, -]; - export const getName = () => new Promise<string>((resolve) => { exec('git config user.name', { encoding: 'utf-8' }, (_1, gitName) => { |