Add --quickstart
flag to init command
#1822
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes introduced?
We want to make it fast to set up a Hydrogen app with a set of sensible defaults. This is helpful for users who are just kicking the tires and want to see what it's about. It also helps to streamline documentation, eliminating forks in the critical path and reducing decision fatigue.
What is this pull request doing?
This PR adds a new
--quickstart
flag to theinit
command. With no further user input required, it scaffolds a new Hydrogen project with the following defaults (which are the same ones we currently recommend, but which need to be selected manually by the user):./hydrogen-quickstart
h2
alias?While these are the defaults, you can still override each option if you pass their respective flags with the quickstart flag.
How to test your changes? 🎩
npx shopify hydrogen init --quickstart
./hydrogen-quickstart
.npx shopify hydrogen init --quickstart --language ts
🎬
quickstart.mp4
Update: Also resolved the double-success-banner issue, and removed extraneous help links from the final succcess message:
Todos