{"_id":"@jinixx/vite-plugin-git-revision","_rev":"9-53964e7cda1b0b66ee4ff6790dff3d13","time":{"created":"2023-08-17T06:18:54.383Z","0.1.9":"2023-08-16T10:47:26.824Z","modified":"2023-12-06T07:27:06.851Z","0.1.10":"2023-08-17T06:18:54.644Z","0.1.11":"2023-08-17T06:27:57.590Z","0.1.12":"2023-08-17T07:13:42.995Z","0.1.13":"2023-09-21T08:16:58.542Z","0.1.14":"2023-09-21T08:24:08.618Z","0.1.15":"2023-12-06T07:27:06.685Z"},"name":"@jinixx/vite-plugin-git-revision","dist-tags":{"latest":"0.1.15"},"versions":{"0.1.11":{"name":"@jinixx/vite-plugin-git-revision","version":"0.1.11","description":"Vite plugin that generates VERSION and COMMITHASH files during build based on a local git repository.","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"npm run build -- --watch","example:dev":"cp README.md example/README.md && npm -C example run dev","example:build":"cp README.md example/README.md && npm -C example run build","build":"tsup src/index.ts --dts --format cjs,esm","prepublishOnly":"npm run build","release":"git-ensure --no-behind -b main --clean && bumpp --commit --tag --push"},"keywords":["vite","plugin","git","version","tag","commithash","commit","hash"],"author":{"name":"Jin","email":"jin@wenj.in"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jinixx/vite-plugin-git-revision.git"},"bugs":{"url":"https://github.com/jinixx/vite-plugin-git-revision/issues"},"homepage":"https://github.com/jinixx/vite-plugin-git-revision#readme","gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["prettier --write"],"*.ts":["prettier --parser=typescript --write"]},"peerDependencies":{"vite":">=2.0.0"},"devDependencies":{"@types/node":"^14.14.41","bumpp":"^9.1.1","git-ensure":"^0.1.0","tsup":"^7.2.0","typescript":"^4.2.4","vite":"^2.1.5"},"gitHead":"5f9bd15da98aff7f992269fcc863584d09da72d1","_id":"@jinixx/vite-plugin-git-revision@0.1.11","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+0uldVVLFOSOMNStdUNDPvboe4PdVjVF+985NqKbs0MyUZwDCHXqB6wgzKEWcs4A8MTNWdDQHWSQc115O0vZdA==","shasum":"4b517a7a341a0448ac3e93ac69eec75f5805d905","tarball":"https://registry.npmjs.org/@jinixx/vite-plugin-git-revision/-/vite-plugin-git-revision-0.1.11.tgz","fileCount":6,"unpackedSize":9111,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD263p8IGjUS1VN886PWwyYiv0Jl/0ID74/5IUN80E5UgIgJ9nFZhbGzcAzU9dlyAhVsn2pttIiDXtVuoYaYXMaCNM="}]},"_npmUser":{"name":"jinixx","email":"jin@wenj.in"},"directories":{},"maintainers":[{"name":"jinixx","email":"jin@wenj.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-git-revision_0.1.11_1692253677467_0.6760371728730963"},"_hasShrinkwrap":false},"0.1.12":{"name":"@jinixx/vite-plugin-git-revision","version":"0.1.12","description":"Vite plugin that generates VERSION and COMMITHASH files during build based on a local git repository.","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"npm run build -- --watch","example:dev":"cp README.md example/README.md && npm -C example run dev","example:build":"cp README.md example/README.md && npm -C example run build","build":"tsup src/index.ts --dts --format cjs,esm","prepublishOnly":"npm run build","release":"git-ensure --no-behind -b main --clean && bumpp --commit --tag --push"},"keywords":["vite","plugin","git","version","tag","commithash","commit","hash"],"author":{"name":"Jin","email":"jin@wenj.in"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jinixx/vite-plugin-git-revision.git"},"bugs":{"url":"https://github.com/jinixx/vite-plugin-git-revision/issues"},"homepage":"https://github.com/jinixx/vite-plugin-git-revision#readme","gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["prettier --write"],"*.ts":["prettier --parser=typescript --write"]},"peerDependencies":{"vite":">=2.0.0"},"devDependencies":{"@types/node":"^14.14.41","bumpp":"^9.1.1","git-ensure":"^0.1.0","tsup":"^7.2.0","typescript":"^4.2.4","vite":"^2.1.5"},"gitHead":"61043e3db64e175b08759bef4a5274657ff9c404","_id":"@jinixx/vite-plugin-git-revision@0.1.12","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jKcx/K0lViEbAmYafwT8THXyVZyXNDOYd9sS7z4nYlc2x+CXuT2PDXba6ecH6rv+S9hj9tyME9MBRMxJRG2+Xg==","shasum":"e524947ae6b593c77f679e20303fc3dad260dc20","tarball":"https://registry.npmjs.org/@jinixx/vite-plugin-git-revision/-/vite-plugin-git-revision-0.1.12.tgz","fileCount":6,"unpackedSize":9342,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSb6Wfi1T3A3EwwGELLseB+CwHiLywvMT73NEHAiJ44AIgGS5SHesRR9RxeBgmaVS2ORy3yGO966+AX6uvsSVjBnk="}]},"_npmUser":{"name":"jinixx","email":"jin@wenj.in"},"directories":{},"maintainers":[{"name":"jinixx","email":"jin@wenj.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-git-revision_0.1.12_1692256422861_0.8699566818819486"},"_hasShrinkwrap":false},"0.1.13":{"name":"@jinixx/vite-plugin-git-revision","version":"0.1.13","description":"Vite plugin that generates VERSION and COMMITHASH files during build based on a local git repository.","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"npm run build -- --watch","example:dev":"cp README.md example/README.md && npm -C example run dev","example:build":"cp README.md example/README.md && npm -C example run build","build":"tsup src/index.ts --dts --format cjs,esm","prepublishOnly":"npm run build","release":"git-ensure --no-behind -b main --clean && bumpp --commit --tag --push"},"keywords":["vite","plugin","git","version","tag","commithash","commit","hash"],"author":{"name":"Jin","email":"jin@wenj.in"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jinixx/vite-plugin-git-revision.git"},"bugs":{"url":"https://github.com/jinixx/vite-plugin-git-revision/issues"},"homepage":"https://github.com/jinixx/vite-plugin-git-revision#readme","gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["prettier --write"],"*.ts":["prettier --parser=typescript --write"]},"peerDependencies":{"vite":">=2.0.0"},"devDependencies":{"@types/node":"^14.14.41","bumpp":"^9.1.1","git-ensure":"^0.1.0","tsup":"^7.2.0","typescript":"^4.2.4","vite":"^2.1.5"},"gitHead":"b85a540310f151a05a901c975fcd9f26e1943fbb","_id":"@jinixx/vite-plugin-git-revision@0.1.13","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Shj0etYczzo1ABYbfxCGgVxCwvPofGkFYQWqd5oqgQsWJjVZNiDCNyyZwH0iqonBx1dXOthjScjluhYw3aM1RQ==","shasum":"c2b014f927c5b9d8a2404aed6f1b366ac868ce8e","tarball":"https://registry.npmjs.org/@jinixx/vite-plugin-git-revision/-/vite-plugin-git-revision-0.1.13.tgz","fileCount":6,"unpackedSize":10395,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvm5R7vLmebKwrUd9K7Uj8dBpul1vR4PXXNE8O4Dkp+AiAvPcAd4O6i1sA3ev3QHRRNGF9+54nSMtL0pSk9mQmkXg=="}]},"_npmUser":{"name":"jinixx","email":"jin@wenj.in"},"directories":{},"maintainers":[{"name":"jinixx","email":"jin@wenj.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-git-revision_0.1.13_1695284218385_0.07882769605326079"},"_hasShrinkwrap":false},"0.1.14":{"name":"@jinixx/vite-plugin-git-revision","version":"0.1.14","description":"Vite plugin that generates VERSION and COMMITHASH files during build based on a local git repository.","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"npm run build -- --watch","example:dev":"cp README.md example/README.md && npm -C example run dev","example:build":"cp README.md example/README.md && npm -C example run build","build":"tsup src/index.ts --dts --format cjs,esm","prepublishOnly":"npm run build","release":"git-ensure --no-behind -b main --clean && bumpp --commit --tag --push"},"keywords":["vite","plugin","git","version","tag","commithash","commit","hash"],"author":{"name":"Jin","email":"jin@wenj.in"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jinixx/vite-plugin-git-revision.git"},"bugs":{"url":"https://github.com/jinixx/vite-plugin-git-revision/issues"},"homepage":"https://github.com/jinixx/vite-plugin-git-revision#readme","gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["prettier --write"],"*.ts":["prettier --parser=typescript --write"]},"peerDependencies":{"vite":">=2.0.0"},"devDependencies":{"@types/node":"^14.14.41","bumpp":"^9.1.1","git-ensure":"^0.1.0","tsup":"^7.2.0","typescript":"^4.2.4","vite":"^2.1.5"},"gitHead":"f812cb71772496193e2286377b51bca5eb8eaeb5","_id":"@jinixx/vite-plugin-git-revision@0.1.14","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fPMNUDiTQwNTSRr5lNR07X5YZWe0rcUp4MwZnqSPhBhmq1VLzQOm47pdKF7e6SN9fHgXhv7bsJcLkUUm+kMUow==","shasum":"9bbbdb91263943af81a3e73aedaacb5715474613","tarball":"https://registry.npmjs.org/@jinixx/vite-plugin-git-revision/-/vite-plugin-git-revision-0.1.14.tgz","fileCount":6,"unpackedSize":10396,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX+1oMk3rTpCZ3Uf3VBqFEv4qMpTAIrMHOJrKvBkoviwIgItUUCjE3OlZPSZ/TerRWyXIzJ/y4/+5ehNp0aabhElk="}]},"_npmUser":{"name":"jinixx","email":"jin@wenj.in"},"directories":{},"maintainers":[{"name":"jinixx","email":"jin@wenj.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-git-revision_0.1.14_1695284648385_0.7007524296513123"},"_hasShrinkwrap":false},"0.1.15":{"name":"@jinixx/vite-plugin-git-revision","version":"0.1.15","description":"Vite plugin that generates VERSION and COMMITHASH files during build based on a local git repository.","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"npm run build -- --watch","example:dev":"cp README.md example/README.md && npm -C example run dev","example:build":"cp README.md example/README.md && npm -C example run build","build":"tsup src/index.ts --dts --format cjs,esm","prepublishOnly":"npm run build","release":"git-ensure --no-behind -b main --clean && bumpp --commit --tag --push"},"keywords":["vite","plugin","git","version","tag","commithash","commit","hash"],"author":{"name":"Jin","email":"jin@wenj.in"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jinixx/vite-plugin-git-revision.git"},"bugs":{"url":"https://github.com/jinixx/vite-plugin-git-revision/issues"},"homepage":"https://github.com/jinixx/vite-plugin-git-revision#readme","gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["prettier --write"],"*.ts":["prettier --parser=typescript --write"]},"peerDependencies":{"vite":">=2.0.0"},"devDependencies":{"@types/node":"^14.14.41","bumpp":"^9.1.1","git-ensure":"^0.1.0","tsup":"^7.2.0","typescript":"^4.2.4","vite":"^2.1.5"},"gitHead":"68f2cea69716c7ee52e4b6c5985466ec5bcf932b","_id":"@jinixx/vite-plugin-git-revision@0.1.15","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fr5a4z9spdWCBulHhr746jToKUisi48uANT+PGje3CbKhrYTpz3lGpt0jupyaTOU7BswJ6b/WWUTYGZrAH30wg==","shasum":"3992e1bd0bb67288107f19a5b398a6100f20bcf1","tarball":"https://registry.npmjs.org/@jinixx/vite-plugin-git-revision/-/vite-plugin-git-revision-0.1.15.tgz","fileCount":6,"unpackedSize":10396,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6oySzp124DBOuxsFYwChYZg+sM4m0NJB9z0mazG0icwIgRkHjmqJTYrflr6SYaNgF3CLB5tvXvpjrElyfcZskYzk="}]},"_npmUser":{"name":"jinixx","email":"jin@wenj.in"},"directories":{},"maintainers":[{"name":"jinixx","email":"jin@wenj.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-git-revision_0.1.15_1701847626472_0.45825911679366027"},"_hasShrinkwrap":false}},"maintainers":[{"name":"jinixx","email":"jin@wenj.in"}],"description":"Vite plugin that generates VERSION and COMMITHASH files during build based on a local git repository.","homepage":"https://github.com/jinixx/vite-plugin-git-revision#readme","keywords":["vite","plugin","git","version","tag","commithash","commit","hash"],"repository":{"type":"git","url":"git+https://github.com/jinixx/vite-plugin-git-revision.git"},"author":{"name":"Jin","email":"jin@wenj.in"},"bugs":{"url":"https://github.com/jinixx/vite-plugin-git-revision/issues"},"license":"MIT","readme":"# @jinixx/vite-plugin-git-revision\n\n[![npm version](https://badgen.net/npm/v/@jinixx/vite-plugin-git-revision)](https://www.npmjs.com/package/@jinixx/vite-plugin-git-revision)\n[![monthly downloads](https://badgen.net/npm/dm/@jinixx/vite-plugin-git-revision)](https://www.npmjs.com/package/@jinixx/vite-plugin-git-revision)\n\n> Git version info for applications using [Vite](https://github.com/vitejs/vite)\n>\n> Forked from https://github.com/qduld/vite-plugin-git-revision to fix a few issues.\n\n## Getting Started\n\nInstall:\n\n```bash\nnpm install -D @jinixx/vite-plugin-git-revision\n```\n\nAdd to your `vite.config.js`:\n\n```js\nimport GitRevision from 'vite-plugin-git-revision';\n\nexport default {\n  plugins: [\n    GitRevision()\n  ],\n};\n```\n\n## Configuration\n\nTo use custom configuration, pass your options to Pages when instantiating the plugin:\n\n```js\n// vite.config.js\nimport GitRevision from 'vite-plugin-git-revision';\n\nexport default {\n  plugins: [\n    GitRevision({\n      lightweightTags: false,\n      branch: false,\n      // default, remove prop if not needed, do not set to empty\n      commithashCommand: 'rev-parse HEAD',\n      // default versionCommand was `describe --always`\n      versionCommand: 'describe --tags --long --dirty --always',\n      // default, remove prop if not needed, do not set to empty\n      branchCommand: 'rev-parse --abbrev-ref HEAD',\n      // change the default git command used to read the DATE and TIME of the commit\n      datetimeCommand: 'log -1 --date=format:\"%Y-%m-%d %H:%M\" --pretty=format:'%ad'',\n    }),\n  ],\n};\n```\n\n### lightweightTags\n\n- **Type:** `boolean`\n- **Default:** `false`\n\nlightweight tags support.\n\n### branch\n\n- **Type:** `boolean`\n- **Default:** `false`\n\nbranch tags support.\n\n### versionCommand\n\n- **Type:** `string`\n- **Default:** `describe --always`\n\nchange the default git command used to read the value of VERSION.\n\n### commithashCommand\n\n- **Type:** `string`\n- **Default:** `rev-parse HEAD`\n\nchange the default git command used to read the value of COMMITHASH.\n\n### branchCommand\n\n- **Type:** `string`\n- **Default:** `rev-parse --abbrev-ref HEAD`\n\nchange the default git command used to read the value of BRANCH.\n\n### datetimeCommand\n\n- **Type:** `string`\n- **Default:** `log -1 --date=format:\"%Y-%m-%d %H:%M\" --pretty=format:'%ad'`\n\nchange the default git command used to read the date and time of the commit.\n\n## Accessing the values\n\n```js\n// Anywhere in your application code\nconsole.log(GITVERSION);\nconsole.log(GITCOMMITDATETIME);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}