This tools helps you share private meteor packages.
-
npm install -g mgp
-
Add
git-packages.json
to the root of your project and generate a token for private tarball access.
{
"my:private-package": {
"tarball": "https://api.github.com/repos/my/private-packages/tarball/commithash",
"path": "optional/directory/path"
},
"my:other-private-package": {
"tarball": "https://api.github.com/repos/my/private-packages/tarball/commithash"
},
"token": "GITHUB_ACCESS_TOKEN"
}
- Run
mgp
in your meteor directory to copy the packages from github ormgp my:private-package
to copy an individual package.
or
- Add
local-packages.json
to the root of your project:
{
"my:private-package": {
"path": "~/path/to/private-package"
},
"my:other-private-package": {
"path": "relative/path/to/other-private-package"
}
}
- Run
mgp link
in your meteor directory to symlink your local packages ormgp link my:private-package
to symlink an individual package.