-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
67 lines (66 loc) · 1.92 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
const path = require('path')
// Get paths of Gatsby's required rules, which as of writing is located at:
// https://github.com/gatsbyjs/gatsby/tree/fbfe3f63dec23d279a27b54b4057dd611dce74bb/packages/
// gatsby/src/utils/eslint-rules
const gatsbyRequiredRules = path.join(
process.cwd(),
'node_modules',
'gatsby',
'dist',
'utils',
'eslint-rules'
)
module.exports = {
siteMetadata: {
siteUrl: 'https://developersfunny.github.io',
title: 'GatsbyJS TypeScript Testing',
description:
'A project with React GatsbyJS and TypeScript with Testing using Atomic Design',
author: 'Developers Funny',
},
pathPrefix: 'gatsby-typescript-testing',
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-image',
{
resolve: 'gatsby-source-filesystem',
options: {
name: `src`,
path: `${__dirname}/src/`,
},
},
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Portafolio',
short_name: 'Portafolio',
start_url: '/',
background_color: '#f7f0eb',
theme_color: '#2563EB',
display: 'minimal-ui',
icon: 'src/images/icon.png',
},
},
'gatsby-plugin-postcss',
'gatsby-plugin-typescript',
'gatsby-plugin-emotion',
{
resolve: 'gatsby-plugin-eslint',
options: {
// Gatsby required rules directory
rulePaths: [gatsbyRequiredRules],
// Default settings that may be ommitted or customized
stages: ['develop'],
extensions: ['js', 'jsx', 'ts', 'tsx'],
exclude: ['node_modules', 'bower_components', '.cache', 'public'],
// Any additional eslint-webpack-plugin options below
// ...
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// 'gatsby-plugin-offline',
],
}