jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.22k stars 507 forks source link

Make `yarn start`/`tsdx watch` output example playground/Storybook instructions. #976

Open hhedger-ae opened 3 years ago

hhedger-ae commented 3 years ago

Current Behavior

After running yarn start, the only output is "Compiled Successfully. Watching for changes." It's not clear that tsdx provides ways to view your work (example playground). Had to check the docs/READMEs to figure it out.

Desired Behavior

After running yarn start, the output explains how to start the example playground and/or Storybook.

Suggested Solution

Easy route is to add the instructions in src/index.ts with the success message? Is there a way to conditionally output instructions based on template? So only print Storybook instructions for storybook template?

Who does this impact? Who is this for?

New users would benefit the most, but anyone may find it useful to be reminded of how to stand up the dev environment.

Additional context

Not a huge deal, but it confused me and was a little inconvenient.

Happy to put in a PR for this if this idea is a 👍