You can also check out Browserbuild, from LearnBoost: https://github.com/LearnBoost/browserbuild
On Tue, Jan 31, 2012 at 4:28 PM, AJ ONeal <[email protected]> wrote: > > Your directory structure might look like this: >> > >> > - project >> > - browser >> > - server >> > > >> Where do you put code, you use on both sides? >> > > You create an npm module for it or you symlink it or you copy it. > > I should be possible with just an entry point, say src/browser.js, to >> scan throw the whole source directories bundling all files, getting >> modules it can't find from node_modules/. > > > you can `require('../server/blah.js')`, but I'd recommend using a symlink > at worst. > > I've thought about adding support to list local dependencies in > package.json, but npm doesn't like that last time I checked. > > I don't know if Isaac has blessed a solution for that particular problem > or not. > > -- > 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 > -- 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
