rollup-plugin-add-git-msg
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/rollup-plugin-add-git-msg package

1.1.0 • Public • Published

Rollup plugin add git msg

Will add a comment to the start of the transpiled code.

A standard Comment Header contains:

  • Current repo name from package.json and last git commit / git tag from git command.
  • The copyright of the repo.
  • Date of compiled time.

Example header:

/*!
 * ${rollup-plugin-add-git-msg} v1.0-${126f2767e370ed3593ad8d7b9e3b924d54515b24}
 *
 * Copyright 2017 by oplinjie
 *
 * Date: 2017-05-15
*/

Installation

$ npm install --save-dev rollup-plugin-add-git-msg

Uasge

Add plugin to your rollup configuration:

import addGitMsg from 'rollup-plugin-add-git-msg';

module.exports = {
  plugins: [
    addGitMsg({ 'copyright': 'oplinjie' })
  ]
}

Plugin Options

  • showDate Default value: true
  • showTag Default value: true
  • showCommitID Default value: true
  • copyright Default value: null

License

MIT License (MIT)

Package Sidebar

Install

npm i rollup-plugin-add-git-msg

Weekly Downloads

17

Version

1.1.0

License

ISC

Unpacked Size

8.18 kB

Total Files

4

Last publish

Collaborators

  • oplinjie