Lerna command extensions for Git Package Manager
MIT License
Lerna command extensions for Git Package Manager
Use git for sharing node package, which integrated with lerna (lerna.json)
npm i lerna-cli lerna-command-preset-gpm -D
{
packages: ['packages/*'],
extendCommands: ['lerna-command-preset-gpm'],
command: {},
gpm: {
'packages/shared-lib': {
branch: 'master',
url: 'git-url',
remote: 'origin',
checkout: 'commit-sha'
}
}
}
After executing lerna gpm-update
, the files are as following.
lerna.json
.gitignore # `/packages/shared-lib` will be appended here
packages/
shared-lib/
.git/
...
git checkout -b feature-new
or git checkout -b fix-which-bug
git commit -am 'feat: some description (close #123)'
or git commit -am 'fix: some description (fix #123)'
git push
This library is written and maintained by imcuttle, [email protected].
MIT - imcuttle 🐟