nanoc / features

Collection of feature requests
2 stars 1 forks source link

Always compile before running checks #43

Open denisdefreyne opened 6 years ago

denisdefreyne commented 6 years ago

(See https://github.com/nanoc/nanoc/issues/1341)

It is currently possible to run nanoc check on a site that it out of date. To prevent nanoc check from running on a not-yet-compiled site, I suggest adding a compile option to the configuration’s check section, which by default is false, but if set to true, will run nanoc compile beforehand.

Additionally, a command-line flag (--compile/--no-compile) could be useful to override the configuration behavior.