Pipoca edit your package.json version every git commit that you do, and give the version based on all commits of the project, it work with tags, like "fix", "att" and "new", but it is customizable
Your commits should start with the tag, and in next a colon, and finaly your mensage... See the examples
npm i -g kruceo/pipocajs
pipoca
With the Pipoca running, do any commit with the tag that you prefer.
Remember, by default:
- "fix" increments to patch (0.0.X)
- "att" increments to minor (0.X.0)
- "new" increments to major (X.0.0)
git add .
git commit -m "fix: pipoca test"
If you have the current version in "0.0.0", now is "0.0.1"
pipoca --create-config
This command create a "pipoca.config.json" file, that contains the property "keys" with "patch","minor" and "major", just replace the values with the word that you prefer, like this:
{
"keys":
{
"patch": "fix",
"minor": "kruceo",
"major": "new",
}
}
Now
pipoca
git add .
git commit "kruceo: testing custom tag"
This will disregard all your commits with "att", now it's just added on commits that have your new tag
pipoca --single-run
Print in log anything like this
pipoca --history