run.js is obsoleted by :main support.

David

On Thu, Feb 12, 2015 at 2:18 PM, Boris Kourtoukov <[email protected]>
wrote:

> On Thursday, February 12, 2015 at 12:08:39 PM UTC-5, David Nolen wrote:
> > ClojureScript, the Clojure compiler that emits JavaScript source code.
> >
> >
> > README and source code: https://github.com/clojure/clojurescript
> >
> >
> > New release version: 0.0-2843
> >
> >
> > Leiningen dependency information:
> >
> >
> >     [org.clojure/clojurescript "0.0-2843"]
> >
> >
> > This release is primarily about outstanding Node.js target
> > issues. Further changes have been made to support Node.js v0.12
> > specifically around the deprecation of util.print. Node.js target now
> > supports :main same as browser based :none builds. Node.js :simple and
> > :advanced builds now set goog.global correctly ensuring that
> > core.async works properly. The Node.js REPL should now work on slower
> > machines. And all of these enhancements have been made with the
> > Windows platform in mind.
> >
> >
> > We've also solidified and documented the new generic source mapping
> > infrastructure for custom REPLs. Figwheel and Ambly are already taking
> > advantage of this to great effect.
> >
> >
> > Printing is now customizable in order to support custom printing in
> > Chrome DevTools, there's some prototype work based on this happening
> > here: https://github.com/binaryage/cljs-devtools-sample.
> >
> >
> > cljs.test now supports macro inference simplifying testing at a REPL.
> >
> >
> > Full list of changes, fixes, and enhancements follows.
> >
> >
> > Feedback welcome!
> >
> >
> > ## 0.0-2843
> >
> >
> > ### Enhancements
> > * CLJS-1032: Node.js target should support :main
> > * require cljs.test macro ns in cljs.test to get macro inference goodness
> > * include :url entries to original sources in mapped stacktraces if it
> can be determined   from the classpath
> > * support custom mapped stacktrace printing
> > * provide data oriented stacktrace mapping api
> > * CLJS-1025: make REPL source mapping infrastructure generic
> > * CLJS-1010: Printing hook for cljs-devtools
> > * CLJS-1016: make "..." marker configurable
> >
> >
> > ### Changes
> > * CLJS-887: browser repl should serve CSS
> > * CLJS-1031: Get Closure Compiler over https in the bootstrap script
> >
> >
> > ### Fixes
> > * cljs.nodejscli ns needs to set `goog.global` when `COMPILED` is true,
> this fixes the fundamental issues for ASYNC-110
> > * CLJS-967: "java.net.ConnectException: Connection refused" when running
> node repl
> > * pass relevant source map options in the incremental compile case
> > * add some missing source-map customization flags to optimized builds
> > * fix missed Rhino REPL regression, the surrounding REPL infrastructure
> creates cljs.user for us
> > * util.print has been deprecated in Node.js v0.12. Switch to console.log
> in Node.js REPLs.
> > * change `cljs.closure/watch` so it correctly watches all subdirectories
> do not recompile unless changed path is a file with .cljs or .js extension
>
> Hi David,
>
> Thank you for the awesome release!
>
> I have been using your helpful run.js file from mies-node-template does
> anything need to be updated in it, or is it now obsolete?
>
> try {
>     require("source-map-support").install();
> } catch(err) {
> }
> require("./out/goog/bootstrap/nodejs.js");
> require("./out/{{sanitized}}.js");
> goog.require("{{sanitized}}.core");
> goog.require("cljs.nodejscli");
>
> I am getting a 'Error: Module did not self register.' when I try to run a
> recompiled version of a project that used this.
>
> Thanks again!
>
> --
> 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.

Reply via email to