{"_id":"grunt-version-bump","_rev":"34-56ac52ff423f1e46ba6e02482de3a8bb","name":"grunt-version-bump","description":"A grunt plugin for bumping a version property in JSON files","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"grunt-version-bump","version":"1.0.0","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"https://github.com/xl8/grunt-version-bump.git"},"author":{"name":"Idan Mittelpunkt"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"gitHead":"4dc06628854204d35e4fb8e7eb2e7a6b88d2b1a4","_id":"grunt-version-bump@1.0.0","scripts":{},"_shasum":"526f4128ad1dc4150b38b7ae77e45a6e6238a17b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}],"dist":{"shasum":"526f4128ad1dc4150b38b7ae77e45a6e6238a17b","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.0.tgz","integrity":"sha512-3+CXcYsBeMYx7uB5ekDqUMH3ayZ1Icmhyznq34nLqzXKgGkicZGyJxVQ0+P1/97l56br1qCIMdgcdF9liuodhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJEjh5U6JQTEdEH9isktEdKuIZR8N5uZsvL6WP+triXAiEAhGIMcTEZQfsphung6geAqZxW55NrrLfd+bbIJk5I0Cw="}]}},"1.0.1":{"name":"grunt-version-bump","version":"1.0.1","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"https://github.com/xl8/grunt-version-bump.git"},"scripts":{"test":"grunt test"},"author":{"name":"Idan Mittelpunkt"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"gitHead":"860a993d3404a54589645aabefb75199bb953350","_id":"grunt-version-bump@1.0.1","_shasum":"a28ae6895434df81c35e9ea0e0ff9b6c8568640a","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}],"dist":{"shasum":"a28ae6895434df81c35e9ea0e0ff9b6c8568640a","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.1.tgz","integrity":"sha512-Vc4bmKGcKmuW84Oxl0Atj9wPjJW4FP8AB2WESqxrdxNro0Vw0OIdGPzGOggiI1k7D3LI2z0CgMohoLFWveYOuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDk3TOwQtBI/+mUIrSQ41MGw78tVSTpCZK3SuTLDIUvugIhAPuyutTqwJ95UNLJlAKiE10RqdZxr4iswOsrfbifkIjJ"}]}},"1.0.2":{"name":"grunt-version-bump","version":"1.0.2","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"https://github.com/xl8/grunt-version-bump.git"},"scripts":{"test":"grunt test"},"author":{"name":"Idan Mittelpunkt"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"_id":"grunt-version-bump@1.0.2","dist":{"shasum":"215692f76c282c7e8b7f8f2f3444f56a967a40c4","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.2.tgz","integrity":"sha512-nOullgVbvYVd2cTn6xIcZlIsCvuU9JLGiHn3swm9OCxecVplmg3a6KvAD1ZbtZENTM4LCJSZ6DrdSZL0WNTQnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWu9EIxGGPbAYXz7NpQ4hVneDwFMWEtYcMn+7GS5sWvAiAG4LDcLEM5xo2RT+0cPMm5zYObfGnDUn9C86DDLEuV7Q=="}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}]},"1.0.3":{"name":"grunt-version-bump","version":"1.0.3","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"https://github.com/xl8/grunt-version-bump.git"},"scripts":{"test":"grunt test"},"author":{"name":"Idan Mittelpunkt"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"_id":"grunt-version-bump@1.0.3","dist":{"shasum":"35762f69f548ff1583d75f89ebf30909ed5f40e9","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.3.tgz","integrity":"sha512-k4zn+3VgWgU8aZZGsaCs6iPi6pDvwhQGroc5oR47eWger7eqHiaSYkC5+85KdDqBVGCMplrjE7y3Tx4U2B5t7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDipPs7OsmatfP+1FD3XpBnuBTLM7ZFVeG2x7WPT9PjVAiEAofoTvWQqR57aN1d/PajpM1Dzd737H55iVNmvEt8JZEE="}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}]},"1.0.4":{"name":"grunt-version-bump","version":"1.0.4","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"https://github.com/xl8/grunt-version-bump.git"},"scripts":{"test":"grunt test"},"author":{"name":"Idan Mittelpunkt"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"_id":"grunt-version-bump@1.0.4","dist":{"shasum":"b9fd71569e703885315360c80710088bff0e335b","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.4.tgz","integrity":"sha512-LvAoHiAnkubYnseazmaIeGy4rm0ocsB6u0AxH+mNZRpYeMTMTtg0XYPjT8LqZhB71Jw250PmTHTnORAr3U+r6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCICWGu4ju3aUALEcbCotR/xkZymotearIbEj2ejRzSYlaAh8ciSqE0NOwZcGq9AKUmmBdjVvgbdbU1KHTRE04mLy2"}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}]},"1.0.5":{"name":"grunt-version-bump","version":"1.0.5","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"https://github.com/xl8/grunt-version-bump.git"},"scripts":{"test":"grunt test"},"author":{"name":"Idan Mittelpunkt"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"_id":"grunt-version-bump@1.0.5","dist":{"shasum":"a5641da00dc9da82b8d070fff9527dfdd6fb5a6a","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.5.tgz","integrity":"sha512-6DBPaSRLkc9EO2dom4ECXtUtnyhcxC+x5hS6Fhs8n12bKMi0+qbMN4H2aEJYjrj6dNqIchVdYw9iT76Dp1sglw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+cVtffivxF63+9lyvreP4Gih+v1OL03SPIlmdBI4YDgIgTCcgOi074hcQ8XRvQblvaCAwEd8FxL1qDa8917O6Gsk="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}]},"1.0.6":{"name":"grunt-version-bump","version":"1.0.6","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"git+https://github.com/xl8/grunt-version-bump.git"},"scripts":{"test":"grunt test"},"author":{"name":"eXelate"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"devDependencies":{"grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"gitHead":"f5fa40551ac85cba1d08b82f9436c8a9660b3d59","_id":"grunt-version-bump@1.0.6","_shasum":"5b3d0032a2054b6860d9f960e1c9976a31c24771","_from":".","_npmVersion":"2.11.1","_nodeVersion":"4.1.1","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"dist":{"shasum":"5b3d0032a2054b6860d9f960e1c9976a31c24771","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.6.tgz","integrity":"sha512-1C9FUhuluBFDtYS8jec28rdCZRLa6GgrgKJp1hXRkBuv8H3kNYhd8SzIYxuUDaM2ojHY10WynAOzeobJ+PBXdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfnG62nn5t2bqR6jPj8d5iQ9a5VLZJo+y4NxJdS3x0mAiEA3pQcfG1RRn0dnP6fc+K8OwRQXHZNdlfvmA66aACVH/w="}]},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}]},"1.0.7":{"name":"grunt-version-bump","version":"1.0.7","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"git+https://github.com/xl8/grunt-version-bump.git"},"scripts":{"test":"grunt test"},"author":{"name":"Idan Mittelpunkt"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"gitHead":"5a467539a0d1fb217ec3dd7b63fc7f8aebcfa91c","_id":"grunt-version-bump@1.0.7","_shasum":"35863048ac88f7c51480952a77d6b4e41f59c24c","_from":".","_npmVersion":"2.11.1","_nodeVersion":"4.1.1","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"dist":{"shasum":"35863048ac88f7c51480952a77d6b4e41f59c24c","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.7.tgz","integrity":"sha512-RwLgakl+VDnjSQNcSC2hdocPSiYG4PVOuWCTigiVPKUyxWW/wkZwerUGGGOwS3LprV7xN4b5jUKNFCSKsk1YUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGRzIHVZj0G3bgGjzpxpUXU6mCL/7tMLEPuloAHAi2qbAiAQFOrpipOQ313dRWWvhSz3uUfr4h70dNNX5pt/3gPcpA=="}]},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}]},"1.0.8":{"name":"grunt-version-bump","version":"1.0.8","description":"A grunt plugin for bumping a version property in JSON files","main":"index.js","repository":{"type":"git","url":"git+https://github.com/xl8/grunt-version-bump.git"},"scripts":{"test":"grunt test"},"author":{"name":"Idan Mittelpunkt"},"license":"MIT","bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"homepage":"https://github.com/xl8/grunt-version-bump","dependencies":{"detect-indent":"~0.1.3","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"devDependencies":{"grunt":"~0.4.2","grunt-contrib-nodeunit":"~0.2.2","grunt-contrib-clean":"~0.5.0"},"gitHead":"4ad3988f06adc4b6560ae7504f0b1dda156ad521","_id":"grunt-version-bump@1.0.8","_shasum":"a63c96262bf67cff12c76a6912910c66f1a27cf3","_from":".","_npmVersion":"2.11.1","_nodeVersion":"4.1.1","_npmUser":{"name":"oferitz","email":"oferi@exelate.com"},"dist":{"shasum":"a63c96262bf67cff12c76a6912910c66f1a27cf3","tarball":"https://registry.npmjs.org/grunt-version-bump/-/grunt-version-bump-1.0.8.tgz","integrity":"sha512-XMmXWRX8Ea0sdB3gVMdmeCFWTT69YVguUSOJga5YyesAP4L9Gddio759Z025sOSVF6Dyflo2OsWxFra0sKPL0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJN3szuFaPmE97VwIcxSdJK762hMg/UgfCNYUBnOL8vAiEA92Evm10kC4ey39vu2o/y+b55TRI90Tg7xADb/a1XZhk="}]},"maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}]}},"readme":"#Overview\r\nA grunt plugin for bumping a version property in JSON files\r\n\r\n#Getting Started\r\nThe plugin requires Grunt ~0.4.2\r\n\r\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\r\n\r\n```shell\r\nnpm install grunt-version-bump --save-dev\r\n```\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-version-bump');\r\n```\r\n\r\n## The \"version_bump\" task\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `version_bump`.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  version_bump: {\r\n    files: ['package.json', 'component.json', 'somefile.txt']\r\n  }\r\n});\r\n\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\ngrunt version_bump\r\n```\r\nThere is a default version string structure, but you can provide your own structure.\r\n\r\nBy default, the part with the lowest priority gets bumped. In the default version string structure that would be the **build** part.\r\n\r\nYou can specify a different increment type in 1st argument:\r\n```js\r\ngrunt version_bump:[incrementType]\r\n```\r\nThe default version string structure pattern is\r\n```\r\n<major>.<minor>.<patch>-<stage>.<build>\r\n```\r\nAvailable increment types provided in the default version string strucutre:<br>\r\nLet's assume current version is 1.2.3-SNAPSHOT.4\r\n```javascript\r\n    grunt version_bump:major // 2.0.0-SNAPSHOT.1\r\n    grunt version_bump:build // 2.0.0-SNAPSHOT.2\r\n    grunt version_bump:minor // 2.1.0-SNAPSHOT.1\r\n    grunt version_bump:build // 2.1.0-SNAPSHOT.2\r\n    grunt version_bump:patch // 2.1.1-SNAPSHOT.1\r\n    grunt version_bump:build // 2.1.1-SNAPSHOT.2\r\n    grunt version_bump:stage // 2.1.0-alpha.1\r\n    grunt version_bump:build // 2.1.0-alpha.2\r\n    grunt version_bump:stage // 2.1.0-beta.1\r\n    grunt version_bump:stage // 2.1.0-RELEASE.1\r\n    grunt version_bump:major --condition=stage:alpha // 2.1.0-RELEASE.1\r\n    grunt version_bump:major --condition=minor:1 // 2.2.0-RELEASE.1\r\n```\r\nAs can be seen, bumping a part results in resetting all parts of lower priority. The priority order of the default version string strcuture is **major**, **minor**, **stage**, **patch**, **build**.\r\n\r\n### Settings\r\n\r\n#### files\r\nType: `String|Array`  \r\nDefault: `['package.json']`\r\n\r\nFile paths of the meta file(s) you wish to operate on.\r\n\r\n#### incrementType\r\nType: `String`  \r\n\r\nThe part to increment. Must be defined in the version string structure.\r\n\r\n#### versionStructureFile\r\nType: `String`  \r\n\r\nFile path to the version structure file if you wish to override the default.\r\n\r\n#### versionStructure\r\nType: `JSON`\r\n\r\nA content of a version strcuture. An array of objects with the following fields:\r\n##### name\r\nType: `String`\r\n\r\nThe name of the part\r\n\r\n##### prefix\r\nType: `String`\r\nDefault: `.`\r\n\r\nA string to put before the part\r\n\r\n##### order\r\nType: `Integer`\r\n\r\nThe order of the part in the version string. Must be consecutive.\r\n\r\n##### priority\r\nType: `Integer`\r\n\r\nThe priority of the part in the version string. Must be consecutive. 1 is for the highest priority.\r\n\r\n##### resettable\r\nType: `Boolean`\r\n\r\nWhether or not the part should be reset if a higher priority part was requested to be bumped.\r\n\r\n##### resetTo\r\nType: `Integer`\r\nDefault: 0\r\n\r\nThe number to use when resetting a resettable part.\r\n\r\n##### values\r\nType: `Array`\r\n\r\nArray of strings ordered by priority of possible values for that part if numbers are not good enough.\r\n\r\n#### callback\r\nType: `Function`\r\n\r\nCallback function after successfully job, in parameter is set name of new version.\r\n\r\n### Command Line Options\r\n#### condition\r\nType `String:String`\r\n\r\nA condition that only if met a bump will be done. The left part is a name of a part and the right part is the value.\r\n\r\n## Contributing\r\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\r\n\r\n## Release History\r\n_(Nothing yet)_\r\n\r\n## Issues\r\nPlease use the [github issues list](https://github.com/xl8/grunt-coffeelinter/issues) to report any issues. If possible, please include a link to an open github repo with the smallest failing example of your issue. Even better, fork the project, create a failing test case and issue a pull request with the issue number referenced in the pull request. Super better, fork the project create a failing test case, fix the problem, and issue a pull request with the test and fix referencing the issue number. \r\n","maintainers":[{"name":"oferitz","email":"oferi@exelate.com"}],"time":{"modified":"2022-06-18T16:15:31.415Z","created":"2015-02-11T15:13:55.379Z","1.0.0":"2015-02-11T15:13:55.379Z","1.0.1":"2015-02-12T09:47:14.139Z","1.0.2":"2015-02-15T15:13:33.059Z","1.0.3":"2015-02-15T16:01:06.502Z","1.0.4":"2015-02-16T09:07:01.321Z","1.0.5":"2015-02-16T09:14:31.955Z","1.0.6":"2015-10-12T09:37:31.148Z","1.0.7":"2015-10-12T10:45:39.870Z","1.0.8":"2015-10-12T12:04:42.405Z"},"homepage":"https://github.com/xl8/grunt-version-bump","repository":{"type":"git","url":"git+https://github.com/xl8/grunt-version-bump.git"},"author":{"name":"Idan Mittelpunkt"},"bugs":{"url":"https://github.com/xl8/grunt-version-bump/issues"},"license":"MIT","readmeFilename":"README.md","users":{"hlefreyr":true}}