Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Support for "stagehand <github repo>" #597

Open
seenickcode opened this issue Feb 19, 2019 · 4 comments
Open

Support for "stagehand <github repo>" #597

seenickcode opened this issue Feb 19, 2019 · 4 comments

Comments

@seenickcode
Copy link

This tool would really rock if it can be used for Flutter or Aqueduct projects with anyone's own template, much like Golang's "go get "

(context: from this thread with @DanTup: https://twitter.com/DanTup/status/1096736856815923201)

  1. Repo would require to have some kind of spec file
  2. "stagehand " would ensure that spec file exists and generate the template found in the repo.

This would be a major value add for Flutter especially, since creating projects vary so widely regarding base requirements and the out of the box "flutter create" creates too trivial / not realistic of a project.

Would love your thoughts.

@kwalrath
Copy link
Contributor

Related: #192, #394

@sassman
Copy link

sassman commented May 8, 2019

a very similar thing that exists in the py eco system is cookiecutter. It's very nice becuase the whole structure of the project is as a regular project, just that the things that shall be replace are wrapped by the {{ }} template syntax.

I wonder if it would make sense to add one new generator template to stagehand that would accept an additional parameter like a github repo url, and it will checkout this repo as the template and will do the scanning for replacement needs and interactively replace all the variables.

The major benefit IMO is that users could use stagehand with their own templates hosted on e.g. github very easily.

@seenickcode does this goes int your direction?

@ibrahim-mubarak
Copy link

It would be a great benefit to be able to generate a project from a repo. I suppose we should also consider creating them from a specific version, such as a branch or tag. Also should we be doing this discussion in this issue or #192, as both seem to try to achieve the same thing.

@felangel
Copy link

fwiw I’ve been working on mason which allows you to create your own custom templates using mustache which can be hosted either locally or on git.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants