Skip to content

jammeryhq/gridsome-source-git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast-track your JAMstack development & learning


About this plugin

Gridsome source to fetch data from a remote git repository.

Installation

npm install --s @noxify/gridsome-source-git

How to use

//gridsome.config.js

module.exports = {
  plugins: [
    {
      use: '@noxify/gridsome-source-git',
      options: {
        remote: 'https://github.com/noxify/test.git',
        target: 'git-source/noxify-test/',
        typeName: 'GitPost',
        route: '/gitpost/:id'
      }
    }
  ]
}

Documentation

You can find the complete documentation here: https://webstone.info/documentation/gridsome-source-git

Credits

This is a port from Gatsby: https://github.com/stevetweeddale/gatsby-source-git But extended to enable the clone of private git repositories.