{"_id":"rollup-plugin-git-version","_rev":"8-e71d54110e8f3aaa542e88842415a841","name":"rollup-plugin-git-version","time":{"modified":"2022-06-26T13:59:07.503Z","created":"2017-01-25T15:30:36.313Z","0.1.0":"2017-01-25T15:30:36.313Z","0.2.0":"2017-01-25T15:35:17.148Z","0.2.1":"2017-01-25T15:49:07.895Z","0.3.0":"2020-01-29T23:08:39.162Z","0.3.1":"2020-01-29T23:13:36.957Z"},"maintainers":[{"name":"ivansanchez","email":"ivan@sanchezortega.es"}],"dist-tags":{"latest":"0.3.1"},"description":"RollupJS plugin to include the git rev in the version of package.json","readme":"# rollup-plugin-git-version\n\n[Rollup](http://www.rollupjs.org) plugin to include the git rev in the version of `package.json`.\n\n\nIf you develop some software which is bundled with RollupJS, how many times have\nyou done something like...?\n\n```\nimport { version } from '../package.json';\n```\n\nAnd how many times have you wished that the current git branch and revision would\nbe included in that version string?\n\nIf the answer is \"more than zero\", this RollupJS plugin is for you.\n\nSo if your package.json contains something like...\n\n```\n{\n\tversion: \"major.minor.patch\"\n\t...\n```\n\nThen, by using this plugin, when doing an `import { version } from '../package.json';`,\n`version` will have a value like `\"major.minor.patch+branchname.revision\"`. This\nis in compliance with the [semantic versioning standard](http://semver.org/) about\nbuild metadata.\n\nFor example, if your `package.json` contains `version: \"1.2.3\"`, then the value\nfor the `version` value inside your rolled-up code will not be `\"1.2.3\"`, but\ninstead `\"1.2.3+master.890abc\"`.\n\n\n## Installation\n\n```bash\nyarnpkg add --dev rollup-plugin-git-version\n```\nor\n```bash\nnpm install --save-dev rollup-plugin-git-version\n```\n\n\n## Usage\n\nAs with any other Rollup plugin, just add it to the `plugins` option in your RollupJS config:\n\n```js\n// In rollup.config.js\nimport rollupGitVersion from 'rollup-plugin-git-version'\n\nexport default {\n\tentry: 'src/index.js',\n\tdest: 'dist/my-lib.js',\n\tplugins: [\n\t\trollupGitVersion()\n\t]\n};\n```\n\nThis plugin accepts the same options as [`@rollup/plugin-json`](https://github.com/rollup/plugins/tree/master/packages/json).\n\nIf you use this plugin together with [`@rollup/plugin-json`](https://github.com/rollup/plugins/tree/master/packages/json),\nplease be aware that both plugins might try to fight for the file. You can use the `exclude` option of `@rollup/plugin-json`, e.g.:\n\n```js\n// In rollup.config.js\nimport rollupGitVersion from 'rollup-plugin-git-version'\n\nexport default {\n\tentry: 'src/index.js',\n\tdest: 'dist/my-lib.js',\n\tplugins: [\n\t\trollupGitVersion(),\n\t\tjson({ exclude: 'package.json' })\n\t]\n};\n```\n\n\n\n## License\n\n\"THE BEER-WARE LICENSE\":\n<ivan@sanchezortega.es> wrote this file. As long as you retain this notice you\ncan do whatever you want with this stuff. If we meet some day, and you think\nthis stuff is worth it, you can buy me a beer in return.\n","versions":{"0.2.0":{"name":"rollup-plugin-git-version","version":"0.2.0","description":"RollupJS plugin to include the git rev in the version of package.json","main":"dist/rollup-plugin-git-version.cjs.js","jsnext:main":"dist/rollup-plugin-git-version.es.js","files":["src","dist","README.md"],"dependencies":{"git-rev":"^0.2.1","rollup-pluginutils":"^1.5.2"},"devDependencies":{"rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0"},"peerDependencies":{"rollup":"^0.41.4"},"scripts":{"test":"echo \"no tests...\"","pretest":"npm run build:cjs","build":"npm run build:cjs && npm run build:es","build:cjs":"rollup -c -o dist/rollup-plugin-git-version.cjs.js -f cjs","build:es":"rollup -c -o dist/rollup-plugin-git-version.es.js -f es","lint":"eslint src","prepublish":"npm run lint && npm test && npm run build:es"},"repository":{"type":"git","url":"git+https://gitlab.com/IvanSanchez/rollup-plugin-git-version.git"},"keywords":["rollup","rollup-plugin","semver","version"],"author":{"name":"Iván Sánchez Ortega","email":"ivan@sanchezortega.es"},"license":"Beerware","bugs":{"url":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version/issues"},"homepage":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version","gitHead":"cad06c04af3e0f274c51e61d64fbd21907f1667b","_id":"rollup-plugin-git-version@0.2.0","_shasum":"79ee0bd0d10e1687a5da8df58e17ed91bba0a6d6","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"ivansanchez","email":"ivan@sanchezortega.es"},"maintainers":[{"name":"ivansanchez","email":"ivan@sanchezortega.es"}],"dist":{"shasum":"79ee0bd0d10e1687a5da8df58e17ed91bba0a6d6","tarball":"https://registry.npmjs.org/rollup-plugin-git-version/-/rollup-plugin-git-version-0.2.0.tgz","integrity":"sha512-ZBJZgnEIOuRY1IplEEBK2LzoSx1CPXvnUe8GM/wPmwQ/0XmLPxBaj9P0GxsWaFh+D8wyElxVyN/Kayru5UA0QQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYf4c4HHltTs1fwUh2wDzuYoxoL9C8dyK5t8BGrtCrMAiEAjYf9sIORdFTwxIL/qgj2CixC/eZxboBYUxuzQu6MnUA="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-git-version-0.2.0.tgz_1485358515286_0.34803237579762936"},"directories":{}},"0.2.1":{"name":"rollup-plugin-git-version","version":"0.2.1","description":"RollupJS plugin to include the git rev in the version of package.json","main":"dist/rollup-plugin-git-version.cjs.js","jsnext:main":"dist/rollup-plugin-git-version.es.js","files":["src","dist","README.md"],"dependencies":{"git-rev":"^0.2.1","rollup-plugin-json":"^2.1.0","rollup-pluginutils":"^1.5.2"},"devDependencies":{"rollup":"^0.41.4","rollup-plugin-buble":"^0.15.0"},"peerDependencies":{"rollup":"^0.41.4"},"scripts":{"test":"echo \"no tests...\"","pretest":"npm run build:cjs","build":"npm run build:cjs && npm run build:es","build:cjs":"rollup -c -o dist/rollup-plugin-git-version.cjs.js -f cjs","build:es":"rollup -c -o dist/rollup-plugin-git-version.es.js -f es","lint":"eslint src","prepublish":"npm run lint && npm test && npm run build:es"},"repository":{"type":"git","url":"git+https://gitlab.com/IvanSanchez/rollup-plugin-git-version.git"},"keywords":["rollup","rollup-plugin","semver","version"],"author":{"name":"Iván Sánchez Ortega","email":"ivan@sanchezortega.es"},"license":"Beerware","bugs":{"url":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version/issues"},"homepage":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version","gitHead":"de8a992bd28a69fbd26d3f85b7ca8c8b2362f099","_id":"rollup-plugin-git-version@0.2.1","_shasum":"57e77d443c695b28428da90039d2dc7507d838dc","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"ivansanchez","email":"ivan@sanchezortega.es"},"maintainers":[{"name":"ivansanchez","email":"ivan@sanchezortega.es"}],"dist":{"shasum":"57e77d443c695b28428da90039d2dc7507d838dc","tarball":"https://registry.npmjs.org/rollup-plugin-git-version/-/rollup-plugin-git-version-0.2.1.tgz","integrity":"sha512-AK7dSu3ifn6FfGcJAq0YW1K3jUJcoCC2Uux+ZW9f8vmkYojNV1AgKG0hcPQHGVx/ef0VCumPiCYvaLRfjvVToA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9ZIbxBfdvMfWq5jFVmP819ex5dgfSwedRqd++3fiVKgIgPaSo8CIqqHfOpKUdxa8kmsKVcO73FZQ3DFnZOp4uwc0="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rollup-plugin-git-version-0.2.1.tgz_1485359347230_0.7623257515951991"},"directories":{}},"0.3.0":{"name":"rollup-plugin-git-version","version":"0.3.0","description":"RollupJS plugin to include the git rev in the version of package.json","main":"dist/rollup-plugin-git-version.cjs.js","jsnext:main":"dist/rollup-plugin-git-version.es.js","module":"src/version.mjs","dependencies":{"@rollup/plugin-json":"^4.0.0","git-rev":"^0.2.1"},"devDependencies":{"prettier":"^1.19.1","rollup":"^1.30.1","rollup-plugin-buble":"^0.19.8"},"peerDependencies":{"rollup":"^1.30.1"},"scripts":{"test":"echo \"no tests...\"","pretest":"npm run build:cjs","build":"npm run build:cjs && npm run build:es","build:cjs":"rollup -c -o dist/rollup-plugin-git-version.cjs.js -f cjs","build:es":"rollup -c -o dist/rollup-plugin-git-version.es.js -f es","lint":"prettier --write src/*.mjs","prepublish":"npm test && npm run build:es"},"repository":{"type":"git","url":"git+https://gitlab.com/IvanSanchez/rollup-plugin-git-version.git"},"keywords":["rollup","rollup-plugin","semver","version"],"author":{"name":"Iván Sánchez Ortega","email":"ivan@sanchezortega.es"},"license":"Beerware","bugs":{"url":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version/issues"},"homepage":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version","prettier":{"printWidth":85,"tabWidth":4,"useTabs":true,"trailingComma":"es5","arrowParens":"always"},"_id":"rollup-plugin-git-version@0.3.0","dist":{"shasum":"f0b39571260a7e549ee9a3f5baaf9383d6284165","integrity":"sha512-KSiltkD4Tfihv2dkiLfv1Wrs7fX2+NsbWcvagNv2BKP1lLnUmjgjJcx7ewXn5lXIto3YJ3tjhSg+50hA2/ijjA==","tarball":"https://registry.npmjs.org/rollup-plugin-git-version/-/rollup-plugin-git-version-0.3.0.tgz","fileCount":8,"unpackedSize":8484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMhB3CRA9TVsSAnZWagAAf/sP/33vmBsNvBj997cK7HzR\nLuQ+WIhOuS+ofc3nAjDmaXXbEHBOwtGwqbqaXmIdk5MYeKGQih8CL6HmwNqA\nkmuUzPot9GRssGf3BObOMETUP0YP41dDIt+4f4zlsGPEG5KfhM9rUZIRJoW8\n4lYb0rt68QVRJ3yI4QvyBBGZvhPQbrIK5KwnaO+c24JUz3CEwNli5QuWmzhq\nVFm+Is3qaEa0ANYoXKaY1lB76J3J/1LABMBIVJ4/8RKpVki8FC1SjEXyKEkW\ncP6bPuMIZU6erJQTfQup070zO9wubpaRN25tAUKMS9lUx004Heb2wyZj6YHS\nEzfqrn0vMU5N15VTCB8Twd9O13wdw/VaQM+jeteu+2yfizAk00YC2qmp7Wo3\n1imfkxIuM9QdpM+8xIfHE0RkzWAT+2XWUu+3q4oCjEGfx/xa+ycO4vJD5U0r\nJ5s+Lf0H2M3t+PXiQ8vaSyJz7tE0XzQ/SJdBjasxd47rsQotsortbjhW0zxk\nmvDq1tXXGZmfplGqCNFuI2sCG+KqC+zhidLouNLY5O3exXaExha+HKPcSebi\n6BLNPsDjU7+4gc0QOve+3ZhRB4tyRiE+5/gxJ8Lfjs8S38BYZ9Hnv2Q7sbzL\nvUDAdLTV6Z9wTibPJpsPRr3tPiG0z+OGkVMqqqZXVAPAlG2VqdYe6kq8px2a\nQXgi\r\n=1sV3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS1BtzqXIlZL4nWYo4B2GGaVSjvGohkrNJON/+3RJePwIhAO6tJ3H4B4dDrROyoqMFi19+8piNkMKJKO1Mo775O/Lp"}]},"maintainers":[{"name":"ivansanchez","email":"ivan@sanchezortega.es"}],"_npmUser":{"name":"ivansanchez","email":"ivan@sanchezortega.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-git-version_0.3.0_1580339319017_0.4669613407569768"},"_hasShrinkwrap":false},"0.3.1":{"name":"rollup-plugin-git-version","version":"0.3.1","description":"RollupJS plugin to include the git rev in the version of package.json","main":"dist/rollup-plugin-git-version.cjs.js","jsnext:main":"dist/rollup-plugin-git-version.es.js","module":"src/version.mjs","dependencies":{"@rollup/plugin-json":"^4.0.0"},"devDependencies":{"prettier":"^1.19.1","rollup":"^1.30.1","rollup-plugin-buble":"^0.19.8"},"scripts":{"test":"echo \"no tests...\"","pretest":"npm run build:cjs","build":"npm run build:cjs && npm run build:es","build:cjs":"rollup -c -o dist/rollup-plugin-git-version.cjs.js -f cjs","build:es":"rollup -c -o dist/rollup-plugin-git-version.es.js -f es","lint":"prettier --write src/*.mjs","prepublish":"npm test && npm run build:es"},"repository":{"type":"git","url":"git+https://gitlab.com/IvanSanchez/rollup-plugin-git-version.git"},"keywords":["rollup","rollup-plugin","semver","version"],"author":{"name":"Iván Sánchez Ortega","email":"ivan@sanchezortega.es"},"license":"Beerware","bugs":{"url":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version/issues"},"homepage":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version","prettier":{"printWidth":85,"tabWidth":4,"useTabs":true,"trailingComma":"es5","arrowParens":"always"},"_id":"rollup-plugin-git-version@0.3.1","dist":{"shasum":"27007a079886c53355d67e52bf7f208f50ff4263","integrity":"sha512-u0jlr6PZvENfYFTjEZShKVXRlQ0maKJmsGNsq/wsAwvihTvXRt9sLBVLed1cmMH+JTCguwdIQWcORkQ7oskPWQ==","tarball":"https://registry.npmjs.org/rollup-plugin-git-version/-/rollup-plugin-git-version-0.3.1.tgz","fileCount":8,"unpackedSize":8404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMhGhCRA9TVsSAnZWagAAP68P/iLwtfONS4A2Ft2TK/KI\nUGt0SnagYw+WDYJRCfALokM1PGlVjGnZRRYHn5XgzOXmOMSSKFvWowUMWx6z\njPpRIbHDLbOa6ENHI1o/aaTftPSYUTXacLDSeK/WqjVRlgn96Tsf/lf24TXq\nP2qSsaD5FzUpXdPA6y3iRCxAa+QTTtJI2wIdqhTKd4gikc8Ooe1gmRVmWsUv\n+kybkpbniHJSzAc1oJ+96HKBCGz7k/Hhi1wxS7e3PczFQZv6MiZ3CGMOfkpQ\no5NlTj/8BZ+YHtfGuO9ebtPA/6RDS8bdeY/A30J02raJAnu5P9beME1Y314N\nLpjQUhUYDLL/6uoHTmpiRjNVMyw12ZQk674tjGUh9Zd0R4vp4guhCygUu8f7\ntjh32wvi8mM0lDOAZYVoY7R023a5OgTfB1Nqx1j0ciM1S+gyJYdun4KcE1yI\nwjckBW8XZ/4dMDv5UYodyrvPZDQJfUSSRQpaoKPjyUyRHpgX+Nm9aJfljIGd\nnXTeQyn7QYwPXj/swora+Ak+7stQSAaOfNrZazI6OIB6XPv9OI3+3KOOTdQy\nrjsF6AtVwgRoIHcXWm8RMfkD1IiJ2VH2s/1Djn3I+rwkKOaPGv/3cDCR9Zhl\nnHCMkkFt29L2iSD2HMDPzfESIMRPTG0V6fhOOlo1ZYBzSnEx2iowXow/NvFR\nXPQ4\r\n=g7e+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOWGpGnQwHKViu88VjX8PZgbFufJdPQnrcfp7TjH31HgIhAMVMBmmaH+JiA/1ITcVuJm2ERtGtaswTrWFJQzkp2n6L"}]},"maintainers":[{"name":"ivansanchez","email":"ivan@sanchezortega.es"}],"_npmUser":{"name":"ivansanchez","email":"ivan@sanchezortega.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-git-version_0.3.1_1580339616864_0.40908176940005436"},"_hasShrinkwrap":false}},"homepage":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version","keywords":["rollup","rollup-plugin","semver","version"],"repository":{"type":"git","url":"git+https://gitlab.com/IvanSanchez/rollup-plugin-git-version.git"},"author":{"name":"Iván Sánchez Ortega","email":"ivan@sanchezortega.es"},"bugs":{"url":"https://gitlab.com/IvanSanchez/rollup-plugin-git-version/issues"},"license":"Beerware","readmeFilename":"README.md"}