-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Clone from Remote Boilerplate/Template #99
[Feature] Clone from Remote Boilerplate/Template #99
Comments
I'm 100% for moving the default templates into a Github org. We'd just see that there is no |
Correctomundo |
@lukeed @developit is the work already started on this? |
@knight-bubble Yup! I have the core logic in another module right now. Just waiting as we gather other features that constitute a 2.0 before I port it over. |
I think that we should put everything in a single repo instead, putting it in a github org with many repos won't get many reviewers |
@thangngoc89 Not sure what you mean? My remote-templates feature will be part of What I'm saying is, that I have the same logic already inside another module of mine. So, when we're getting closer to a |
@lukeed I was replied to @developit about this
In my mind, I think he's talking about each template will be in an individual git repo, which is going to be madness (update multiple projects at once, get reviewer,...) So feature request here: make it work with a subfolder of the git repo |
Oh, I missed that / forgot that was said. 😆 |
^ subfolder is an interesting idea, and that would serve the default templates well:
|
Only issue I can see (just realized this) is that it's possible we'd actually want the default templates to be version-locked to preact-cli, because they are kinda based on whatever version of the CLI you have running. For example - in a month, whatever the current default template is might not work with Thoughts? |
We've tossed this idea around a few times -- this is just to officially track it.
If we are to follow in Vue's wonderful footsteps, this would look something like:
# preact init <template-name> <project-path> $ preact init lukeed/custom my-app
I imagine that
init
vscreate
is a nice distinction to have, but at the same time, could make it a bit confusing thatcreate
is for the included boilerplate only.Although... the next logical step/argument is to extract the included templates (4 atm) to remote locations as well.
I have a similar functionality at play in another project, so I'd be thrilled to start this! Of course, any help and/or considerations are welcomed along the way.
The text was updated successfully, but these errors were encountered: