create-static-site icon indicating copy to clipboard operation
create-static-site copied to clipboard

`--template` should accept URL

Open ncphillips opened this issue 7 years ago • 2 comments

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.

ncphillips avatar Feb 27 '18 02:02 ncphillips

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 avatar May 02 '18 21:05 scottgallant

This is inspired by Vue CLI

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

scottgallant avatar May 02 '18 21:05 scottgallant