Most of time node_modules folder is added in .gitignore .. and adding these local module in node_modules after making. Chages is painful.. thats way i created the module .. btw i know it is not ideal solution.. ideal scenario should not create nested directory structure.. just in search of some good blog post which will explain it with fairly complex problem .. or about how to organize code in node.js project On Apr 22, 2014 10:42 PM, "Aria Stewart" <[email protected]> wrote:
> > On Apr 22, 02014, at 13:05, Chetan Dhembre <[email protected]> > wrote: > > > > Can any one tell how people manage large code base ? > > > > Break things up into small modules -- commit them in node_modules, or > isolate > > I created module (local-require) which simple create symbolic link of ur > local module to node_modules folder so that you can use them directly from > any place from codebase. > > > That works with node as-is: > > in node_modules/test/c.js: > > module.exports = “HELLO”; > > in test.js, no matter how deep into the directory structure sibling to > node_modules: > > console.log(require(‘test/c.js’)); > > logs “HELLO”. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
