2018-05-04 01:58:43 +02:00
|
|
|
const path = require('path')
|
2018-05-07 15:39:42 +02:00
|
|
|
const fs = require('fs')
|
2018-05-05 00:17:26 +02:00
|
|
|
const yaml = require('js-yaml')
|
2018-05-07 15:39:42 +02:00
|
|
|
const meta = yaml.load(fs.readFileSync('./data/meta.yml', 'utf8'))
|
2018-09-19 20:46:32 +02:00
|
|
|
const { title, description, url, matomoSite, matomoUrl } = meta
|
2018-04-08 00:19:54 +02:00
|
|
|
|
2018-04-06 17:24:35 +02:00
|
|
|
module.exports = {
|
|
|
|
siteMetadata: {
|
2018-05-22 22:51:41 +02:00
|
|
|
siteUrl: `${url}`
|
2018-04-06 17:24:35 +02:00
|
|
|
},
|
|
|
|
plugins: [
|
2018-07-15 00:13:35 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-transformer-yaml',
|
|
|
|
options: {
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
name: 'data',
|
|
|
|
path: path.join(__dirname, 'data')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2018-05-14 20:10:59 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-transformer-json',
|
|
|
|
options: {
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
name: 'pkg',
|
2018-05-22 22:51:41 +02:00
|
|
|
path: path.join(__dirname, 'package.json')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2018-05-14 20:10:59 +02:00
|
|
|
},
|
2018-04-07 14:18:06 +02:00
|
|
|
{
|
2018-04-08 22:49:58 +02:00
|
|
|
resolve: 'gatsby-plugin-sass',
|
2018-04-07 14:18:06 +02:00
|
|
|
options: {
|
2018-05-22 22:51:41 +02:00
|
|
|
includePaths: [`${__dirname}/node_modules`, `${__dirname}/src/styles`]
|
|
|
|
}
|
2018-04-07 14:18:06 +02:00
|
|
|
},
|
2018-04-22 23:51:50 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
name: 'images',
|
2018-05-22 22:51:41 +02:00
|
|
|
path: path.join(__dirname, 'src', 'images')
|
|
|
|
}
|
2018-04-22 23:51:50 +02:00
|
|
|
},
|
2018-09-20 19:06:46 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-svgr',
|
|
|
|
options: {
|
|
|
|
icon: true
|
|
|
|
}
|
|
|
|
},
|
2018-05-07 19:31:10 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-matomo',
|
|
|
|
options: {
|
|
|
|
siteId: `${matomoSite}`,
|
|
|
|
siteUrl: `${url}`,
|
|
|
|
matomoUrl: `${matomoUrl}`,
|
2018-05-22 22:51:41 +02:00
|
|
|
localScript: '/piwik.js'
|
|
|
|
}
|
2018-05-07 19:31:10 +02:00
|
|
|
},
|
2018-05-07 01:43:33 +02:00
|
|
|
{
|
2018-09-19 20:46:32 +02:00
|
|
|
resolve: 'gatsby-plugin-favicon',
|
2018-05-07 01:43:33 +02:00
|
|
|
options: {
|
2018-09-19 20:46:32 +02:00
|
|
|
logo: './src/images/favicon.png',
|
|
|
|
|
|
|
|
// WebApp Manifest Configuration
|
|
|
|
appName: title.toLowerCase(),
|
|
|
|
appDescription: description,
|
|
|
|
developerName: null,
|
|
|
|
developerURL: null,
|
|
|
|
dir: 'auto',
|
|
|
|
lang: 'en-US',
|
|
|
|
background: '#e7eef4',
|
2018-07-25 10:29:23 +02:00
|
|
|
theme_color: '#88bec8',
|
2018-08-07 00:28:21 +02:00
|
|
|
display: 'minimal-ui',
|
2018-09-19 20:46:32 +02:00
|
|
|
orientation: 'any',
|
|
|
|
start_url: '/?homescreen=1',
|
|
|
|
short_name: 'mk',
|
|
|
|
version: '1.0',
|
|
|
|
|
|
|
|
icons: {
|
|
|
|
android: true,
|
|
|
|
appleIcon: true,
|
|
|
|
appleStartup: true,
|
|
|
|
coast: false,
|
|
|
|
favicons: true,
|
|
|
|
firefox: true,
|
|
|
|
opengraph: false,
|
|
|
|
twitter: false,
|
|
|
|
yandex: false,
|
|
|
|
windows: false
|
|
|
|
}
|
2018-05-22 22:51:41 +02:00
|
|
|
}
|
2018-07-15 00:13:35 +02:00
|
|
|
},
|
|
|
|
'gatsby-plugin-react-helmet',
|
|
|
|
'gatsby-transformer-sharp',
|
|
|
|
'gatsby-plugin-sharp',
|
2018-08-06 14:51:53 +02:00
|
|
|
'gatsby-plugin-sitemap',
|
|
|
|
'gatsby-plugin-offline'
|
2018-05-22 22:51:41 +02:00
|
|
|
]
|
2018-04-06 17:24:35 +02:00
|
|
|
}
|