Skip to content
This repository was archived by the owner on Jun 17, 2020. It is now read-only.

Development

Stuart Campbell edited this page Sep 21, 2013 · 1 revision

During development, you'll need to run a couple of commands to ensure things get recompiled:

  • lein cljx auto runs a watcher that transforms cljx files whenever they change. You need to run this in each target environment, e.g. example/web and example/swing.

  • lein cljsbuild auto runs a watcher that compiles cljs files whenever they change. You only run this in example/web.

tmuxinator is good for managing this. I have a tmuxinator project that lights up all these things automatically:

# ~/.tmuxinator/enoki.yml

name: enoki
root: ~/projects/enoki

windows:
  - example-web:
      layout: even-vertical
      panes:
        - cd example/web; lein cljx auto
        - cd example/web; lein cljsbuild auto
        - cd example/web; lein run
  - example-swing:
      layout: even-vertical
      panes:
        - cd example/swing; lein cljx auto
        - cd example/swing

Clone this wiki locally