This is what I worked for me.
(ns demo.dsl-controller
(:require [cljs.closure :refer [build compile-dir compile-file]]
[clojure.java.io :as io]
[survey.config :refer [dsl-library-path]])
(:import [cljs.closure Compilable]))
(defrecord DSLUnit [source-file]
Compilable
(-compile [this opts]
(-> (compile-dir (dsl-library-path) opts)
(conj (compile-file (io/file source-file)
opts)))))
(defn compile
"Compiles a dsl file along with the dsl library"
[source-file]
(build (DSLUnit. source-file)
{:output-to "hello.js" :optimizations :advanced}))
Thanks
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.