gridsome-plugin-git-history

2.0.0 • Public • Published

gridsome-plugin-git-history

A Gridsome plugin to add data about Git changes to data collections.

Install

npm i --save gridsome-plugin-git-history

Setup

    {
      use: "gridsome-plugin-git-history",
      options: {
        typeName: "CollectionName",
        targetPath: "gitData",
        gitlog: {
          fields: ["subject", "authorName", "authorDate"]
        }
      }
    },

The typeName property is the name of the collection you want to get the data. The targetPath property is the name of the property where you want to store your git history data.

This package uses gitlog to parse git data. You'll need to make sure that you have git installed on every machine that needs to build your website. If you need more options for gitlog you can find them here.

Package Sidebar

Install

npm i gridsome-plugin-git-history

Weekly Downloads

2

Version

2.0.0

License

MPL-2.0

Unpacked Size

3.25 kB

Total Files

3

Last publish

Collaborators

  • capsia