On Mon, Oct 24, 2011 at 12:08 PM, briche arnaud <briche.arn...@gmail.com> wrote:
> Hi,
>    I just want to know if one can import CommonJS modulesin Riak mapreduce
> or pre-commit hook function.

Hi, Briche.  I'm unfamiliar with how the CommonJS modules are
structured, but if they're available as a simple collections of .js
files, you can have Riak load them at startup by following the
directions given here:

https://help.basho.com/entries/321385-how-do-i-load-3rd-party-javascript-libraries-for-use-in-map-reduce-functions#overview

(essentially: toss the files in a directory, and point to it by
setting 'js_source_dir' in the riak_kv section of your app.config)

-Bryan

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to