项目作者: noxify

项目描述 :
Gridsome source to fetch data from a remote git repository
高级语言: JavaScript
项目地址: git://github.com/noxify/gridsome-source-git.git
创建时间: 2019-09-07T16:23:01Z
项目社区:https://github.com/noxify/gridsome-source-git

开源协议:MIT License

下载


gridsome-source-git

Source plugin for fetching data from a GIT repository.
This source is based on the @gridsome/source-filesystem and includes
all functionality which is available in the @gridsome/source-filesystem.

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

Install

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

How to use

  1. module.exports = {
  2. plugins: [
  3. {
  4. use: '@noxify/gridsome-source-git',
  5. options: {
  6. remote: 'https://github.com/noxify/test.git',
  7. target: 'git-source/noxify-test/',
  8. typeName: 'GitPost',
  9. route: '/gitpost/:id'
  10. }
  11. }
  12. ]
  13. }

Documentation

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