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

feat(config): add verbose config to disable log messages #37

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

evenchange4
Copy link
Owner

@evenchange4 evenchange4 commented Jan 29, 2019

resolved #34

Config

Use cosmiconfig to set the babel-plugin-macros configuration: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md#config-experimental

verbose: To disable the log messages

default: true

// babel-plugin-macros.config.js
module.exports = {
  'react-intl': {
    verbose: false,
  },
};

@evenchange4 evenchange4 self-assigned this Jan 29, 2019
@codecov
Copy link

codecov bot commented Jan 29, 2019

Codecov Report

Merging #37 into master will increase coverage by 0.18%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
+ Coverage    91.3%   91.48%   +0.18%     
==========================================
  Files           7        7              
  Lines          46       47       +1     
  Branches        6        7       +1     
==========================================
+ Hits           42       43       +1     
  Misses          4        4
Impacted Files Coverage Δ
src/macro.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c987403...f312ec9. Read the comment docs.

@evenchange4 evenchange4 merged commit 445ab39 into master Jan 29, 2019
@evenchange4 evenchange4 deleted the feautre/config branch January 29, 2019 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove verbose logging
1 participant