boot-garden icon indicating copy to clipboard operation
boot-garden copied to clipboard

option to force a compile every time the task is called

Open thedavidmeister opened this issue 9 years ago • 1 comments

This is tripping me up:

(when (or initial (some #{ns-sym} (pod/with-eval-in ns-pod (cns))))

My problem is that my :styles-var is setup so that it aggregates styles from many different namespaces, sort of like SASS globbing.

If I save one of the aggregated files boot-garden will not recompile the CSS. The CSS only recompiles when I save the file that the :styles-var is in.

My workaround is this:

    (with-pass-thru [_] (reset! org.martinklepsch.boot-garden/processed #{}))
    (garden :styles-var 'my-ns/my-var)

But it would be nice if I could send a :force flag to the garden task.

thedavidmeister avatar Oct 23 '16 09:10 thedavidmeister

@thedavidmeister definitely happy to merge a PR for that. Ideally such PR would then also not create the ns-tracker pod and other things related to tracking var changes.

martinklepsch avatar Oct 23 '16 11:10 martinklepsch