2.0.0 • Published 2 years ago

gridsome-plugin-git-history v2.0.0

Weekly downloads
-
License
MPL-2.0
Repository
gitlab
Last release
2 years ago

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.

2.0.0

2 years ago

1.0.0

3 years ago