lerna-gpm

Lerna command extensions for Git Package Manager

MIT License

Downloads
2.8K
Stars
0
Committers
2

lerna-gpm

Lerna command extensions for Git Package Manager

Why use GPM?

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/
    ...

Packages

Contributing

  • Fork it!
  • Create your new branch:
    git checkout -b feature-new or git checkout -b fix-which-bug
  • Start your magic work now
  • Make sure npm test passes
  • Commit your changes:
    git commit -am 'feat: some description (close #123)' or git commit -am 'fix: some description (fix #123)'
  • Push to the branch: git push
  • Submit a pull request :)

Authors

This library is written and maintained by imcuttle, [email protected].

License

MIT - imcuttle 🐟