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

Boot task to compile ClojureScript programs.

boot-cljs Clojars Project Circle CI Downloads

Boot task to compile ClojureScript applications.

  • Provides the cljs task for compiling ClojureScript to JavaScript
  • Requirements
    • Supports ClojureScript versions since 1.7.28
    • Boot version 2.6.0 but 2.7.0 is recommended for better error reporting
    • Java 8+
  • Docs
    • .cljs.edn files
    • Compiler options, Boot-cljs modified and automatically sets some options
  • Related projects: boot-reload and boot-cljs-repl

Quick start

Add ClojureScript and boot-cljs to your build.boot dependencies and require the namespace:

(set-env! :dependencies '[[adzerk/boot-cljs "X.Y.Z" :scope "test"]])
(require '[adzerk.boot-cljs :refer [cljs]])

You can see the options available on the command line:

boot cljs --help

Or the same in the REPL:

boot.user=> (doc cljs)

Further Reading

License

Copyright © 2014 Adzerk
Copyright © 2015-2017 Juho Teperi

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.