Greenwood init command and templates #770
Replies: 5 comments 5 replies
-
should we include the ability to create the project directory or are we under the assumption they've already created a project directory ? |
Beta Was this translation helpful? Give feedback.
-
Rather than copy a default package.json over as we did with |
Beta Was this translation helpful? Give feedback.
-
What kind of folder structure should we be expecting for a template. Take the getting-started repo for example, perhaps not all those files are needing to be scaffolded. Maybe only the required files should be placed in |
Beta Was this translation helpful? Give feedback.
-
I also think it would be a good idea to curate some "suggested" templates that one can select from a list in the CLI |
Beta Was this translation helpful? Give feedback.
-
Just calling out we should probably really flesh out the current blog starter, as it doesn't really "work" per se. For example, none of the links work. Now that we have refreshed the website, perhaps we can also refresh the styles of the starter as well |
Beta Was this translation helpful? Give feedback.
-
Overview
It would be great if there was an easy way for users to initialize a Greenwood project and have all the scaffolding provided including
@greenwood/cli
pre-installedAdditionally, GitHub repos could be used as templates to easily provide a ready made starting point that could easily be shared with users and not dependent on being coded / configured / bundled directly into the
init
command itself.Proposal
Create a new
init
package in the monorepo that can be invoked via npm /npx
and that supports scaffolding as well as pulling from a predefined (or custom) templateSome examples
Additionally in future iterations,
init
could also ask for / do more things likenpm init
Action Items
Let's plan the work out across a few PRs, iterating incrementally following this rough sequence
init
package that can generate a bare bones Greenwood repo - It would be nice to have a greenwood init/template scaffold command #777--template=xxx
flag that can consume from an existing repo and scaffold it out file for file--template
withgithub
and provide their own repo locationFrom there we can evaluate and prioritize other features and enhancements
init
commandinit
Beta Was this translation helpful? Give feedback.
All reactions