Replies: 1 comment 1 reply
-
Great suggestion. There's currently a minimal command line installer that you can use to install the template into your repo via
this is currently the recommended approach for installing the template and the one documented in the README. Once there are more options I agree with you that having some sort of tool that prompts for choices could be a nice developer experience rather than requiring the developer to manually rip things out that they don't need. Regarding the specific choices you suggested, I don't think we want to make those choices. I think typescript, uswds, and npm are solid defaults. I don't think yarn offers enough of an improvement over npm to really consider it, but I'll keep an open mind on it if you think otherwise. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recommendation
A template like this is a prime use case for a command-line installer, a la
create-next-app
.Why
This would bring multiple benefits:
In regard to the multiple choices, I'm thinking of things such as:
yarn
,pnpm
, ornpm
)How
Most modern similar systems utilize the Commander package for the CLI capabilities. This enables providing CLI flags and help text, which can be easily used to conditionally add optional packages, etc.
Prior art:
create-next-app
create-t3-app
create-react-app
— not really actively maintained, so I'd favor othersBeta Was this translation helpful? Give feedback.
All reactions