{"action":"created","comment":{"url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/comments/87689142","pull_request_review_id":8294602,"id":87689142,"diff_hunk":"@@ -115,18 +113,17 @@ export default {\n \n Давайте это немного проанализируем:\n \n-Этот файл нужен чтобы сообщить Webpack некоторую информацию. `output.filename` - имя файла генерируемой сборки. `devtool: 'source-map'` - позволяет использовать source maps (карты кода) для упрощения отладки в браузере. В `module.loaders` есть свойство `test` с регулярным выражением, определяющим какие файлы должны обрабатываться загрузчиком `babel-loader`. Поскольку мы будем использовать как `.js` так и `.jsx` файлы (для React) в следующих частях, наше выражение выглядит как `/\\.jsx?$/`. Директория `node_modules` исключена (exclude) поскольку ее не нужно транспилировать. Таким образом, когда код импортирует (`import`) пакеты, расположенные в `node_modules`, Babel не тратит время на обработку этих файлов. Раздел `resolve` сообщает Webpack файлы какого типа мы хотим подключать через `import`, позволяя тем самым опускать расширения в именах файлов, например как в `import Foo from './foo'`, где `foo` может быть `foo.js` или `foo.jsx`.\n+Этот файл нужен, чтобы сообщить Webpack некоторую информацию. `output.filename` - имя файла генерируемой сборки. `devtool: 'source-map'` - позволяет использовать source maps (карты кода) для упрощения отладки в браузере. В `module.loaders` есть свойство `test` с регулярным выражением, определяющим какие файлы должны обрабатываться загрузчиком `babel-loader`. Поскольку мы будем использовать как `.js` так и `.jsx` файлы (для React) в следующих частях, наше выражение выглядит как `/\\.jsx?$/`. Директория `node_modules` исключена (exclude), поскольку ее не нужно транспилировать. Таким образом, когда код импортирует (`import`) пакеты, расположенные в `node_modules`, Babel не тратит время на обработку этих файлов. Раздел `resolve` сообщает Webpack, файлы какого типа мы хотим подключать через `import`, позволяя тем самым опускать расширения в именах файлов, например как в `import Foo from './foo'`, где `foo` может быть `foo.js` или `foo.jsx`.\n \n-И так, мы настроили Webpack, но нам до сих пор требуется способ *запустить* его.\n+Итак, мы настроили Webpack, но нам до сих пор требуется способ *запустить* его.\n \n ## Подключение Webpack к Gulp\n \n-Webpack может делать множество вещей. Он даже может полностью заменить Gulp, если проект в основном выполняется на стороне клиента. Gulp в свою очередь, как более общий инструмент, больше подходит для таких вещей как анализ кода (linting), тестирование, запуск задач на стороне сервера. Он так же проще в понимании для новичков чем чем сложное конфигурирование Webpack. У нас уже довольно хорошо настроен рабочий процесс на базе Gulp, так что интеграция Webpack в процес сборки пройдет проще простого.\n+Webpack может делать множество вещей. Он даже может полностью заменить Gulp, если проект в основном выполняется на стороне клиента. Gulp в свою очередь, как более общий инструмент, больше подходит для таких вещей как анализ кода (linting), тестирование, запуск задач на стороне сервера. Он так же проще в понимании для новичков, чем сложное конфигурирование Webpack. У нас уже довольно хорошо настроен рабочий процесс на базе Gulp, так что интеграция Webpack в процесс сборки пройдет проще простого.\n \n Давайте создадим в Gulp задачу по запуску Webpack. Откройте `gulpfile.babel.js`.\n-\n-We don't need the `main` task to execute `node lib/` anymore, since we will open `index.html` to run our app. \n-Поскольку мы ~~will open~~ `index.html` чтобы запускать наше приложение, нам больше не требуется задача `main` чтобы выполнять `node lib/`.\n+ \n+Поскольку мы будем использовать `index.html`, чтобы запускать наше приложение, нам больше не требуется задача `main` чтобы выполнять `node lib/`.","path":"tutorial/7-client-webpack/README.md","position":80,"original_position":80,"commit_id":"3da403ae16e2ac5e15bc4ab83a1fe3e30f8e5f6b","original_commit_id":"3da403ae16e2ac5e15bc4ab83a1fe3e30f8e5f6b","user":{"login":"UsulPro","id":14885189,"avatar_url":"https://avatars.githubusercontent.com/u/14885189?v=3","gravatar_id":"","url":"https://api.github.com/users/UsulPro","html_url":"https://github.com/UsulPro","followers_url":"https://api.github.com/users/UsulPro/followers","following_url":"https://api.github.com/users/UsulPro/following{/other_user}","gists_url":"https://api.github.com/users/UsulPro/gists{/gist_id}","starred_url":"https://api.github.com/users/UsulPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UsulPro/subscriptions","organizations_url":"https://api.github.com/users/UsulPro/orgs","repos_url":"https://api.github.com/users/UsulPro/repos","events_url":"https://api.github.com/users/UsulPro/events{/privacy}","received_events_url":"https://api.github.com/users/UsulPro/received_events","type":"User","site_admin":false},"body":"Поскольку мы будем запускать наше приложение, открывая `index.html`, нам больше не требуется задача `main` чтобы выполнять `node lib/`.","created_at":"2016-11-12T08:24:06Z","updated_at":"2016-11-12T08:33:39Z","html_url":"https://github.com/UsulPro/js-stack-from-scratch/pull/2#discussion_r87689142","pull_request_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/comments/87689142"},"html":{"href":"https://github.com/UsulPro/js-stack-from-scratch/pull/2#discussion_r87689142"},"pull_request":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/2","id":93427417,"html_url":"https://github.com/UsulPro/js-stack-from-scratch/pull/2","diff_url":"https://github.com/UsulPro/js-stack-from-scratch/pull/2.diff","patch_url":"https://github.com/UsulPro/js-stack-from-scratch/pull/2.patch","issue_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/issues/2","number":2,"state":"open","locked":false,"title":"fix","user":{"login":"dalikat","id":23235548,"avatar_url":"https://avatars.githubusercontent.com/u/23235548?v=3","gravatar_id":"","url":"https://api.github.com/users/dalikat","html_url":"https://github.com/dalikat","followers_url":"https://api.github.com/users/dalikat/followers","following_url":"https://api.github.com/users/dalikat/following{/other_user}","gists_url":"https://api.github.com/users/dalikat/gists{/gist_id}","starred_url":"https://api.github.com/users/dalikat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalikat/subscriptions","organizations_url":"https://api.github.com/users/dalikat/orgs","repos_url":"https://api.github.com/users/dalikat/repos","events_url":"https://api.github.com/users/dalikat/events{/privacy}","received_events_url":"https://api.github.com/users/dalikat/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-12T04:15:22Z","updated_at":"2016-11-12T08:33:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a91ab743732818e65988522dbe671c658fa128fd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/2/commits","review_comments_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/2/comments","review_comment_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/issues/2/comments","statuses_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/statuses/3da403ae16e2ac5e15bc4ab83a1fe3e30f8e5f6b","head":{"label":"dalikat:master","ref":"master","sha":"3da403ae16e2ac5e15bc4ab83a1fe3e30f8e5f6b","user":{"login":"dalikat","id":23235548,"avatar_url":"https://avatars.githubusercontent.com/u/23235548?v=3","gravatar_id":"","url":"https://api.github.com/users/dalikat","html_url":"https://github.com/dalikat","followers_url":"https://api.github.com/users/dalikat/followers","following_url":"https://api.github.com/users/dalikat/following{/other_user}","gists_url":"https://api.github.com/users/dalikat/gists{/gist_id}","starred_url":"https://api.github.com/users/dalikat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalikat/subscriptions","organizations_url":"https://api.github.com/users/dalikat/orgs","repos_url":"https://api.github.com/users/dalikat/repos","events_url":"https://api.github.com/users/dalikat/events{/privacy}","received_events_url":"https://api.github.com/users/dalikat/received_events","type":"User","site_admin":false},"repo":{"id":73263390,"name":"js-stack-from-scratch","full_name":"dalikat/js-stack-from-scratch","owner":{"login":"dalikat","id":23235548,"avatar_url":"https://avatars.githubusercontent.com/u/23235548?v=3","gravatar_id":"","url":"https://api.github.com/users/dalikat","html_url":"https://github.com/dalikat","followers_url":"https://api.github.com/users/dalikat/followers","following_url":"https://api.github.com/users/dalikat/following{/other_user}","gists_url":"https://api.github.com/users/dalikat/gists{/gist_id}","starred_url":"https://api.github.com/users/dalikat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalikat/subscriptions","organizations_url":"https://api.github.com/users/dalikat/orgs","repos_url":"https://api.github.com/users/dalikat/repos","events_url":"https://api.github.com/users/dalikat/events{/privacy}","received_events_url":"https://api.github.com/users/dalikat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dalikat/js-stack-from-scratch","description":"Russian translation of \"JavaScript Stack from Scratch\"","fork":true,"url":"https://api.github.com/repos/dalikat/js-stack-from-scratch","forks_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/forks","keys_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/teams","hooks_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/hooks","issue_events_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/issues/events{/number}","events_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/events","assignees_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/assignees{/user}","branches_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/branches{/branch}","tags_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/tags","blobs_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/git/refs{/sha}","trees_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/statuses/{sha}","languages_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/languages","stargazers_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/stargazers","contributors_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/contributors","subscribers_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/subscribers","subscription_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/subscription","commits_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/commits{/sha}","git_commits_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/git/commits{/sha}","comments_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/comments{/number}","issue_comment_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/issues/comments{/number}","contents_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/contents/{+path}","compare_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/merges","archive_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/downloads","issues_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/issues{/number}","pulls_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/pulls{/number}","milestones_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/milestones{/number}","notifications_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/labels{/name}","releases_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/releases{/id}","deployments_url":"https://api.github.com/repos/dalikat/js-stack-from-scratch/deployments","created_at":"2016-11-09T08:07:37Z","updated_at":"2016-11-09T08:07:38Z","pushed_at":"2016-11-11T15:09:59Z","git_url":"git://github.com/dalikat/js-stack-from-scratch.git","ssh_url":"git@github.com:dalikat/js-stack-from-scratch.git","clone_url":"https://github.com/dalikat/js-stack-from-scratch.git","svn_url":"https://github.com/dalikat/js-stack-from-scratch","homepage":"","size":1045,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"UsulPro:master","ref":"master","sha":"e2de4f192f6c6045b02512a1bf30e9a975675dfb","user":{"login":"UsulPro","id":14885189,"avatar_url":"https://avatars.githubusercontent.com/u/14885189?v=3","gravatar_id":"","url":"https://api.github.com/users/UsulPro","html_url":"https://github.com/UsulPro","followers_url":"https://api.github.com/users/UsulPro/followers","following_url":"https://api.github.com/users/UsulPro/following{/other_user}","gists_url":"https://api.github.com/users/UsulPro/gists{/gist_id}","starred_url":"https://api.github.com/users/UsulPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UsulPro/subscriptions","organizations_url":"https://api.github.com/users/UsulPro/orgs","repos_url":"https://api.github.com/users/UsulPro/repos","events_url":"https://api.github.com/users/UsulPro/events{/privacy}","received_events_url":"https://api.github.com/users/UsulPro/received_events","type":"User","site_admin":false},"repo":{"id":72525353,"name":"js-stack-from-scratch","full_name":"UsulPro/js-stack-from-scratch","owner":{"login":"UsulPro","id":14885189,"avatar_url":"https://avatars.githubusercontent.com/u/14885189?v=3","gravatar_id":"","url":"https://api.github.com/users/UsulPro","html_url":"https://github.com/UsulPro","followers_url":"https://api.github.com/users/UsulPro/followers","following_url":"https://api.github.com/users/UsulPro/following{/other_user}","gists_url":"https://api.github.com/users/UsulPro/gists{/gist_id}","starred_url":"https://api.github.com/users/UsulPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UsulPro/subscriptions","organizations_url":"https://api.github.com/users/UsulPro/orgs","repos_url":"https://api.github.com/users/UsulPro/repos","events_url":"https://api.github.com/users/UsulPro/events{/privacy}","received_events_url":"https://api.github.com/users/UsulPro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/UsulPro/js-stack-from-scratch","description":"Russian translation of \"JavaScript Stack from Scratch\"","fork":true,"url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch","forks_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/forks","keys_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/teams","hooks_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/hooks","issue_events_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/issues/events{/number}","events_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/events","assignees_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/assignees{/user}","branches_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/branches{/branch}","tags_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/tags","blobs_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/git/refs{/sha}","trees_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/statuses/{sha}","languages_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/languages","stargazers_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/stargazers","contributors_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/contributors","subscribers_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/subscribers","subscription_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/subscription","commits_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/commits{/sha}","git_commits_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/git/commits{/sha}","comments_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/comments{/number}","issue_comment_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/issues/comments{/number}","contents_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/contents/{+path}","compare_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/merges","archive_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/downloads","issues_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/issues{/number}","pulls_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls{/number}","milestones_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/milestones{/number}","notifications_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/labels{/name}","releases_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/releases{/id}","deployments_url":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/deployments","created_at":"2016-11-01T10:14:41Z","updated_at":"2016-11-10T18:16:52Z","pushed_at":"2016-11-12T04:15:22Z","git_url":"git://github.com/UsulPro/js-stack-from-scratch.git","ssh_url":"git@github.com:UsulPro/js-stack-from-scratch.git","clone_url":"https://github.com/UsulPro/js-stack-from-scratch.git","svn_url":"https://github.com/UsulPro/js-stack-from-scratch","homepage":"","size":1048,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/2"},"html":{"href":"https://github.com/UsulPro/js-stack-from-scratch/pull/2"},"issue":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/issues/2"},"comments":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/UsulPro/js-stack-from-scratch/statuses/3da403ae16e2ac5e15bc4ab83a1fe3e30f8e5f6b"}}}}
{"actor":{"display_login":"UsulPro"}}