Skip to content

Kruceo/Pipoca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PipocaJS

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

Each tag adds one to the patch,minor or major value of version

Your commits should start with the tag, and in next a colon, and finaly your mensage... See the examples

To install

npm i -g kruceo/pipocajs

To start the watcher

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"

To customize

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

To do a single run

pipoca --single-run

⚠️ Remember: Use this after your commit! ⚠️

To show history

Print in log anything like this

pipoca --history

About

Semantic version incrementer utility tool

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published