{"_id":"grunt-version-git","_rev":"30-d7f15a7347c7243f574db9a5a71963ed","name":"grunt-version-git","description":"Change version numbers in files, including the option to change the revision number to the number of Git commits.","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.5":{"name":"grunt-version-git","description":"Change version numbers in files, including the option to change the revision number to the number of Git commits.","version":"0.1.5","homepage":"https://github.com/Sjeiti/grunt-version-git","author":{"name":"Ron Valstar","email":"sjeiti@gmail.com","url":"http://www.sjeiti.com/"},"repository":{"type":"git","url":"https://github.com/Sjeiti/grunt-version-git.git"},"bugs":{"url":"https://github.com/Sjeiti/grunt-version-git/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Sjeiti/grunt-version-git/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-version-git@0.1.5","dist":{"shasum":"a430daf42bf7c3b22d10ba1c6aae63cf9a344fdc","tarball":"https://registry.npmjs.org/grunt-version-git/-/grunt-version-git-0.1.5.tgz","integrity":"sha512-a9f2Q6Af6yFygTj8mcI1uecWr/Nj/jQ/XhDrM0UjtsRU1chtjbaa1pEh7lVzynuEVJs4YGQOdRfxJj3kEhuF1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICvGTPsIXBAReb66Zc0pYcQEAFBGI0r/PD/+sOQT0F3pAiBU9WgDun7g6DvCRFt+RSXorF6n8x4BjaENaReiQyY54g=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"sjeiti","email":"npm@sjeiti.com"},"maintainers":[{"name":"sjeiti","email":"npm@sjeiti.com"}]},"0.1.6":{"name":"grunt-version-git","description":"Change version numbers in files, including the option to change the revision number to the number of Git commits.","version":"0.1.6","homepage":"https://github.com/Sjeiti/grunt-version-git","author":{"name":"Ron Valstar","email":"sjeiti@gmail.com","url":"http://www.sjeiti.com/"},"repository":{"type":"git","url":"https://github.com/Sjeiti/grunt-version-git.git"},"bugs":{"url":"https://github.com/Sjeiti/grunt-version-git/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Sjeiti/grunt-version-git/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-version-git@0.1.6","dist":{"shasum":"4a7c65c5b54b545e28d7148b14eb89e12a1e6af5","tarball":"https://registry.npmjs.org/grunt-version-git/-/grunt-version-git-0.1.6.tgz","integrity":"sha512-TvGL+/R2KFXZCyXBHQqu1gV1Z0EVLnJna5K7Ii+ja2WUubjzjVR7IZKGVWYfqS7wkCIy1M8CqKS7CFBXMNNpyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ259GBI+2DBq3ws33+MyPKEo2/3Bwfhzp4PRtEcRvUQIhAMJJLYW4G6dZ4QNrhHCFmpE6sGhhFqd7DgcUOyjwGpH7"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"sjeiti","email":"npm@sjeiti.com"},"maintainers":[{"name":"sjeiti","email":"npm@sjeiti.com"}]},"0.1.7":{"name":"grunt-version-git","description":"Change version numbers in files, including the option to change the revision number to the number of Git commits.","version":"0.1.7","homepage":"https://github.com/Sjeiti/grunt-version-git","author":{"name":"Ron Valstar","email":"sjeiti@gmail.com","url":"http://www.sjeiti.com/"},"repository":{"type":"git","url":"https://github.com/Sjeiti/grunt-version-git.git"},"bugs":{"url":"https://github.com/Sjeiti/grunt-version-git/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Sjeiti/grunt-version-git/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-version-git@0.1.7","dist":{"shasum":"7f55ba2c0a13e97318e17f0fa96ca674dfddadfa","tarball":"https://registry.npmjs.org/grunt-version-git/-/grunt-version-git-0.1.7.tgz","integrity":"sha512-dYtOcEDU7//wBPzbiC9y3NNgjv/3lYarS6nlODuQ9OK5LqKjdULVvaqju4NkfmMQ5AIEUkOEZsRmsHFFS5W8rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIJZfnkS6WJBzqpkIp/CJungGBwdfL5SnkpmrYTqIxiwIgPD4Rs0A3hq3EOS/RLze7yDL6uMq9tbkMlVKgiemTEKA="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"sjeiti","email":"npm@sjeiti.com"},"maintainers":[{"name":"sjeiti","email":"npm@sjeiti.com"}]},"0.2.1":{"name":"grunt-version-git","description":"Change version numbers in files, including the option to change the revision number to the number of Git commits.","version":"0.2.1","homepage":"https://github.com/Sjeiti/grunt-version-git","author":{"name":"Ron Valstar","email":"sjeiti@gmail.com","url":"http://www.sjeiti.com/"},"repository":{"type":"git","url":"https://github.com/Sjeiti/grunt-version-git.git"},"bugs":{"url":"https://github.com/Sjeiti/grunt-version-git/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Sjeiti/grunt-version-git/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","load-grunt-tasks":"~2.0.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","version","git","revisions"],"_id":"grunt-version-git@0.2.1","dist":{"shasum":"61ef4d6ac8f51195d6593416cb973fd4444a55b4","tarball":"https://registry.npmjs.org/grunt-version-git/-/grunt-version-git-0.2.1.tgz","integrity":"sha512-Qhx6YmcFCzQnklbsOo5INO61wyxspn4UXnAi8LWzrk7cE6zzKZ+xXrLepY7lhRZC4TD7Ym4bX+YUcLxhzc/0+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzkVAFN9/IU/NQVrRwGCasjLWO+fZBdVD1c+j6rK99iAiEA7VnrfVvQ5JzvYWs9gGyLfHShHUbXzdRM7ThPjY2s+18="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"sjeiti","email":"npm@sjeiti.com"},"maintainers":[{"name":"sjeiti","email":"npm@sjeiti.com"}]},"0.2.2":{"name":"grunt-version-git","description":"Change version numbers in files, including the option to change the revision number to the number of Git commits.","version":"0.2.2","homepage":"https://github.com/Sjeiti/grunt-version-git","author":{"name":"Ron Valstar","email":"sjeiti@gmail.com","url":"http://www.sjeiti.com/"},"repository":{"type":"git","url":"https://github.com/Sjeiti/grunt-version-git.git"},"bugs":{"url":"https://github.com/Sjeiti/grunt-version-git/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Sjeiti/grunt-version-git/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","load-grunt-tasks":"~2.0.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","version","git","revisions"],"_id":"grunt-version-git@0.2.2","dist":{"shasum":"5e036b50ba96bf0db24eb785552bf2068953149b","tarball":"https://registry.npmjs.org/grunt-version-git/-/grunt-version-git-0.2.2.tgz","integrity":"sha512-oIXLp5jiMUIuu7qely2W5pt1e8KTCaluM+K9RBLrX5x4s/wPQhRqKohPPQQaeQtAuH9Hn6PmGp8yoAfB9tYcWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZxX4VoHYzKs8yUDDErw3kt4yuiw8sa+jYLZZbMzivHQIhAP5l+KfcQfvEPuj4AMXOeLMbUXNAvLAlv9/91wrbyxvQ"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"sjeiti","email":"npm@sjeiti.com"},"maintainers":[{"name":"sjeiti","email":"npm@sjeiti.com"}]},"0.3.0":{"name":"grunt-version-git","description":"Change version numbers in files, including the option to change the revision number to the number of Git commits.","version":"0.3.0","homepage":"https://github.com/Sjeiti/grunt-version-git","author":{"name":"Ron Valstar","email":"sjeiti@gmail.com","url":"http://www.sjeiti.com/"},"repository":{"type":"git","url":"https://github.com/Sjeiti/grunt-version-git.git"},"bugs":{"url":"https://github.com/Sjeiti/grunt-version-git/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Sjeiti/grunt-version-git/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","load-grunt-tasks":"~2.0.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","version","git","revisions"],"_id":"grunt-version-git@0.3.0","dist":{"shasum":"b41ae22858e4116f892699781a2852bbf3307436","tarball":"https://registry.npmjs.org/grunt-version-git/-/grunt-version-git-0.3.0.tgz","integrity":"sha512-A1xljSualZUPc3QAN9LwWhXf4CjFzvvtDlmO9vwypQDqVlHZ4oSjgDGlXOl1lQPUw1QaFOCQlFJWt1v9MMmvPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDB6SzdCgbEKiJ1l5yDQ6srcXOwvuXcsL6TZ9B+boCtgAiApF7b+hLKqv6eXsfDAZU3x6et+SGcWLZQM1Qb0bQob1A=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"sjeiti","email":"npm@sjeiti.com"},"maintainers":[{"name":"sjeiti","email":"npm@sjeiti.com"}]},"0.3.1":{"name":"grunt-version-git","description":"Change version numbers in files, including the option to change the revision number to the number of Git commits.","version":"0.3.1","homepage":"https://github.com/Sjeiti/grunt-version-git","author":{"name":"Ron Valstar","email":"sjeiti@gmail.com","url":"http://www.sjeiti.com/"},"repository":{"type":"git","url":"https://github.com/Sjeiti/grunt-version-git.git"},"bugs":{"url":"https://github.com/Sjeiti/grunt-version-git/issues"},"licenses":[{"type":"MIT","url":"https://github.com/Sjeiti/grunt-version-git/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.1","load-grunt-tasks":"~2.0.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","version","git","revisions"],"_id":"grunt-version-git@0.3.1","dist":{"shasum":"b0dbd248678af6d96f71522140bafbf8567308c6","tarball":"https://registry.npmjs.org/grunt-version-git/-/grunt-version-git-0.3.1.tgz","integrity":"sha512-2tjaWtXhvgxkee2sh9Gr4t+DGbpFFfpPD3W2UPhee30CFEARL3cvQXcw7Bd/B8UEmRN97HXzrGMrV2it/Qtaag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/5AgqiDZ4ai7DvKZ0rWhIJ50TpGDtGWDNZdmw45f9/AiEApASA9GkaACYdGMxv+AUwRLWWitntwRw6V/JAt+bLfeQ="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"sjeiti","email":"npm@sjeiti.com"},"maintainers":[{"name":"sjeiti","email":"npm@sjeiti.com"}],"deprecated":"WARNING: This project has been renamed to grunt-next-version. Install using grunt-next-version instead."}},"readme":"# grunt-version-git\r\n\r\n> Change version numbers in files, including the option to change the revision number to the number of Git commits.\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.1`\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-git --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-git');\r\n```\r\n\r\n## The \"version_git\" task\r\n\r\nThis task changes version numbers in files, including the option to change the revision number to the number of Git commits.\r\nThe task can make use of the `git` command and expects it to be globally installed.\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `version_git` to the data object passed into `grunt.initConfig()`.\r\n\r\n```js\r\ngrunt.initConfig({\r\n  version_git: {\r\n    options: {\r\n      // Task-specific options go here.\r\n    },\r\n    your_target: {\r\n      // Target-specific file lists and/or options go here.\r\n    },\r\n  },\r\n})\r\n```\r\n\r\n### Options\r\n\r\n#### options.major\r\nType: `Boolean|Number`\r\nDefault value: `false`\r\n\r\n#### options.minor\r\nType: `Boolean|Number`\r\nDefault value: `false`\r\n\r\n#### options.patch\r\nType: `Boolean|Number`\r\nDefault value: `true`\r\n\r\n#### options.version\r\nType: `String`\r\n\r\n#### options.git\r\nType: `Boolean`\r\nDefault value: `false`\r\nAppends a build number based on the number of GIT commits, ie: v1.2.3+897.\r\n\r\n#### options.regex\r\nType: `Regexp|Regexp[]`\r\nDefault value: `/\\d+\\.\\d+\\.\\d+/`\r\n\r\n\r\n### Command line options\r\n\r\nVersioning options can be used by CLI, which is very useful for bumping majors and minors. The following overrides the setup from the gruntfile and sets the major version of all files:\r\n\r\n`grunt version_git --major=3`\r\n\r\nOther options are:\r\n\r\n`grunt version_git --minor=3`\r\n\r\n`grunt version_git --patch=3`\r\n\r\n`grunt version_git --vs=\"2.3.4\"`\r\n\r\n\r\n### Usage Examples\r\n\r\n#### Default Options\r\nIn this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`\r\n\r\n```js\r\ngrunt.initConfig({\r\n  version_git: {\r\n    files: ['src/testing/file0.js']\r\n  }\r\n})\r\n```\r\n\r\n```js\r\n/*\r\n * Example\r\n * @version 1.0.1\r\n */\r\n(function(){\r\n\t'use strict';\r\n\treturn {};\r\n})();\r\n```\r\n\r\n#### Custom Options\r\nIn this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`\r\n\r\n```js\r\ngrunt.initConfig({\r\n  version_git: {\r\n    options: {\r\n    },\r\n    src: ['src/testing', 'src/123']\r\n  }\r\n})\r\n```\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","maintainers":[{"name":"sjeiti","email":"npm@sjeiti.com"}],"time":{"modified":"2022-06-18T16:15:36.415Z","created":"2014-01-31T08:18:40.770Z","0.1.5":"2014-01-31T08:18:41.820Z","0.1.6":"2014-04-18T10:10:52.579Z","0.1.7":"2014-11-30T07:37:05.147Z","0.2.1":"2015-01-04T23:10:39.858Z","0.2.2":"2015-01-09T10:47:24.269Z","0.3.0":"2015-01-27T10:39:22.256Z","0.3.1":"2015-01-27T10:57:19.735Z"},"readmeFilename":"README.md","author":{"name":"Ron Valstar","email":"sjeiti@gmail.com","url":"http://www.sjeiti.com/"},"repository":{"type":"git","url":"https://github.com/Sjeiti/grunt-version-git.git"},"homepage":"https://github.com/Sjeiti/grunt-version-git","keywords":["gruntplugin","version","git","revisions"],"bugs":{"url":"https://github.com/Sjeiti/grunt-version-git/issues"}}