ProjectEvergreen/greenwood
`init` scaffolding should prompt for installing Greenwood plugins
Offen
#1.270 geöffnet am 29.08.2024
Initdocumentationfeaturegood first issue
Repository-Metriken
- Stars
- (132 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 25T 20h) (29 gemergte PRs in 30 T)
Beschreibung
Summary
Coming out of #1253, I think to continue making the Init scaffolding tool more valuable, we should add prompts to auto install Greenwood plugins like Raw, PostCSS, and others
Something like this, using checkboxes
➜ Workspace npx @greenwood/init@latest
Need to install the following packages:
@greenwood/init@0.29.3
Ok to proceed? (y) y
-------------------------------------------------------
Initialize Greenwood Template ♻️
-------------------------------------------------------
(node:57730) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
? What plugins would you like to install? (Use arrow keys)
( ) PostCSS
(.) Lit SSR
( ) Raw
( ) None
Details
Once we get the user's selections, we would then need to
- Put the packages in package.json
- Configure their greenwood.config.(js|ts) file
Not really sure how we would do this via flags though?
$ npx @greenwood/init@latest --plugins postcss,litssr,xxx
Probably not that big a deal if we need to add that as a follow up feature, though