ovidiuch / react-component-playground

Minimal frame for loading and testing React components in isolation.
MIT License
76 stars 16 forks source link

Better support for unserializable props in fixtures (2) #18

Closed ovidiuch closed 9 years ago

ovidiuch commented 9 years ago

Fixes https://github.com/skidding/cosmos/issues/130

w0rm commented 9 years ago

@skidding how can I try this? I guess npm link won't work with webpack.

ovidiuch commented 9 years ago

You can to clone react-component-playground on this branch and edit the build output path to /path/to/your/project/node_modules/cosmos-js/node_modules/react-component-playground/build. Then run node_modules/.bin/webpack and it will place the bundle directly in your project, so when you run node_modules/.bin/component-playground in your project you'll have this version of component playground running. Let me know if this makes sense.

w0rm commented 9 years ago

I have built and copied react-component-playground into node_modules of my project, everything seem to work as expected! When are you going to merge this and publish a new version on npm?

ovidiuch commented 9 years ago

I have built and copied react-component-playground into node_modules of my project, everything seem to work as expected! When are you going to merge this and publish a new version on npm?

Awesome. Later this evening.

ovidiuch commented 9 years ago

@w0rm done: https://www.npmjs.com/package/react-component-playground