hydrogen
hydrogen copied to clipboard
Change order of prompts in CLI-based project setup
I think we can tweak the order of the prompts during setup. Currently it goes:
| Prompt | Notes |
|---|---|
| Data source | Mock.shop vs. existing store. Why have this first? |
| Project name | This is a natural first question IMO |
| Language (TS or JS) | 👍🏻 |
| CSS library | 👍🏻 |
| Install dependencies? | A little odd for this to come in the middle of the flow, feels like a final step |
h2 shortcut |
Same here |
| Route scaffolding? | IMO we should just do this by default, with a --no-routes flag to opt out. |
| Market support? | This is optional; I think all options that can be skipped should be grouped together. |
So my proposed order of prompts would be this instead — where we group required (!) decisions up front, and back-load the skippable (?) options:
- Project name!
- Language!
- Data source!
- CSS Library?
- Route scaffolding?
- Market support?
h2shortcut?- Install dependencies?