-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgatsby-config.js
137 lines (134 loc) · 3.67 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
const path = require('path');
const SITE_NAME = 'BADオープンデータ供養寺';
const SITE_URL = 'https://bad-data.rip';
const customQueries = {
xs: '(max-width: 320px)',
sm: '(max-width: 600px)',
md: '(max-width: 1024px)',
l: '(max-width: 1536px)',
};
module.exports = {
siteMetadata: {
title: SITE_NAME,
siteName: SITE_NAME,
siteUrl: SITE_URL,
description: `「${SITE_NAME}」は世の中に災厄をもたらすBADなデータが二度とこの世を彷徨わないように「供養(データクレンジング)」するために建立されました。`,
keywords:
'オープンデータ, データ活用, データクレンジング, データエンジニアリング, データマネジメント, シビックテック, Code for Japan',
type: 'website',
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
icon: 'src/contents/images/favicon.png',
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-contents`,
path: path.join(__dirname, 'src/contents/markdown'),
},
},
{
resolve: 'gatsby-plugin-eslint',
options: {
test: /\.js$|\.jsx$|\.ts$|\.tsx$/,
exclude: /(node_modules|.cache|public)/,
stages: ['develop'],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `csv-contents`,
path: path.join(__dirname, 'src/contents/csv'),
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, 'src/contents/images'),
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-copy-linked-files`,
options: {
destinationDir: `static`,
ignoreFileExtensions: [
`png`,
`jpg`,
`jpeg`,
`bmp`,
`tiff`,
],
},
},
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1080,
},
},
],
},
},
`gatsby-transformer-csv`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-typescript`,
{
resolve: 'gatsby-plugin-graphql-codegen',
options: {
fileName: `types/graphql-types.d.ts`,
},
},
`gatsby-plugin-styled-components`,
{
resolve: 'gatsby-plugin-web-font-loader',
options: {
custom: {
families: ['PixelMplus10'],
urls: ['/fonts/fonts.css'],
},
},
},
`gatsby-plugin-image`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-gtag`,
options: {
trackingId: 'G-QBEEGLVETR',
},
},
{
resolve: `gatsby-plugin-breakpoints`,
options: {
queries: customQueries,
},
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: `keyXEJZJavw9RKqwp`, // may instead specify via env, see below
concurrency: 5, // default, see using markdown and attachments for more information
tables: [
{
baseId: `appFtv1tgnxPshP5P`,
tableName: `cleansing-cases`,
tableView: 'published',
separateNodeType: false, // boolean, default is false, see the documentation on naming conflicts for more information
separateMapType: false, // boolean, default is false, see the documentation on using markdown and attachments for more information
},
],
},
},
`gatsby-plugin-sass`,
],
};