App-Open-Source-per-iPhone-.../gatsby/gatsby-config.js

65 lines
1.8 KiB
JavaScript
Raw Normal View History

/* eslint-disable @typescript-eslint/no-var-requires */
const join = require('path').join
module.exports = {
pathPrefix: '/open-source-ios/',
siteMetadata: {
2020-09-11 16:16:44 +02:00
title: `Open-Source iOS Apps`,
description: `A collaborative list of open-source iOS, watchOS and tvOS apps.`,
},
plugins: [
`gatsby-plugin-typescript`,
`gatsby-plugin-react-helmet`,
{
resolve: 'gatsby-plugin-material-ui',
// If you want to use styled components you should change the injection order.
options: {
// stylesProvider: {
// injectFirst: true,
// },
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `open-source-ios-apps`,
short_name: `os-ios-apps`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#3E3F3A`,
display: `minimal-ui`,
},
},
2020-09-10 20:27:22 +02:00
{
resolve: `gatsby-transformer-json`,
options: {
// NOTE: Without this setting, the JSON types are named based on the
// folder name. In the case of `content.json`, that depends on what the
// directory name of the repo is. In netlify's case, that's `repo`.
typeName: `jsonFile`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `apps`,
path: join(__dirname, `../`),
// This aims to ignore everything EXCEPT the `contents.json` file at the
// root of the repo
ignore: [
`**/.*`,
`**/.*/**`,
`**/gatsby/**`,
`**/*.md`,
`**/*.toml`,
`**/LICENSE`,
`**/Dangerfile`,
],
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}