capnfabs / grouse

A diff tool for Hugo static sites.
https://capnfabs.net/posts/grouse-diff-tool-hugo-static-site-generators/
MIT License
12 stars 2 forks source link

Autodetect a few different static site generators #18

Open jasikpark opened 3 years ago

jasikpark commented 3 years ago

Things that would be nice for the future (roughly ordered, see also #enhancements)

Try to autodetect a few common static site generators (hugo, jekyll, gatsby)

Maybe look into how netlify dev works... I'm sure it's probably just grabbing and running whatever's in netlify.toml?

jasikpark commented 3 years ago

https://github.com/netlify/cli/blob/master/docs/commands/dev.md#devexec

Probably a good ui, at the very least

jasikpark commented 3 years ago

aha! https://github.com/netlify/cli/tree/master/src/detectors

https://github.com/netlify/cli/blob/master/LICENSE (MIT)

capnfabs commented 3 years ago

Hey! Thanks for digging that up; it's a useful resource!

My current thinking is that the path to this would probably be:

This gets most of the way feature-wise; I'm still not sure that I want to have to maintain a bunch of detection logic, even if I can just port it from netlify 🤔

capnfabs commented 3 years ago

This is blocked on #6