duct-framework / compiler.cljs

Integrant methods for compiling ClojureScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duct compiler.cljs

Integrant methods for compiling ClojureScript files in the Duct framework. This compiler is typically invoked before compiling an uberjar for production release. For working with ClojureScript during development, use server.figwheel.

Installation

To install, add the following to your project :dependencies:

[duct/compiler.cljs "0.3.0"]

Usage

This library provides the :duct.compiler/cljs key, and works much the same way as lein-cljsbuild.

{:duct.compiler/cljs
 {:builds [{:source-paths  ["src"]
            :build-options {:output-to "target/js/main.js"
                            :output-dir "target/js"
                            :optimizations :whitespace}}]}}

The :build-options available are covered in the ClojureScript page on compiler options.

License

Copyright © 2017 James Reeves

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

About

Integrant methods for compiling ClojureScript


Languages

Language:Clojure 87.8%Language:HTML 12.2%