Mochabot log - CommonJS IRC channel: #commonjs on irc.freenode.net

2010-06-11:

[19:23] <kuya> hello
[19:24] * kuya trying to get his head around nodules
[19:25] <aho> noodles
[19:25] <kuya> nope - definatly nodules :]
[19:26] <aho> getting your head around nooldes is easier though
[19:26] <aho> just eat some ramen
[19:26] <aho> :>
[19:26] <kuya> i had lasagne!
[19:26] <aho> excellent choice
[19:26] <kuya> aaaaanyway... :)
[19:28] <kuya> will i find the package.json spec somewhere in the cjs wiki?
[19:29] <dmachi> yes
[19:29] * kuya fears he will find 10 different versions and have no idea which is the right one ...
[19:29] <dmachi> that might be true too :)
[19:29] <kuya> =]
[19:29] <dmachi> are you using node ?
[19:29] * kuya holds his breath and dives in
[19:29] <kuya> yup
[19:29] <dmachi> i think one of the nodules or pintura readme's tells how to get setup with nodules for that
[19:30] <kuya> yea the nodules doc is semi ok - once i realised that github didnt show the contents of package.json unless i downloaded it... :)
[19:31] <kuya> i thought they were all empty
[20:42] * kuya scratches
[20:43] <kuya> how do i install nodules?
[20:44] <kriszyp> install as in add it your path?
[20:44] <kriszyp> you can copy example/nodules to your /usr/local/bin or wherever and just point it to the right path for nodules.js
[20:46] <kuya> i want to use it programatically ...
[20:47] <kuya> iv got this ~/.node_libraries ... can i stick it in there somehow?
[20:48] <kuya> just copy nodules.js into there?
[20:48] <kriszyp> yes, and nodule-utils, I think
[20:48] <kuya> does node understand this package.json and lib dir stuff? im getting a bit confused
[20:49] <kriszyp> no, just nodules
[20:49] <kuya> ahhh ok
[20:49] <kuya> so if ive required nodules node will load modules with package.json properly?
[20:49] <kuya> *nodules,
[20:50] <kriszyp> if you have loaded the modules through nodules, it will work
[20:50] <kriszyp> if you are doing it programmatically, you have to use the async require.ensure as the starting point (and then the rest of the requires can be normal sync require() calls)
[20:51] <kuya> im not so interested in the async loading - just the automagic module reloading and loading modules from packages
[20:52] <kriszyp> right, but in order for that to work, it has to use the async facilities of node (node doesn't have any sync http for example), so it needs a async starting point
[20:53] <kriszyp> if you start your app with nodules then you don't have to worry about doing any async calls though
[20:54] <kuya> ah i get what your saying
[20:54] <kuya> sorry being a bit slow
[20:54] <kuya> i think ill give this another go in the morning :)

 

 

Logs by date :