rkotze / git-mob

Co-author commits tool. A cross-platform command-line tool for social coding. Includes co-authors in commits when pair/mob programming.
https://www.npmjs.com/package/git-mob
MIT License
182 stars 21 forks source link

Trying out npm workspaces to create a reusable Git Mob core library #92

Closed rkotze closed 1 year ago

rkotze commented 1 year ago

Pull request checklist

Pull request type

Please check the type of change your PR introduces:

What is the current behaviour?

Git Mob cli and vscode extension have duplicated code which implements the core functionality. It will be helpful to create a core library to share between these codebases.

There might be further value for the open source community to reuse the package in their tooling.

Does this introduce a breaking change?

Workspace design

WIP - learning about workspaces/monorepos and is it a good idea for git mob

 Top-level actions

Notes:

Versioning: This does not work as expected following command npm version patch --workspaces --include-workspace-root - What happens is it runs the root script and then versions but does not wait for packages to run and update. This results in packages with changed versions not committed with the root package version. This is probably what Lerna manages. Might be worth using Lerna version