seqs are not supported for this use case since you can pass them to build a sequence ClojureScript source forms. You need to supply your own instance of cljs.closure/Compilable which abstracts multiple directories if you want this behavior.
David On Fri, Mar 27, 2015 at 2:48 PM, wewe Tom <[email protected]> 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. > > > > > > -- > 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. > -- 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.
