{"action":"created","issue":{"url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/191","repository_url":"https://api.github.com/repos/sapegin/react-styleguidist","labels_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/191/comments","events_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/191/events","html_url":"https://github.com/sapegin/react-styleguidist/issues/191","id":182132570,"number":191,"title":"Support create-react-app out from the box","user":{"login":"just-boris","id":812240,"avatar_url":"https://avatars.githubusercontent.com/u/812240?v=3","gravatar_id":"","url":"https://api.github.com/users/just-boris","html_url":"https://github.com/just-boris","followers_url":"https://api.github.com/users/just-boris/followers","following_url":"https://api.github.com/users/just-boris/following{/other_user}","gists_url":"https://api.github.com/users/just-boris/gists{/gist_id}","starred_url":"https://api.github.com/users/just-boris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/just-boris/subscriptions","organizations_url":"https://api.github.com/users/just-boris/orgs","repos_url":"https://api.github.com/users/just-boris/repos","events_url":"https://api.github.com/users/just-boris/events{/privacy}","received_events_url":"https://api.github.com/users/just-boris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sapegin/react-styleguidist/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-10T22:41:24Z","updated_at":"2016-10-12T08:03:48Z","closed_at":null,"body":"[Create React App](https://github.com/facebookincubator/create-react-app) is a tool to set up react project with good defaults. I am using this for some little short-term project and enjoy configuration-less developer environment.\r\n\r\nIt would be nice to use `react-styleguidist` the same way: without any configuration, just specified that I am using well-known project setup. Let's say that we should set `updateWebpackConfig` to something like this:\r\n\r\n```js\r\nmodule.exports = {\r\n  components: './src/components/**/index.js',\r\n  updateWebpackConfig: require('react-styleguidist/react-app-preset')\r\n};\r\n```\r\nThe name of this import can be different but the idea is that config doesn't have any options, just one simple `require` instead of the wall of typical setup.\r\n\r\nSo far I could make it working together with the this [`styleguide.config.js`](https://github.com/just-boris/points-app/blob/d72971647000a820c43e2f42b1cb87471a25dc7a/styleguide.config.js). \r\n\r\nWhat do you think about putting this into core project to help users to setup styleguides with create-react-app easier? \r\n"},"comment":{"url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/comments/253145955","html_url":"https://github.com/sapegin/react-styleguidist/issues/191#issuecomment-253145955","issue_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/191","id":253145955,"user":{"login":"just-boris","id":812240,"avatar_url":"https://avatars.githubusercontent.com/u/812240?v=3","gravatar_id":"","url":"https://api.github.com/users/just-boris","html_url":"https://github.com/just-boris","followers_url":"https://api.github.com/users/just-boris/followers","following_url":"https://api.github.com/users/just-boris/following{/other_user}","gists_url":"https://api.github.com/users/just-boris/gists{/gist_id}","starred_url":"https://api.github.com/users/just-boris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/just-boris/subscriptions","organizations_url":"https://api.github.com/users/just-boris/orgs","repos_url":"https://api.github.com/users/just-boris/repos","events_url":"https://api.github.com/users/just-boris/events{/privacy}","received_events_url":"https://api.github.com/users/just-boris/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T08:03:48Z","updated_at":"2016-10-12T08:03:48Z","body":"What do you mean as \"regular config\"?\r\nNow I am using `updateWebpackConfig` function where I extend webpack config with extra loaders from `react-scripts` package"}}
{"actor":{"display_login":"just-boris"}}