Open firelizzard18 opened 6 years ago
This seems to add an entire level of complexity and configuration that I'm not sure I'm comfortable with. If you really want a pluggable, middleware-based static site generator, I'd highly recommend https://github.com/segmentio/metalsmith
I actually considered using metalsmith, but in most cases I don't care about having that much configuration, so I built onessg instead.
I personally am not fan of duplication in the open-source world. There are already so many static site generators, it almost pained me to write yet another one when I wrote onessg. However, onessg is unique. There's no other SSG that does exactly the same thing. However, I don't want to expand onessg to the point that it's just metalsmith or another SSG re-implemented slightly differently. I hope you understand my line of reasoning...
Reimplemented core logic as a pipelined system.
Note: The (mocha) tests are failing and I don't know why. I haven't been able to get VSCode to debug them. The error messages seem to be indicating that onessg doesn't run, but everything works perfectly in my project... :(
More notes: I'm using
async
/await
because thePromise
logic was getting painful to think about. I figure the final implementation shouldn't use those (async/await requires Node 8 and ESLint barfs on it), but I want to for now to keep the logic clear while working on test coverage.