Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(gatsby-cli): update reporter to support different implementations #13497

Merged
merged 3 commits into from
Apr 25, 2019

Conversation

wardpeet
Copy link
Contributor

Description

Basically this is just a refactor to allow us to fallback to yurnalist when people are on node 6. We can also fallback on CI as Gatsby Cloud would need this as we don't write to stderr (I think) when using ink.

In this PR it's only using yurnalist to make sure we don't break anything and keep this PR small. Ink will build from this one.

Related PRs

#13089

@wardpeet wardpeet requested a review from a team as a code owner April 19, 2019 14:26
@sidharthachatterjee sidharthachatterjee self-assigned this Apr 24, 2019
@DSchau DSchau added the status: awaiting reviewer response A pull request that is currently awaiting a reviewer's response label Apr 24, 2019
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this!

Thank you @wardpeet 🥇

@sidharthachatterjee sidharthachatterjee changed the title refactor(gatsby-cli): update reporter to support different reporters Apr 25, 2019
@sidharthachatterjee sidharthachatterjee removed the status: awaiting reviewer response A pull request that is currently awaiting a reviewer's response label Apr 25, 2019
@sidharthachatterjee sidharthachatterjee merged commit 370fdb4 into gatsbyjs:master Apr 25, 2019
@sidharthachatterjee
Copy link
Contributor

Published in gatsby-cli@2.5.12

const { trackError } = require(`gatsby-telemetry`)

const VERBOSE = process.env.gatsby_log_level === `verbose`
const reporterInstance = require(`./reporters/yurnalist`)
Copy link
Contributor

@muescha muescha Apr 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is very tight binding to yurnalist? you change this later to a setting?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, incrementally!

@wardpeet wardpeet deleted the feat/multiple-reporters branch September 23, 2020 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants