rollup-plugin-build-git-version
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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": ""
            }
        }
    }
}

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-build-git-version

Weekly Downloads

7

Version

0.0.5

License

ISC

Unpacked Size

12.7 kB

Total Files

9

Last publish

Collaborators

  • peritot