serverless-plugin-git-variables
serverless-plugin-git-variables copied to clipboard
Refactor to use NodeGit
Hey @jacob-meacham, Thanks for merging my PR!
I had another thought, that I may not get around to PR'n for a bit. But it would like be a good idea to refactor out all git CLI commands in favor of using something like NodeGit directly.
This will likely mean that the plugin would then work across OSs.
@iDVB I'm definitely open to a PR doing this! In fact one of the only TODOs in the codebase is to do just that: https://github.com/jacob-meacham/serverless-plugin-git-variables/blob/a6a33f5acd1e06a34835c4c623ec0bb745a5cda7/src/index.js#L1