Reputation: 8602
I have two projects: xxx-api
and xxx-web
, and both will use same local package xxx::libs
How to maintain xxx::libs
? currently I put xxx::lib under xxx-api
, and whenever I update it, I will copy whole directory to xxx-web/packages
.
Upvotes: 0
Views: 59
Reputation: 64312
/home/user/pacakges
. my-package
) in that directory.export PACKAGE_DIRS="/home/user/packages"
cd
into your each app directory and meteor add my-pacakge
(if you haven't already)That's it! Meteor will always search your PACKAGE_DIRS
before checking for any packages within your app. Make sure to add the export to your environment.
Fore more details I'd recommend reading my blog post on local pacakges.
Upvotes: 1