Skip to content

Add --template flag to init commandΒ #573

Open
@f-f

Description

@f-f

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:

spago init --template halogen
spago init --template react-basic-hooks
spago init --template cli
... etc.

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:

  • have each template as a git submodule in the templates folder
  • ..and include all templates in the binary (this is so that you can still make a project if you're offline)
  • ..and optionally try to fetch them if we are online and they have been updated

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions