I recommend installing ClojureScript master via ./script/build from the repo. It will be installed into your local Maven, note the version number and specify this in your project.
David On Mon, Feb 24, 2014 at 12:45 PM, <[email protected]> wrote: > > Ack re the loading the files in order. > > But there's another issue, to begin I added the master source paths to the > top level :source-paths not my build level :source-paths, so _now_ my build > looks like this > > :cljsbuild { > :builds [{:id "crserve" > :source-paths [ > "/home/ritchie/Usr/clojurescript/src/clj" > "/home/ritchie/Usr/clojurescript/src/cljs" > "src/crserve" "src/acl/node" "src/acl/uni"] > :compiler { > :output-to "site/crserve.js" > :output-dir "site/out" > :target :nodejs > :optimizations :none > }} > > compiling with cljsbuild once crserve produces > > Compiling "site/crserve.js" from > ["/home/ritchie/Usr/clojurescript/src/clj" > "/home/ritchie/Usr/clojurescript/src/cljs" "src/crserve" "src/acl/node" > "src/acl/uni"]... > Compiling "site/crserve.js" failed. > java.lang.IllegalArgumentException: No implementation of method: :-compile > of protocol: #'cljs.closure/Compilable found for class: > cljsbuild.compiler.SourcePaths > > Sorry in advance for any stupidity on my part (I have double checked the > path to the clojurescript source). > > Thanks > > Ritchie > > On Monday, February 24, 2014 2:10:21 PM UTC-3, David Nolen wrote: > > You need to follow the instructions here > http://github.com/clojure/clojurescript/wiki/Quick-Start#wiki-notes-on-optimization-settings. > You must load *in order*: the bootstrap script, the :output-to file and > your main namespace file. > > > > > > > > > > HTH, > > David > > > > > > > > On Mon, Feb 24, 2014 at 12:04 PM, <[email protected]> wrote: > > > > > > > > Hi David > > > > > > > > To use cljsbuild with master I'm doing adding a cloned clojurescript to > my project like so ... > > > > > > > > :source-paths ["src" > > > > "/home/ritchie/Usr/clojurescript/src/clj" > > > > "/home/ritchie/Usr/clojurescript/src/cljs" > > > > > > > > as specified here > https://github.com/emezeske/lein-cljsbuild/wiki/Using-a-Git-Checkout-of-the-ClojureScript-Compiler > > > > > > > > > > and :optimizations :none in my build > > > > > > > > after lein cljsbuild clean and compile I get this on running ... > > > > > > > > node crserve > > > > > > > > /home/ritchie/Projects/cr3/site/crserve.js:1 > > > > (function (exports, require, module, __filename, __dirname) { > goog.addDependen > > > > ^ > > > > ReferenceError: goog is not defined > > > > at Object.<anonymous> > (/home/ritchie/Projects/cr3/site/crserve.js:1:63) > > > > > > > > > > > > it works if I keep :simple opts. It looks like cljsbuild is not picking > up the new source paths?? Or I may be missing something very obvious to a > veteran. > > > > > > > > Thanks for any info. > > > > > > > > Ritchie > > > > > > > > > > > > > > > > > > > > On Monday, February 24, 2014 11:04:11 AM UTC-3, David Nolen wrote: > > > > > At long last the ClojureScript compiler can now target Node.js under > optimizations :whitespace or :none as of this commit: > http://github.com/clojure/clojurescript/commit/0c7b31ada01237de33cef77b817ccef3f2b3576d > > > > > > > > > > > > > > > > > > > > > > Some basic notes here: > http://github.com/clojure/clojurescript/wiki/Quick-Start#wiki-notes-on-optimization-settings > > > > > > > > > > > > > > > > > > > > > > This change coupled with Node.js source mapping tools ( > https://github.com/evanw/node-source-map-support) can hopefully > eventually provide a development experience for Node.js comparable to the > one we currently provide for browsers. > > > > > > > > > > > > > > > > > > > > > > Please give it a try! > > > > > > > > > > > > > > > David > > > > > > > > -- > > > > 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. > -- 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.
