-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add --template
flag to init
command
#573
Comments
Just a "way out there" question. How would this work if a project could be implemented by multiple backends? For example, the
I think first option makes the most sense. |
Is I've had such a great experience with But after reading "Why can't So instead of:
we could just suggest:
Starting with the Curating an initial list of templates seems outside the scope of this spago task though. I'm wondering where this effort should be tracked. Considering making another Discourse thread, or working on a page in documentation repo where we can start building a table of templates. |
I agree with @milesfrain. This feels more like a documentation issue (i.e. "What are various starter/template projects that I can use to get started on X app?") than a feature that Spago should support as it avoids a number of issues. To make this even simpler, one could instruct everyone to tag such repos with a |
I generally agree with @milesfrain that doing a
So I think curating a page in the official documentation would be nice - I'd even go as far as having a small list of templates in the purescript.org homepage, to get people started with something useful as quickly as possible @JordanMartinez to clarify on this, I think there's value in curating a list vs collecting it automatically (e.g. via the mechanism you propose), because of the 3rd point I mentioned, which can be summarized as "quality assurance" |
@f-f I agree. I think my proposed solution is a very fast way to get something going now, but not the best long-term solution. |
Agreed. This is also what TypeScript does.[1] How do we decide which templates to feature? Here are some ideas for criteria:
I think it's also important to be strict with removing or demoting any templates that don't meet the above criteria so new users aren't led astray. Encourage reporting of template and framework problems, and then quickly remove them from the "featured" list if the issues remain unresolved. Experienced users will still be able to find these templates, and will hopefully feel some obligation to get them reinstated. [1] Side note: Their React link is outdated and incorrect. Documentation is hard, even with staff on payroll! |
I might suggest moving this discussion to discourse: https://discourse.purescript.org. It might get a bit more traction there? |
I'll close this since it looks like it's something that should be done outside of Spago, and the discussion has moved to Discourse |
Reopening this as we have a more pressing usecase now: a better test setup based on |
Didn't we agree that this shouldn't be in the beta milestone? |
@fsoikin it's up for grabs so can be done whenever really 😄 |
As mentioned in this comment on Discourse it would be really nice if Spago could have templates.
Examples from the post for how this could look like:
Opening this issue to track this, I don't have an opinion on how this should be implemented, but looking at previous art (e.g. Stack templates), I feel we could:
templates
folderThe text was updated successfully, but these errors were encountered: