Fork me on GitHub
#clojurescript
<
2015-12-25
>
crocket11:12:53

I felt the slow startup time of clojure was an obstacle in making command line utilities.

crocket11:12:07

Is ClojureScript ok for shell scripts and command line utilities?

crocket11:12:27

I should probably just use bash for a one-liner.

crocket11:12:49

ClojureScript on node.js

crocket13:12:04

Does anyone know how to load npm modules in web applications?

crocket13:12:17

I figured out that I just have to include a browserify bundle along with clojurescript bundle in HTML.

jaen13:12:19

Yeah, compiling out CJS modules out with browserify or webpack or something is currently the best solution.

crocket14:12:02

Any other solution?

crocket14:12:45

How do I integrate browserify into CLJS building process?

jaen14:12:25

No, there's really no any other solution at the moment, there was work done during GSoC to transform single files from CJS/AMD/UMD to GClosure modules done and I experimented somewhat to integrate processing full libs into the compiler but there wasn't really all that much interest, so I stopped.

jaen14:12:31

You can either write your own Makefiles

jaen14:12:48

Or if you use boot you could write a task that shells out to webpack pretty easily.

jaen14:12:52

Then makefiles it is.

jaen14:12:45

That said someone using lein might be aware of a plugin for that, I'm not.

crocket14:12:19

Makefile is an anachronism.

jaen14:12:57

Then grunt or whatever Javascript world uses, I suppose.

jaen14:12:20

I wouldn't even know how to write a lein plugin.

jaen14:12:40

But boot tasks are pretty easy to make by comparison.

crocket14:12:29

Thanks for support, anyway.

freyert21:12:21

I have an om architecture question . . .

freyert21:12:42

Say I have two components: An audio component, and a button component.

freyert21:12:03

You press the button to play the audio, but the button also stays "activated" until the audio ends.

freyert21:12:06

This seems to indicate a bidirectional data flow, the button changes the audio's state, and the audio changes the button's state.

crocket23:12:07

I guess I'm going to use clojurescript on node.js for simple server side apps.