-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
135 lines (124 loc) · 3.35 KB
/
gatsby-config.ts
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
import path from 'path'
import plan from './gatsby-plan'
const siteMetadata = {
title: `apop.ldlework.com`,
description: `Co-edification in tinkering, dialectic and reference`,
author: `@dlacewell`,
}
const metadata_plugins = [
'gatsby-plugin-react-helmet',
]
const graphql_plugins = [
{
resolve: `gatsby-plugin-graphql-codegen`,
options: {
fileName: `./gatsby-graphql.ts`,
documentPaths: [
'./src/**/*.{ts,tsx}',
],
},
},
]
const image_plugins = [
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: "gatsby-plugin-react-svg",
options: {rule: {include: /content/ }},
},
]
const style_plugins = [
`gatsby-plugin-fontawesome-css`,
'gatsby-plugin-dts-css-modules',
`@chakra-ui/gatsby-plugin`,
{
resolve: 'gatsby-plugin-sass',
options: {additionalData: `@import "~/src/styles/styles";`},
},
]
const typescript_plugins = [
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
"@ui": path.resolve(__dirname, 'src/components'),
"@typedoc": path.resolve(__dirname, 'src/typedoc'),
"@layouts": path.resolve(__dirname, 'src/layouts'),
"@SiteTemplate": path.resolve(__dirname, 'src/SiteTemplate'),
"@templates": path.resolve(__dirname, 'src/templates'),
},
extensions: ['ts', 'tsx', 'scss'],
},
},
]
const filesystem_plugins = [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/content/pages`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'authors',
path: `${__dirname}/content/authors`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'articles',
path: `${__dirname}/content/articles`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'projects',
path: `${__dirname}/content/projects`,
},
},
]
const mdx_plugins = [
{
resolve: `gatsby-plugin-mdx`,
options: {
defaultLayouts: {
pages: require.resolve("./src/layouts/MainLayout/index.tsx"),
default: require.resolve("./src/layouts/MainLayout/index.tsx"),
},
gatsbyRemarkPlugins: [
{resolve: `gatsby-remark-copy-linked-files`},
{
resolve: `gatsby-remark-autolink-headers`,
options: {isIconAfterHeader: false},
},
{resolve: 'gatsby-remark-local-videos'},
{
resolve: `gatsby-remark-images`,
options: {maxWidth: 1440},
},
],
},
},
]
module.exports = {
siteMetadata,
flags: {PARALLEL_SOURCING: false},
plugins: [
...typescript_plugins,
...metadata_plugins,
...graphql_plugins,
...image_plugins,
...style_plugins,
...filesystem_plugins,
...mdx_plugins,
{
resolve: "@flapper/gatsby-source-flapper",
options: { plan },
},
],
}