gatsbyjs / gatsby-source-wordpress-experimental

The upcoming v4 of gatsby-source-wordpress, currently in beta
MIT License
385 stars 100 forks source link

Feat: preview debug mode #409

Closed TylerBarnes closed 3 years ago

TylerBarnes commented 3 years ago

Bug Fixes

New Features

From the plugin options docs:

debug.graphql.printIntrospectionDiff: Boolean

When this is set to true it will print out the diff between types in the previous and new schema when the schema changes. This is enabled by default when debug.preview is enabled.

Default is false.

{
  resolve: `gatsby-source-wordpress-experimental`,
  options: {
    debug: {
      graphql: {
        printIntrospectionDiff: true,
      },
    },
  },
},

and:

debug.preview: Boolean

When set to true, this option will display additional information in the terminal output about the running preview process.

Default is false.

{
  resolve: `gatsby-source-wordpress-experimental`,
  options: {
    debug: {
      preview: true
    },
  },
},
TylerBarnes commented 3 years ago

Example of the schema diff output:

Screen Shot 2021-01-08 at 6 21 23 PM Screen Shot 2021-01-08 at 6 21 45 PM
TylerBarnes commented 3 years ago

This is published in gatsby-source-wordpress-experimental@6.2.0