On Wednesday, March 6, 2013 4:37:06 PM UTC-5, Sergey Shteyn wrote:
> How would I make them dependency of main application? Each app module is
> not on npm registry, they are local on the directory.
> mainapp
> package.json
> modA
> package.json
> modB
> package.json
>
> Also modA can depend on ModB. So need to some how reference them.
>
I suspect it's not actually a fantastic practice, but a quick and dirty way
to handle this exact problem is to use symlinks (Git handles them correctly
and in my case I don't care about supporting Windows). So
modA/
node_modules/
modB -> ../../modB
modB/
...
As a side-effect, you can then use 'tar cfhj' (the h is what counts) to
build quick-n-dirty deployable archives.
You can also create your own local npm mirror, aim your local npm at that
and then do what others in this thread have already suggested.
-Tim
--
--
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/groups/opt_out.