Gridsome source to fetch data from a remote git repository.
npm install --s @noxify/gridsome-source-git
//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'
}
}
]
}
You can find the complete documentation here: https://webstone.info/documentation/gridsome-source-git
This is a port from Gatsby: https://github.com/stevetweeddale/gatsby-source-git But extended to enable the clone of private git repositories.