Skip to content

Deraen/boot-cljx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boot-cljx

Clojars Project

Cljx is deprecated, please use cljc instead.

Boot task to compile Cljx.

  • Provides the cljx task
  • Reads .cljx files and creates corresponding .clj and .cljs files. Resulting files will be available to others tasks and on classpath.
  • Adds cljx nrepl middleware to repl task default settings
    • Make sure your cljx task is run before repl task

Use

; All files (.clj, .cljx, .cljs) could be on the same directory,
; but I like to have separate directories per filetype.
(set-env! :src-paths #{"src/cljx" "src/clj" "src/cljs"})

; Run cljx before cljs
; $ boot cljx cljs ...
(deftask package
  "Package the app"
  []
  (comp
    (cljx)
    (cljs)
    ...))

License

Copyright (C) 2014-2015 Juho Teperi

Distributed under the MIT License.