On Saturday, March 28, 2015 at 3:11:39 AM UTC+8, wewe Tom wrote:
> cljsc/build or cljsc/watch surport sequence params ? 
> 
> if suported , I think it convenient to compose diffent build/watch.
> 
> for example , I wrote a build file like this :
> 
> ```
> ;; modified from 
> https://github.com/swannodette/mies/blob/master/src/leiningen/new/mies/release.clj
> 
> (require '[cljs.closure :as cljsc])
> 
> (println "Building ...")
> 
> (let [start (System/nanoTime)]
>   (cljsc/build "src"
>     {:output-to "release/main.js"
>      :output-dir "release"
>      :optimizations :advanced
>      :verbose true})
>   (println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
> 
> ```
> 
> and the src is like this
> 
> |-- dialog
> |-- im 
> |-- page
> |-- list
> 
> in :advanced mode all sub folder cljs files will build to a single file 
> main.js
> 
> but , what I want is only `list` `im` , so I want build ["src/list" "src/im"]
> 
> after some exploring in source 
> https://github.com/clojure/clojurescript/blob/master/src/clj/cljs/closure.clj#L404-L427
> , It seems that cljsc does not suport this kind of usage .
> 
> so , how about add this feature , then the build result can be more 
> composable.

thanks for your reply , I turn to use lein-cljsbuild , which surport my need . 
https://github.com/emezeske/lein-cljsbuild/blob/1.0.5/example-projects/advanced/project.clj

-- 
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.

Reply via email to