martinklepsch / boot-garden

Boot task to compile Garden stylesheets.
Eclipse Public License 1.0
37 stars 6 forks source link

option to force a compile every time the task is called #22

Open thedavidmeister opened 7 years ago

thedavidmeister commented 7 years ago

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.

martinklepsch commented 7 years ago

@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.