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

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

/rollup-plugin-build-git-version/

    Package Sidebar

    Install

    npm i rollup-plugin-build-git-version

    Weekly Downloads

    41

    Version

    0.0.7

    License

    ISC

    Unpacked Size

    15.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • peritot