{"action":"created","issue":{"url":"https://api.github.com/repos/taobaofed/react-web/issues/145","repository_url":"https://api.github.com/repos/taobaofed/react-web","labels_url":"https://api.github.com/repos/taobaofed/react-web/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/taobaofed/react-web/issues/145/comments","events_url":"https://api.github.com/repos/taobaofed/react-web/issues/145/events","html_url":"https://github.com/taobaofed/react-web/pull/145","id":171331107,"number":145,"title":"直接使用 Libraries/ 而非 babel 转换过的 lib/","user":{"login":"flyskywhy","id":1439846,"avatar_url":"https://avatars.githubusercontent.com/u/1439846?v=3","gravatar_id":"","url":"https://api.github.com/users/flyskywhy","html_url":"https://github.com/flyskywhy","followers_url":"https://api.github.com/users/flyskywhy/followers","following_url":"https://api.github.com/users/flyskywhy/following{/other_user}","gists_url":"https://api.github.com/users/flyskywhy/gists{/gist_id}","starred_url":"https://api.github.com/users/flyskywhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyskywhy/subscriptions","organizations_url":"https://api.github.com/users/flyskywhy/orgs","repos_url":"https://api.github.com/users/flyskywhy/repos","events_url":"https://api.github.com/users/flyskywhy/events{/privacy}","received_events_url":"https://api.github.com/users/flyskywhy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-16T05:58:05Z","updated_at":"2016-08-19T01:17:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/taobaofed/react-web/pulls/145","html_url":"https://github.com/taobaofed/react-web/pull/145","diff_url":"https://github.com/taobaofed/react-web/pull/145.diff","patch_url":"https://github.com/taobaofed/react-web/pull/145.patch"},"body":"实际使用 react-web 经常会需要修改 react-web 本身，而经过 babel 转换过的代码修改起来太累。在看到 react-native 和一些 react-native 第三方库比如 react-native-scrollable-tab-view 都直接在 node_modules/ 中呈现未经 babel 转换的代码后，以及为了能直接让 react-web start 使用那些 react-native 第三方库，所以我做了这些修改，主要是通过 webpack.config.js 中的 exclude: /(node_modules\\/(?!react))/ 让 babel 在编译/运行 APP 的过程中去处理 node_modules/react*，如果你们接受这个 pull request 的话，我觉得你们只需要将 npm install --save git+https://github.com/flyskywhy/react-web.git 这句修改成你们的 github 地址合并到 react-web init 的脚本中，并修改 README.md 中相应的地方。\r\n\r\n另外还修改了Touchable 组件的 BUG ，以及添加了 LayoutAnimation 和 RefreshControl 这两个组件，在 Image 组件中添加了 getSize()。\r\n\r\n还有就是在 webpack.config.js 中使用了 cheap-module-eval-source-map ，这样调试 BUG 时就能很容易定位到精确的源代码文件而不是找不到北的 bundle.js\r\n\r\n在经过这些修改后， https://github.com/flyskywhy/noder-react-native 就能正常运行 web 版了\r\n\r\n附： 我看到 携程 的 react-web 修改版 https://www.npmjs.com/package/moles-web 中添加了不少新组件，你们是否能其合并过来？"},"comment":{"url":"https://api.github.com/repos/taobaofed/react-web/issues/comments/240902733","html_url":"https://github.com/taobaofed/react-web/pull/145#issuecomment-240902733","issue_url":"https://api.github.com/repos/taobaofed/react-web/issues/145","id":240902733,"user":{"login":"flyskywhy","id":1439846,"avatar_url":"https://avatars.githubusercontent.com/u/1439846?v=3","gravatar_id":"","url":"https://api.github.com/users/flyskywhy","html_url":"https://github.com/flyskywhy","followers_url":"https://api.github.com/users/flyskywhy/followers","following_url":"https://api.github.com/users/flyskywhy/following{/other_user}","gists_url":"https://api.github.com/users/flyskywhy/gists{/gist_id}","starred_url":"https://api.github.com/users/flyskywhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyskywhy/subscriptions","organizations_url":"https://api.github.com/users/flyskywhy/orgs","repos_url":"https://api.github.com/users/flyskywhy/repos","events_url":"https://api.github.com/users/flyskywhy/events{/privacy}","received_events_url":"https://api.github.com/users/flyskywhy/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T01:17:19Z","updated_at":"2016-08-19T01:17:19Z","body":"npm install 的 github-url 已从 flyskywhy 改为 taobaofed\r\n\r\n如果您说的是 npm install 的地方要恢复到最早的 npm install react-web --save ，那请您在接受本 pull request 后做这两个操作：恢复成 npm install react-web --save ；并同时删除 package.json 中不会再用到的\r\n\r\n    \"prepublish\": \"node scripts/publish\",\r\n\r\n需要您再做一些操作的原因是，我只是觉得理论上发布到 npm 前需要做这两个操作，但我没法发布因而无法进行实践。\r\n\r\n\r\n当然如果您也觉得 npm install --save git+https://github.com/taobaofed/react-web.git 比  npm install react-web --save 更方便，那就不用再做修改了。"}}
{"actor":{"display_login":"flyskywhy"}}