rollup-plugin-build-git-version
v0.0.7
Published
A rollup plugin, add git info version.json to dist
Downloads
27
Readme
rollup-plugin-build-git-version
A rollup plugin, add git info version.json to dist.
Usage
Install
npm install --save-dev rollup-plugin-build-git-version
Config
const { buildGitVersion } = require("rollup-plugin-build-git-version");
export default {
plugins: ([
buildGitVersion(),
])
}
Result
{
"build": {
"time": ""
},
"git": {
"branch": "",
"commit": {
"id": "",
"time": "",
"message": "",
"author": {
"name": "",
"email": ""
}
}
}
}