Skip to content

Commit 62664c1

Browse files
committed
Update(mdj): restructured npm packages
1 parent 377a6e4 commit 62664c1

12 files changed

+16135
-56195
lines changed

.vscode/launch.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/vscode-profile-2021-03-27-17-04-39.cpuprofile

Lines changed: 0 additions & 1 deletion
This file was deleted.

gatsby-config.js

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,18 @@ module.exports = {
55
siteMetadata: {
66
siteUrl: `https://rehnert.co`,
77
},
8+
flags: {
9+
PRESERVE_WEBPACK_CACHE: true,
10+
DEV_SSR: true,
11+
PRESERVE_FILE_DOWNLOAD_CACHE: true,
12+
},
813
plugins: [
9-
`gatsby-plugin-advanced-sitemap`,
1014
`gatsby-plugin-react-helmet`,
15+
`gatsby-plugin-remove-fingerprints`,
1116
`gatsby-source-data`,
12-
`gatsby-plugin-sharp`,
1317
{
1418
resolve: `gatsby-transformer-remark`,
15-
options: {
16-
plugins: [
17-
{
18-
resolve: `gatsby-remark-images`,
19-
options: {
20-
// It's important to specify the maxWidth (in pixels) of
21-
// the content container as this plugin uses this as the
22-
// base for generating different widths of each image.
23-
maxWidth: 1200,
24-
},
25-
},
26-
],
27-
},
19+
options: {},
2820
},
2921
{
3022
resolve: `gatsby-source-filesystem`,

mdj.code-workspace

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
},
6+
{
7+
"path": "../mdj-local-store"
8+
}
9+
],
10+
"settings": {
11+
"search.useIgnoreFiles": false,
12+
"search.useGlobalIgnoreFiles": true
13+
}
14+
}

netlify.toml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,57 @@
11
[build]
2-
publish = "public"
3-
command = "./stackbit-build.sh"
2+
3+
base = "/"
4+
publish = "/public"
5+
command = "./stackbit-build.sh"
6+
7+
[context.production]
8+
NODE_ENV = "production"
9+
NODE_VERSION = "14.17.x"
10+
NPM_VERSION = "7.20.x"
11+
NETLIFY_USE_YARN = true
12+
YARN_VERSION = "1.22.x"
13+
RUBY_VERSION = "2.7.x"
14+
PHP_VERSION = "7.4.x"
15+
PYTHON_VERSION = "3.8.10"
16+
NETLIFY = true
17+
_system_arch = "x64"
18+
_system_version = "20.04"
19+
INCOMING_HOOK_TITLE = "stackbit-build-hook"
20+
INCOMING_HOOK_URL = "https://api.netlify.com/build_hooks/60323e85550410748717866c"
21+
INCOMING_HOOK_BODY = "curl -X POST -d {} https://api.netlify.com/build_hooks/60323e85550410748717866c"
22+
23+
[[plugins]]
24+
package = "@netlify/plugin-lighthouse"
25+
26+
# optional, fails build when a category is below a threshold
27+
[plugins.inputs.thresholds]
28+
performance = 0.6
29+
accessibility = 0.6
30+
best-practices = 0.6
31+
seo = 0.6
32+
pwa = 0.4
33+
34+
# optional, deploy the lighthouse report to a path under your site
35+
[plugins.inputs]
36+
output_path = "reports/lighthouse/.html"
37+
38+
[[plugins]]
39+
package = "@netlify/plugin-gatsby"
40+
41+
42+
[build.processing]
43+
skip_processing = false
44+
45+
[build.processing.css]
46+
bundle = true
47+
minify = true
48+
49+
[build.processing.js]
50+
bundle = true
51+
minify = true
52+
53+
[build.processing.html]
54+
pretty_urls = true
55+
56+
[build.processing.images]
57+
compress = true

0 commit comments

Comments
 (0)