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

pass resolver and handlers to propsParser #377

Merged
merged 3 commits into from
Apr 11, 2017
Merged

pass resolver and handlers to propsParser #377

merged 3 commits into from
Apr 11, 2017

Conversation

stepancar
Copy link
Member

In examples i see that default propsParser is require('react-doc-gen').parse(content);
but here i see that you passed config.resolver, config.handlers(file) to docGen.
Now i need to call react-doc-gen in my custom propsParser, but i havent access to handlers and resolver.

@stepancar
Copy link
Member Author

@sapegin , could you please review this PR

@codecov-io
Copy link

codecov-io commented Apr 7, 2017

Codecov Report

Merging #377 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #377   +/-   ##
=======================================
  Coverage   92.57%   92.57%           
=======================================
  Files          74       74           
  Lines        1051     1051           
  Branches      223      223           
=======================================
  Hits          973      973           
  Misses         78       78
Impacted Files Coverage Δ
loaders/props-loader.js 78.57% <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 12b94ce...dc6ce04. Read the comment docs.

@sapegin
Copy link
Member

sapegin commented Apr 11, 2017

Sorry for the delay, I was traveling ;-) Thanks for your pull request!

@sapegin sapegin merged commit eef03cf into styleguidist:master Apr 11, 2017
sapegin added a commit that referenced this pull request Apr 23, 2017
## New features

### React 15.5 compatibility

No warnings when running with React 15.5.

(#389 by @ldabiralai, @kulakowka)

### New config option to change Buble configuration

New config option [compilerConfig](https://github.com/styleguidist/react-styleguidist/blob/master/docs/Configuration.md#compilerconfig).

(#392 by @dylanmoz)

### Change default dev server host to 0.0.0.0

This allows users to connect from outside their local machines.

(#374 by @Knorcedger)

## Bug fixes

* Pass resolver and handlers to `propsParser` (#377 by @stepancar)
* Use `[name]` in output filenames (#381 by @jskeate)
* Show actual glob patterns on welcome screen (#387).
* Show correct types in config validation errors (for example do not show `null` as `object`).
* Do not print clean-webpack-plugin log messages.
* Allow working without webpack config.
sapegin added a commit that referenced this pull request Apr 23, 2017
## New features

### React 15.5 compatibility

No warnings when running with React 15.5.

(#389 by @ldabiralai, @kulakowka)

### New config option to change Buble configuration

New config option [compilerConfig](https://github.com/styleguidist/react-styleguidist/blob/master/docs/Configuration.md#compilerconfig).

(#392 by @dylanmoz)

### Change default dev server host to 0.0.0.0

This allows users to connect from outside their local machines.

(#374 by @Knorcedger)

## Bug fixes

* Pass resolver and handlers to `propsParser` (#377 by @stepancar)
* Use `[name]` in output filenames (#381 by @jskeate)
* Show actual glob patterns on welcome screen (#387).
* Show correct types in config validation errors (for example do not show `null` as `object`).
* Do not print clean-webpack-plugin log messages.
* Allow working without webpack config.
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.

None yet

3 participants