lerna-command-gpm-update

update git repo


Keywords
imcuttle, gpm-update, lerna, commands, lerna-commands
License
MIT
Install
npm install lerna-command-gpm-update@0.0.17

Documentation

lerna-gpm

Build status Test coverage lerna Prettier Conventional Commits

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, imcuttle@163.com.

License

MIT - imcuttle 🐟