UNPKG

eleventy-plugin-github-repos

Version:

An Eleventy plugin that creates a collection containing metadata from an account's GitHub repositories

22 lines (17 loc) 538 B
const githubRepos = require('./eleventy-plugin-github-repos.js'); module.exports = eleventyConfig => { const apiKey = process.env.GITHUB_API_KEY; const debugMode = false; const quitOnError = true; eleventyConfig.addPlugin(githubRepos, { userAccount: 'johnwargo', apiKey, debugMode, quitOnError}); eleventyConfig.addPassthroughCopy('src/assets/'); return { dir: { input: 'src', output: '_site', includes: '_includes', layouts: '_layouts', data: '_data' } } };