Hey all,
I'm digging into ClojureScript at the moment, and am trying to figure out
how to automate generated JS code in a shell, like v8.
In ClojureScript, I have been able to to pull in Google Closure's "*
goog.testing.jsunit*" package. Next step is to take the generated JS code
(optimized or
Sorry, I should have been clearer.
In a JS shell (v8, for example), after running... *load('bkeeping.js');* , I
expect to have a *bkeeping* object. But that's not there. So I tried a *
goog.require('bkeeping.js');* , and a '*bkeeping*' object still wasn't
there.
Basically, I'd like to able to run
> load('out/goog/base.js');
> load('bkeeping.js');
This should be:
load('out/goog/base.js');
load('out/goog/deps.js');
load('bkeeping.js');
On Aug 8, 11:05 pm, Timothy Washington wrote:
> Sorry, I should have been clearer.
>
> In a JS shell (v8, for example), after running... *load('bkeeping.j
Hmm, I tried this with a v8 shell, and I still get...
> load('out/goog/base.js');
> load('out/goog/deps.js');
> load('bkeeping.js');
> bkeeping.fubar("thing");
*(shell):1: ReferenceError: bkeeping is not defined*
*bkeeping.fubar("thing");*
*^*
Where "cat bkeeping.cljs" gives...
*(ns bkeeping*