forked from galasa-dev/galasa.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
114 lines (109 loc) · 2.96 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
const path = require(`path`)
const consts = {
githubRepoName: "galasa.dev",
githubOrgName: "galasa-dev",
twitterUrl: "https://twitter.com/galasa_dev",
slackUrl: "https://join.slack.com/t/galasa/shared_invite/zt-ele2ic8x-VepEO1o13t4Jtb3ZuM4RUA",
}
consts.githubOrgUrl = `https://github.com/${consts.githubOrgName}`
consts.githubRepoUrl = `${consts.githubOrgUrl}/${consts.githubRepoName}`
consts.githubRepoSlug = `${consts.githubOrgName}/${consts.githubRepoName}`
const buildRepoSlug = process.env.TRAVIS_PULL_REQUEST_SLUG || process.env.TRAVIS_REPO_SLUG || consts.githubRepoSlug
consts.buildRepoUrl = `https://github.com/${buildRepoSlug}`
consts.buildBranch = process.env.TRAVIS_PULL_REQUEST_BRANCH || process.env.TRAVIS_BRANCH || "master"
const eslintOptions = process.env.CI === `true` ? {
failOnError: true,
failOnWarning: true,
} : {};
module.exports = {
siteMetadata: {
title: `galasa`,
description: `Galasa is an open source deep integration test framework for teams looking to give more power to their testers.`,
siteUrl: `https://galasa.dev`,
consts,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-pages`,
path: path.join(__dirname, `src`, `markdown-pages`),
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, `src`, `images`),
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: path.join(__dirname, `src`, `data`),
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1080,
},
},
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
],
},
},
{
resolve: 'gatsby-plugin-eslint',
options: {
stages: ['develop', 'build-javascript'],
options: eslintOptions,
}
},
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/layout`),
},
},
`gatsby-plugin-sass`,
{
resolve: `@danbruegge/gatsby-plugin-stylelint`,
options: {
files: ["**/*.{css,s(a|c)ss}"],
},
},
`gatsby-plugin-catch-links`,
`gatsby-transformer-yaml`,
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /\.inline\.svg$/
}
}
},
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Galasa`,
short_name: `Galasa`,
start_url: `/`,
background_color: `#EFEFEF`,
theme_color: `#212121`,
display: `browser`,
icon: `src/images/identifier.inline.svg`
},
},
],
}