michaelquigley / capsule

A lightweight, human-scale, extensible content framework for the small web
5 stars 2 forks source link

Clean Build #28

Open michaelquigley opened 2 years ago

michaelquigley commented 2 years ago

Track all of the files that comprise the build, and then remove any files that don't belong.

This is better than just removing everything, so that we can do lazy file copies.

michaelquigley commented 2 years ago

Implement better encapsulation for this information, possibly by passing around some kind of state instance. The bare []string instances that are being appended everywhere is a bit of a mess. Works fine, but is unpleasant to look at.