Hi all, I'd like to add a new feature to both cljsbuild and clojurescript to allow the exclusion of some cljs source from being compiled. the motivation of this feature can be found at tthe following links:
- https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-07.md#get-in-trouble - https://github.com/emezeske/lein-cljsbuild/issues/157 - http://dev.clojure.org/jira/browse/CLJS-419 My proposal is the following: - add a new compilation option named :exclude to the regular optimization options map. Its value can be a cljs file or a path (that has to be a subdir of source-dir). - add the same option to the underlying cljs compiler. cljsbuild example: (defproject ... ... :cljsbuild {:builds { :dev { :source-path "src/cljs" :compiler { :output-to "resources/public/js/main_dbg.js" :optimizations :whitespace :pretty-print true}} :prod {:source-path "src/cljs" :compiler { :exclude "exlude" ;; exclude a cljs source-dir. or "path/to/filename.cljs" to exclude a single file :output-to "resources/public/js/modern.js" ; advanced optimization :optimizations :advanced}}}}) >From cljsc point of view, the call could be $ cljsc "src/cljs" {:exclude "exclude" :optimizations :advanced... Is it something useful to you too? My best Mimmo -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en