Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds builder.printMessage documentation #508

Merged
merged 2 commits into from
Jun 19, 2021

Conversation

ntgussoni
Copy link
Contributor

This is a feature nobody asked for (maybe?) but it's something that I think was missing in the recipes; writing a custom message step while installing a recipe.

Closes: ?

What are the changes and their implications?

Adds new step type printMessage

  builder.printMessage({
    successIcon: "😭",
    stepId: "oops",
    stepName: "Im so sorry :(",
    message:
      "This recipe can't edit your blitz.config.ts (yet), you can add the Blitz Guard middleware following these two steps: https://ntgussoni.github.io/blitz-guard/docs/middleware",
  })

This prints the message in the following way
image
image

@vercel
Copy link

vercel bot commented Jun 19, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/blitzjs/blitzjs-com/Fa5LJM2nckuK5PsdfpWxVghSUaxm
✅ Preview: https://blitzjs-com-git-fork-ntgussoni-feature-printmess-4e73f7-blitzjs.vercel.app

@ntgussoni
Copy link
Contributor Author

blitz-js/blitz#2510

@blitzjs-bot
Copy link

Added @ntgussoni contributions for doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants