(-main & args)Compile Garden CSS and optionally watch for changes. args: once - compile once and exit auto - compile, then watch the source-dir and recompile on change (default)
Compile Garden CSS and optionally watch for changes. args: once - compile once and exit auto - compile, then watch the source-dir and recompile on change (default)
(auto-generate config)Watches :source-dir for changes via tools.namespace, reloads any
changed namespaces, and regenerates CSS. Loops while running is
true.
Watches `:source-dir` for changes via tools.namespace, reloads any changed namespaces, and regenerates CSS. Loops while `running` is true.
(handle-error error)Pretty-prints a Throwable raised during namespace reload so that watch mode keeps running.
Pretty-prints a Throwable raised during namespace reload so that watch mode keeps running.
(install-shutdown-hook!)Registers a JVM shutdown hook so SIGTERM/SIGINT cleanly stops the auto-generate loop.
Registers a JVM shutdown hook so SIGTERM/SIGINT cleanly stops the auto-generate loop.
(monitor-stdin!)Spawns a daemon thread that reads stdin until EOF and then calls
shutdown!. Stops orphaned CSS watchers when the parent process
exits.
Spawns a daemon thread that reads stdin until EOF and then calls `shutdown!`. Stops orphaned CSS watchers when the parent process exits.
(on-dev-compiled config)If the config supplies an :on-css-compiled callback, invokes it with
the resolved config map after each successful compilation.
If the config supplies an `:on-css-compiled` callback, invokes it with the resolved config map after each successful compilation.
(print-exec-time tag expr)(resolve-on-css-compiled options)(shutdown! main-thread)Sets running to false and interrupts the given thread to break out
of the auto-generate loop.
Sets `running` to false and interrupts the given thread to break out of the auto-generate loop.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |