Skip to content

Instantly share code, notes, and snippets.

@ChristopherBiscardi
Last active August 10, 2019 21:38
Show Gist options
  • Save ChristopherBiscardi/978a1b20365639bee9c89d8e82f4c4dd to your computer and use it in GitHub Desktop.
Save ChristopherBiscardi/978a1b20365639bee9c89d8e82f4c4dd to your computer and use it in GitHub Desktop.
draft deletion stuff
const groupChildNodesByType = ({ nodeStore, nodes }) =>
console.log(nodes) || console.log('\n\n') ||
_(nodes)
.flatMap(node => (node.children || []).map(nodeStore.getNode))
.groupBy(node => (node.internal ? node.internal.type : undefined))
.value()
[ { id: 'd6df747f-71e7-568e-b212-d7b81a0cf0f7',
children: [ undefined ],
parent: '1ea92002-c4bb-5f67-a403-63143efc1e44',
internal:
{ content:
'---\ntitle: Hello World (example)\ndate: 2019-04-15\nstatus: published\n---\n\nHello, world! This is a demo post for `gatsby-theme-blog`.\n\nDelete me, and get writing!\n\n```js:title=gatsby-config.js\nmodule.exports = {\n __experimentalThemes: [\n "gatsby-theme-blog", // highlight-line\n "gatsby-theme-notes",\n ],\n}\n```\n\nThis is another paragraph after the code block.\n\n## This is a secondary heading\n\n```jsx\nimport React from "react"\nimport { ThemeProvider } from "theme-ui"\nimport theme from "./theme"\n\nexport default props => (\n <ThemeProvider theme={theme}>{props.children}</ThemeProvider>\n)\n```\n',
type: 'Mdx',
contentDigest: 'ea70a613101cd98305f79eef181c8024',
owner: 'gatsby-plugin-mdx' },
frontmatter:
{ title: 'Hello World (example)',
date: '2019-04-15T00:00:00.000Z',
status: 'published' },
excerpt: undefined,
exports: {},
rawBody:
'---\ntitle: Hello World (example)\ndate: 2019-04-15\nstatus: published\n---\n\nHello, world! This is a demo post for `gatsby-theme-blog`.\n\nDelete me, and get writing!\n\n```js:title=gatsby-config.js\nmodule.exports = {\n __experimentalThemes: [\n "gatsby-theme-blog", // highlight-line\n "gatsby-theme-notes",\n ],\n}\n```\n\nThis is another paragraph after the code block.\n\n## This is a secondary heading\n\n```jsx\nimport React from "react"\nimport { ThemeProvider } from "theme-ui"\nimport theme from "./theme"\n\nexport default props => (\n <ThemeProvider theme={theme}>{props.children}</ThemeProvider>\n)\n```\n',
fileAbsolutePath:
'/Users/chris/tmp/draft-deletion/content/posts/hello-world.mdx' },
{ id: '1e9ad52c-afb4-53d7-9124-060337a66959',
children: [ undefined ],
parent: '34fa928d-60ad-5424-bcad-5432abf1586d',
internal:
{ content:
`---\ntitle: My Second Post! (example)\ndate: 2019-05-15\nstatus: draft\n---\n\nWow! I love blogging so much already.\n\nDid you know that "despite its name, salted duck eggs can also be made from chicken eggs, though the taste and texture will be somewhat different, and the egg yolk will be less rich."? ([Wikipedia Link](http://en.wikipedia.org/wiki/Salted_duck_egg))\n\nYeah, I didn't either.\n`,
type: 'Mdx',
contentDigest: '594cbdcba9512d3f8bd59134bef0889a',
owner: 'gatsby-plugin-mdx' },
frontmatter:
{ title: 'My Second Post! (example)',
date: '2019-05-15T00:00:00.000Z',
status: 'draft' },
excerpt: undefined,
exports: {},
rawBody:
`---\ntitle: My Second Post! (example)\ndate: 2019-05-15\nstatus: draft\n---\n\nWow! I love blogging so much already.\n\nDid you know that "despite its name, salted duck eggs can also be made from chicken eggs, though the taste and texture will be somewhat different, and the egg yolk will be less rich."? ([Wikipedia Link](http://en.wikipedia.org/wiki/Salted_duck_egg))\n\nYeah, I didn't either.\n`,
fileAbsolutePath:
'/Users/chris/tmp/draft-deletion/content/posts/my-second-post.mdx' } ]
[ { id: '1ea92002-c4bb-5f67-a403-63143efc1e44',
children: [ 'd6df747f-71e7-568e-b212-d7b81a0cf0f7' ],
parent: null,
internal:
{ contentDigest: '01814eeb77aae01a4d441d0cb9590034',
type: 'File',
mediaType: 'text/mdx',
description: 'File "content/posts/hello-world.mdx"',
owner: 'gatsby-source-filesystem' },
sourceInstanceName: 'content/posts',
absolutePath:
'/Users/chris/tmp/draft-deletion/content/posts/hello-world.mdx',
relativePath: 'hello-world.mdx',
extension: 'mdx',
size: 597,
prettySize: '597 B',
modifiedTime: '2019-08-10T21:05:00.998Z',
accessTime: '2019-08-10T21:15:03.071Z',
changeTime: '2019-08-10T21:05:00.998Z',
birthTime: '2019-08-10T09:16:36.503Z',
root: '/',
dir: '/Users/chris/tmp/draft-deletion/content/posts',
base: 'hello-world.mdx',
ext: '.mdx',
name: 'hello-world',
relativeDirectory: '',
dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4096,
ino: 8652922530,
blocks: 8,
atimeMs: 1565471703071.469,
mtimeMs: 1565471100998.009,
ctimeMs: 1565471100998.009,
birthtimeMs: 1565428596503.363,
atime: '2019-08-10T21:15:03.071Z',
mtime: '2019-08-10T21:05:00.998Z',
ctime: '2019-08-10T21:05:00.998Z',
birthtime: '2019-08-10T09:16:36.503Z' },
{ id: '34fa928d-60ad-5424-bcad-5432abf1586d',
children: [ '1e9ad52c-afb4-53d7-9124-060337a66959' ],
parent: null,
internal:
{ contentDigest: '63d50ba22f1af4c664881614e84079b2',
type: 'File',
mediaType: 'text/mdx',
description: 'File "content/posts/my-second-post.mdx"',
owner: 'gatsby-source-filesystem' },
sourceInstanceName: 'content/posts',
absolutePath:
'/Users/chris/tmp/draft-deletion/content/posts/my-second-post.mdx',
relativePath: 'my-second-post.mdx',
extension: 'mdx',
size: 386,
prettySize: '386 B',
modifiedTime: '2019-08-10T09:18:00.823Z',
accessTime: '2019-08-10T21:15:03.072Z',
changeTime: '2019-08-10T09:18:00.823Z',
birthTime: '2019-08-10T09:16:36.504Z',
root: '/',
dir: '/Users/chris/tmp/draft-deletion/content/posts',
base: 'my-second-post.mdx',
ext: '.mdx',
name: 'my-second-post',
relativeDirectory: '',
dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4096,
ino: 8652922531,
blocks: 8,
atimeMs: 1565471703071.666,
mtimeMs: 1565428680822.536,
ctimeMs: 1565428680822.536,
birthtimeMs: 1565428596503.606,
atime: '2019-08-10T21:15:03.072Z',
mtime: '2019-08-10T09:18:00.823Z',
ctime: '2019-08-10T09:18:00.823Z',
birthtime: '2019-08-10T09:16:36.504Z' },
{ id: 'c186d87b-809d-5e18-9fbc-cacfd461d7d7',
children: [ '78ccfaf8-54a7-531f-8854-f8cf76595914' ],
parent: null,
internal:
{ contentDigest: '1ebccd95df493f0b5f9808c6741fbf1f',
type: 'File',
mediaType: 'image/png',
description: 'File "content/assets/avatar.png"',
owner: 'gatsby-source-filesystem' },
sourceInstanceName: 'content/assets',
absolutePath: '/Users/chris/tmp/draft-deletion/content/assets/avatar.png',
relativePath: 'avatar.png',
extension: 'png',
size: 6115,
prettySize: '6.12 kB',
modifiedTime: '2019-08-10T09:16:36.502Z',
accessTime: '2019-08-10T09:16:59.813Z',
changeTime: '2019-08-10T09:16:36.502Z',
birthTime: '2019-08-10T09:16:36.502Z',
root: '/',
dir: '/Users/chris/tmp/draft-deletion/content/assets',
base: 'avatar.png',
ext: '.png',
name: 'avatar',
relativeDirectory: '',
dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4096,
ino: 8652922528,
blocks: 16,
atimeMs: 1565428619813.0618,
mtimeMs: 1565428596502.46,
ctimeMs: 1565428596502.46,
birthtimeMs: 1565428596502.3425,
atime: '2019-08-10T09:16:59.813Z',
mtime: '2019-08-10T09:16:36.502Z',
ctime: '2019-08-10T09:16:36.502Z',
birthtime: '2019-08-10T09:16:36.502Z' } ]
[ { id: '78ccfaf8-54a7-531f-8854-f8cf76595914',
children: [],
parent: 'c186d87b-809d-5e18-9fbc-cacfd461d7d7',
internal:
{ contentDigest: '1ebccd95df493f0b5f9808c6741fbf1f',
type: 'ImageSharp',
owner: 'gatsby-transformer-sharp' } } ]
[ { title: 'Hello World (example)',
tags: [],
slug: '/hello-world',
date: '2019-04-15T00:00:00.000Z',
id: 'fe871559-41f6-5286-9ee7-324bb738cf34',
parent: 'd6df747f-71e7-568e-b212-d7b81a0cf0f7',
children: [],
internal:
{ type: 'BlogPost',
contentDigest: '13b6776262adcad6ccf2db0542de85d4',
content:
'{"title":"Hello World (example)","tags":[],"slug":"/hello-world","date":"2019-04-15T00:00:00.000Z"}',
description: 'Blog Posts',
owner: 'gatsby-theme-blog' } },
{ title: 'My Second Post! (example)',
tags: [],
slug: '/my-second-post',
date: '2019-05-15T00:00:00.000Z',
id: '6a34cd5d-0043-54ee-b457-597c8ac437e5',
parent: '1e9ad52c-afb4-53d7-9124-060337a66959',
children: [],
internal:
{ type: 'BlogPost',
contentDigest: '290790f80d429228e2827228ca594748',
content:
'{"title":"My Second Post! (example)","tags":[],"slug":"/my-second-post","date":"2019-05-15T00:00:00.000Z"}',
description: 'Blog Posts',
owner: 'gatsby-theme-blog' } } ]
[ { path: '/dev-404-page/',
id: 'SitePage /dev-404-page/',
parent: null,
children: [],
internal:
{ type: 'SitePage',
contentDigest: 'f91d29e10ba680b413138cf9ed86e655',
owner: 'internal-data-bridge' } } ]
[ { resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/dev-404-page',
id: 'd48d1c52-fe48-53cb-8f08-aa4b47dde5a5',
name: 'dev-404-page',
version: '1.0.0',
pluginOptions: { plugins: [] },
nodeAPIs: [ 'createPagesStatefully' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/dev-404-page',
packageJson:
{ name: 'dev-404-page',
description:
'Internal plugin to add a 404 page in development with helpful information',
version: '1.0.0',
main: 'index.js',
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [],
devDependencies: [],
peerDependencies: [],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: 'f18c23089c40cd0af4fa546a531867c0',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/load-babel-config',
id: '1fc32581-893a-55e8-8927-bcd667e2b700',
name: 'load-babel-config',
version: '1.0.0',
pluginOptions: { plugins: [] },
nodeAPIs: [ 'onPreBootstrap' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/load-babel-config',
packageJson:
{ name: 'load-babel-config',
description: 'Internal plugin that handles loading Babel configs',
version: '1.0.0',
main: 'index.js',
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [],
devDependencies: [],
peerDependencies: [],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '0020f0855990a9db17d79f69b44cf973',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/internal-data-bridge',
id: 'a5079d69-ba80-53dc-82f9-0f440bd5448c',
name: 'internal-data-bridge',
version: '1.0.0',
pluginOptions: { plugins: [] },
nodeAPIs: [ 'sourceNodes', 'onCreatePage' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/internal-data-bridge',
packageJson:
{ name: 'internal-data-bridge',
description:
'An internal Gatsby plugin which creates data nodes from internal data',
version: '1.0.0',
main: 'index.js',
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [],
devDependencies: [],
peerDependencies: [],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '8be48c34614a0b0c2c15dc4537177b16',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/prod-404',
id: 'f795702c-a3b8-5a88-88ee-5d06019d44fa',
name: 'prod-404',
version: '1.0.0',
pluginOptions: { plugins: [] },
nodeAPIs: [ 'onCreatePage' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/prod-404',
packageJson:
{ name: 'prod-404',
description:
"Internal plugin to detect various flavors of 404 pages and ensure there's a 404.html path created as well to ensure compatibility with static hosts",
version: '1.0.0',
main: 'index.js',
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [],
devDependencies: [],
peerDependencies: [],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '1c994d60422d03cbf5481f2c05782b15',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/webpack-theme-component-shadowing',
id: '6f4b2fa9-66b5-5205-a03f-140005a2cfe5',
name: 'webpack-theme-component-shadowing',
version: '1.0.0',
pluginOptions: { plugins: [] },
nodeAPIs: [ 'onCreateWebpackConfig' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby/dist/internal-plugins/webpack-theme-component-shadowing',
packageJson:
{ name: 'webpack-theme-component-shadowing',
description:
"An internal Gatsby plugin which handles configuring webpack to ensure theme components fall back from the user's site to theme modules.",
version: '1.0.0',
main: 'index.js',
author: 'Chris Biscardi <chris@christopherbiscardi.com>',
license: 'MIT',
dependencies: [],
devDependencies: [],
peerDependencies: [],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '5df022bb007010a718a54bfd5cb7e7f6',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-mdx',
id: '6d1e0f07-31b8-57e5-9cca-5b0467e6f225',
name: 'gatsby-plugin-mdx',
version: '1.0.22',
pluginOptions:
{ plugins: [],
extensions: [Array],
gatsbyRemarkPlugins: [Array],
remarkPlugins: [] },
nodeAPIs:
[ 'sourceNodes',
'onCreateNode',
'onCreatePage',
'onCreateWebpackConfig',
'resolvableExtensions',
'preprocessSource',
'onCreateBabelConfig',
'onPreBootstrap',
'onPostBootstrap' ],
browserAPIs: [ 'wrapRootElement' ],
ssrAPIs: [ 'wrapRootElement' ],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-mdx',
packageJson:
{ name: 'gatsby-plugin-mdx',
description: 'MDX integration for Gatsby',
version: '1.0.22',
main: 'index.js',
keywords: [Array],
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: 'bf136109e390343b156df943f7614633',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-source-filesystem',
id: 'c1c4377d-213b-56a4-9309-b6eecce923af',
name: 'gatsby-source-filesystem',
version: '2.1.8',
pluginOptions:
{ plugins: [],
path: '/Users/chris/tmp/draft-deletion/content/posts',
name: 'content/posts' },
nodeAPIs: [ 'sourceNodes', 'setFieldsOnGraphQLNodeType' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-source-filesystem',
packageJson:
{ name: 'gatsby-source-filesystem',
description:
'Gatsby plugin which parses files within a directory for further parsing by other plugins',
version: '2.1.8',
keywords: [Array],
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '9898182e73eb7a989908bc62e62efeee',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-source-filesystem',
id: '5242dc53-7bf3-565e-89cf-4e094b10c8be',
name: 'gatsby-source-filesystem',
version: '2.1.8',
pluginOptions:
{ plugins: [],
path: '/Users/chris/tmp/draft-deletion/content/assets',
name: 'content/assets' },
nodeAPIs: [ 'sourceNodes', 'setFieldsOnGraphQLNodeType' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-source-filesystem',
packageJson:
{ name: 'gatsby-source-filesystem',
description:
'Gatsby plugin which parses files within a directory for further parsing by other plugins',
version: '2.1.8',
keywords: [Array],
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: 'ff2d234e2d2adbd5743ea1f6bf70fdb4',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-transformer-sharp',
id: '822bdf7b-a95a-5885-9351-158705910ac3',
name: 'gatsby-transformer-sharp',
version: '2.2.5',
pluginOptions: { plugins: [] },
nodeAPIs:
[ 'onCreateNode',
'setFieldsOnGraphQLNodeType',
'onPreExtractQueries',
'sourceNodes' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-transformer-sharp',
packageJson:
{ name: 'gatsby-transformer-sharp',
description: 'Gatsby transformer plugin for images using Sharp',
version: '2.2.5',
keywords: [Array],
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '33117a7e4516c2fdc6d509809fdd4d48',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-sharp',
id: '76255988-9b4a-51f7-8cc2-1e4b08c14653',
name: 'gatsby-plugin-sharp',
version: '2.2.9',
pluginOptions: { plugins: [] },
nodeAPIs: [ 'onPreBootstrap' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-sharp',
packageJson:
{ name: 'gatsby-plugin-sharp',
description:
'Wrapper of the Sharp image manipulation library for Gatsby plugins',
version: '2.2.9',
main: 'index.js',
keywords: [Array],
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: 'dfe2ddec6cb61c8a98cb6d8375edb54c',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-react-helmet',
id: '42ec4529-1b5a-526a-9a9d-b267333020da',
name: 'gatsby-plugin-react-helmet',
version: '3.1.2',
pluginOptions: { plugins: [] },
nodeAPIs: [],
browserAPIs: [],
ssrAPIs: [ 'onRenderBody' ],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-react-helmet',
packageJson:
{ name: 'gatsby-plugin-react-helmet',
description:
'Manage document head data with react-helmet. Provides drop-in server rendering support for Gatsby.',
version: '3.1.2',
main: 'index.js',
keywords: [Array],
author: 'Kyle Mathews <matthews.kyle@gmail.com>',
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: 'f67150ac637cf9d5632beea63a24b36a',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-twitter',
id: '5831bbd8-9e85-53a6-b3be-7b3e9e557884',
name: 'gatsby-plugin-twitter',
version: '2.1.2',
pluginOptions: { plugins: [] },
nodeAPIs: [],
browserAPIs: [ 'onRouteUpdate' ],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-twitter',
packageJson:
{ name: 'gatsby-plugin-twitter',
description: 'Loads the Twitter JavaScript for embedding tweets.',
version: '2.1.2',
main: 'index.js',
keywords: [Array],
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '6800a5fb85efc77b8d736d0a865592eb',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-emotion',
id: 'b1674f69-3dee-5cf8-8a38-a16667a563b8',
name: 'gatsby-plugin-emotion',
version: '4.1.2',
pluginOptions: { plugins: [] },
nodeAPIs: [ 'onCreateBabelConfig' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-emotion',
packageJson:
{ name: 'gatsby-plugin-emotion',
description: 'Gatsby plugin to add support for Emotion',
version: '4.1.2',
main: 'index.js',
keywords: [Array],
author: 'Tegan Churchill <churchill.tegan@gmail.com>',
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: 'ed3c397485d3ae5b4c0ba5466c3242e3',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-theme-ui',
id: '4d943d6c-8245-5fb2-89ee-e7a3b539bc16',
name: 'gatsby-plugin-theme-ui',
version: '0.2.25',
pluginOptions: { plugins: [] },
nodeAPIs: [],
browserAPIs: [ 'wrapRootElement' ],
ssrAPIs: [ 'wrapRootElement', 'onRenderBody' ],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-theme-ui',
packageJson:
{ name: 'gatsby-plugin-theme-ui',
version: '0.2.25',
main: 'index.js',
keywords: [Array],
author: 'Brent Jackson',
license: 'MIT',
peerDependencies: [Array],
dependencies: [],
devDependencies: [],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: 'c516e9a39d283340120a4842c61400ed',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-theme-blog',
id: '1b53d695-4767-5102-9bf5-665af3cc6db8',
name: 'gatsby-theme-blog',
version: '1.0.2',
pluginOptions: { plugins: [] },
nodeAPIs:
[ 'onPreBootstrap', 'sourceNodes', 'createPages', 'onCreateNode' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-theme-blog',
packageJson:
{ name: 'gatsby-theme-blog',
description:
'A Gatsby theme for miscellaneous blogging with a dark/light mode',
version: '1.0.2',
main: 'index.js',
keywords: [Array],
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '81f434cc309d8e6632fc62a45ba498b4',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve: '/Users/chris/tmp/draft-deletion',
id: '7374ebf2-d961-52ee-92a2-c25e7cb387a9',
name: 'default-site-plugin',
version: '4898342f1759a9134a59f31d33d0fdf9',
pluginOptions: { plugins: [] },
nodeAPIs: [ 'createSchemaCustomization', 'onCreateNode' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath: '/Users/chris/tmp/draft-deletion',
packageJson:
{ name: 'gatsby-starter-blog-theme',
version: '0.0.1',
dependencies: [Array],
devDependencies: [],
peerDependencies: [],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: 'aaa83536bf7f84114e51e40229378fbd',
type: 'SitePlugin',
owner: 'internal-data-bridge' } },
{ resolve:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-page-creator',
id: '2e99efb2-1721-56e5-bed5-5a26c7886b51',
name: 'gatsby-plugin-page-creator',
version: '2.1.5',
pluginOptions:
{ plugins: [],
path: '/Users/chris/tmp/draft-deletion/src/pages',
pathCheck: false },
nodeAPIs: [ 'createPagesStatefully' ],
browserAPIs: [],
ssrAPIs: [],
pluginFilepath:
'/Users/chris/tmp/draft-deletion/node_modules/gatsby-plugin-page-creator',
packageJson:
{ name: 'gatsby-plugin-page-creator',
description:
'Gatsby plugin that automatically creates pages from React components in specified directories',
version: '2.1.5',
main: 'index.js',
keywords: [Array],
author: 'Kyle Mathews <mathews.kyle@gmail.com>',
license: 'MIT',
dependencies: [Array],
devDependencies: [Array],
peerDependencies: [Array],
optionalDependecies: [],
bundledDependecies: [] },
parent: null,
children: [],
internal:
{ contentDigest: '9f8aa8e64b7973e650e695a4446aa823',
type: 'SitePlugin',
owner: 'internal-data-bridge' } } ]
[ { siteMetadata:
{ title: 'My Blog Title',
author: 'My Name',
description: 'My site description...',
social: [Array] },
port: 8000,
host: 'localhost',
polyfill: true,
pathPrefix: '',
buildTime: '2019-08-10T21:35:25.777Z',
id: 'Site',
parent: null,
children: [],
internal:
{ contentDigest: '6c8117133883a14ed3e7e0008d0743ee',
type: 'Site',
owner: 'internal-data-bridge' } } ]
[ { id: '693f63f3-613b-512d-b35b-cbfd996f192a',
children: [],
parent: null,
internal:
{ contentDigest: '8eeec4106b9f2300d62ea0ca0bcb4454',
type: 'Directory',
description: 'Directory "content/posts"',
owner: 'gatsby-source-filesystem' },
sourceInstanceName: 'content/posts',
absolutePath: '/Users/chris/tmp/draft-deletion/content/posts',
relativePath: '',
extension: '',
size: 128,
prettySize: '128 B',
modifiedTime: '2019-08-10T09:16:36.504Z',
accessTime: '2019-08-10T09:16:59.793Z',
changeTime: '2019-08-10T09:16:36.504Z',
birthTime: '2019-08-10T09:16:36.503Z',
root: '/',
dir: '/Users/chris/tmp/draft-deletion/content',
base: 'posts',
ext: '',
name: 'posts',
relativeDirectory: '..',
dev: 16777220,
mode: 16877,
nlink: 4,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4096,
ino: 8652922529,
blocks: 0,
atimeMs: 1565428619793.0852,
mtimeMs: 1565428596503.615,
ctimeMs: 1565428596503.615,
birthtimeMs: 1565428596503.2217,
atime: '2019-08-10T09:16:59.793Z',
mtime: '2019-08-10T09:16:36.504Z',
ctime: '2019-08-10T09:16:36.504Z',
birthtime: '2019-08-10T09:16:36.503Z' },
{ id: '21081ee4-3f2c-5f20-b8aa-8c621223c73d',
children: [],
parent: null,
internal:
{ contentDigest: 'c8c079a59c9b35589b9aa7e277002257',
type: 'Directory',
description: 'Directory "content/assets"',
owner: 'gatsby-source-filesystem' },
sourceInstanceName: 'content/assets',
absolutePath: '/Users/chris/tmp/draft-deletion/content/assets',
relativePath: '',
extension: '',
size: 96,
prettySize: '96 B',
modifiedTime: '2019-08-10T09:16:36.502Z',
accessTime: '2019-08-10T09:16:59.793Z',
changeTime: '2019-08-10T09:16:36.502Z',
birthTime: '2019-08-10T09:16:36.502Z',
root: '/',
dir: '/Users/chris/tmp/draft-deletion/content',
base: 'assets',
ext: '',
name: 'assets',
relativeDirectory: '..',
dev: 16777220,
mode: 16877,
nlink: 3,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4096,
ino: 8652922527,
blocks: 0,
atimeMs: 1565428619793.0776,
mtimeMs: 1565428596502.351,
ctimeMs: 1565428596502.351,
birthtimeMs: 1565428596502.2444,
atime: '2019-08-10T09:16:59.793Z',
mtime: '2019-08-10T09:16:36.502Z',
ctime: '2019-08-10T09:16:36.502Z',
birthtime: '2019-08-10T09:16:36.502Z' } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment