Thanks for this explanation - makes complete sense :-) Sam
--- http://sam.aaron.name On 31 Jan 2014, at 11:49, [email protected] wrote: > If you're not using either simple or advanced compilations with the Closure > compiler it simply outputs one JavaScript file for every namespace in your > project. > > base.js is Closure's bootstrap file which in addition to defining the basic > primitives of Closure (like the goog global object, etc.) it will generate a > file (deps.js) which contains a list of all namespaces required in your > project, sorted by dependency order. > > The final line is not strictly needed as far as I can tell, and is being used > to implicitly bootstrap the execution of the compiled ClojureScript library - > most likely there are forms in that file which are evaluated when the script > tag is executed by the browser. My personal preference is to use an explicit > main function so the application has a single well defined entry point which > is explicitly called in a script tag after requiring it, and not to rely on > the side effecting forms. > > -- > 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.
