You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since it's possible to muck up one's build through disorderly preprocessing, yet since preprocessor files saved to the build directory can be safely cleared, it stands to reason that we should offer users the ability to erase their build dir prior to a new build. This is a standard option in build tools, though in our case it needn't do more than delete a build directory.
It should be invokable from the configuration itself, as well as from the CLI. Keep in mind there is no standard "build" directory, so it needs to be explicit.
Usage:
bundle exec liquidoc -c config.yml --clean _build
For now, this is accomplished manually with:
rm -rf _build; bundle exec liquidoc -c config.yml
Consider a safety requiring a flag such as --unsafe to allow operations below the pwd (probably Ruby prevents this by default?) and to delete certain subdirectories like content, src, source, _templates, etc, etc, etc, or maybe anything that doesn't have the word build in the path...?
The text was updated successfully, but these errors were encountered:
Since it's possible to muck up one's build through disorderly preprocessing, yet since preprocessor files saved to the build directory can be safely cleared, it stands to reason that we should offer users the ability to erase their build dir prior to a new build. This is a standard option in build tools, though in our case it needn't do more than delete a build directory.
It should be invokable from the configuration itself, as well as from the CLI. Keep in mind there is no standard "build" directory, so it needs to be explicit.
Usage:
For now, this is accomplished manually with:
Consider a safety requiring a flag such as
--unsafe
to allow operations below thepwd
(probably Ruby prevents this by default?) and to delete certain subdirectories likecontent
,src
,source
,_templates
, etc, etc, etc, or maybe anything that doesn't have the wordbuild
in the path...?The text was updated successfully, but these errors were encountered: