forestryio / create-static-site

Create static websites with no build configuration.
MIT License
136 stars 10 forks source link

`--template` should accept URL #30

Open ncphillips opened 6 years ago

ncphillips commented 6 years ago

When running create-static-site the user should be able to pass in a URL for the template

npx create-static-site --template=<URL>

static-scripts init should grab the template project from that URL

The existing options hugo and jekyll should be aliases to URLs.

This will make it possible for other templates to be created without changing this project. It will also reduce the size of the static-scripts NPM package.

scottgallant commented 6 years ago

Agreed, create static site should use external projects for the templates.

However, to keep setup simple, it would be ideal if create-static-site asked you to choose a template and provided you with a list of external URLS for the top templates. For example:

Please pick a template (use arrow keys):
Hugo (https://github.com/path-to-hugo-template)
> Jekyll (https://github.com/path-to-jekyll-template)
Gatsby (https://github.com/path-to-gatsby-template)
Other 

^ Choosing "Other" would prompt you to paste in a path to your template.

Curious if @chrisdmacrae has any thoughts here.

scottgallant commented 6 years ago

This is inspired by Vue CLI

screen shot 2018-05-02 at 6 27 22 pm