{"action":"created","comment":{"url":"https://api.github.com/repos/enb-make/enb-borschik/pulls/comments/36623111","id":36623111,"diff_hunk":"@@ -0,0 +1,185 @@\n+API технологий\n+==============\n+\n+Пакет предоставляет следующие технологии:\n+\n+* [borschik](#borschik)\n+* [js-borschik-include](#js-borschik-include)\n+\n+borschik\n+--------\n+\n+Обрабатывает файл с помощью [borschik](https://ru.bem.info/tools/optimizers/borschik/).\n+\n+Технология может использоваться для работы с CSS, JavaScript, JSON и HTML файлами. Основные возможности:\n+\n+* обработка ссылок/путей\n+* заморозка (freeze) ссылок/путей\n+* минимизация кода\n+\n+Настройки описываются в конфигурационном файле `.borschik`. Файл должен располагаться в корне проекта.\n+\n+**Опции**\n+\n+* [source](#source)\n+* [target](#target)\n+* [dependantFiles](#dependantFiles)\n+* [minify](#minify)\n+* [freeze](#freeze)\n+* [tech](#tech)\n+* [techOptions](#techOptions)\n+\n+### source\n+\n+Тип: `String`. Обязательная опция.\n+\n+Имя исходного файла, который будет обработан с помощью `borschik`.\n+\n+### target\n+\n+Тип: `String`. Обязательная опция.\n+\n+Имя файла, c которым будет записан обработанный файл.\n+\n+#### dependantFiles\n+\n+Тип: `String[]`. По умолчанию: `[]`.\n+\n+Имена файлов. Технология будет ожидать сборки этих файлов, и только после того, как они будут собраны запустится обработка исходного файла с помощью `borschik`.\n+\n+#### minify\n+\n+Тип: `Boolean`. По умолчанию: `true`.\n+\n+Включает минимизацию при обработке исходного файла.\n+\n+#### freeze\n+\n+Тип: `Boolean`. По умолчанию: `false`.\n+\n+Включает [freeze](https://ru.bem.info/tools/optimizers/borschik/freeze/) при обработке исходного файла.\n+\n+#### tech\n+\n+Тип: `String`.\n+\n+Имя технологии для обработки исходного файла. По умолчанию определяется по расширению файла.\n+\n+#### techOptions\n+\n+Тип: `Object`. По умолчанию: `{}`.\n+\n+Параметры для обрабатывающей технологии. Возможные значения зависият от конкретной технологии.\n+\n+--------------------------------------\n+\n+**Пример**\n+\n+```javascript\n+var BorschikTech = require('enb-bh/techs/borschik'),\n+    FileProvideTech = require('enb/techs/file-provider');\n+\n+module.exports = function(config) {\n+    /* Собираем CSS-файл в файл с расширением `.dev.css` */\n+\n+    // В dev-режиме обрабатываем CSS-файл борщиком\n+    config.mode('development', function () {\n+        config.node('bundle', function (node) {\n+            node.addTech([BorschikTech, {\n+                source: '?.dev.css',\n+                target: '?.css',\n+                minify: false,\n+                freeze: true\n+            }]);\n+        });\n+    });\n+\n+    // В production-режиме обрабатываем CSS-файл борщиком\n+    // и минимизируем его с помощью `cleancss`\n+    config.mode('production', function () {\n+        config.node('bundle', function (node) {\n+            node.addTech([BorschikTech, {\n+                source: '?.dev.css',\n+                target: '?.css',\n+                minify: true,\n+                freeze: true,\n+                tech: 'cleancss'\n+            }]);\n+        });\n+    });\n+};\n+```\n+\n+js-borschik-include\n+-------------------\n+\n+Собирает JS-файлы c помощью специальной нотации [borschik:include](https://ru.bem.info/tools/optimizers/borschik/js-include/).\n+\n+Результат сборки — `?.js`-файл, который содержит подключения необходимых исходных JS-файлов.\n+\n+**Важно:** После сборки необходимо обработать получившийся файл из специальных нотаций с помощью технологии [borschik](#borschik) с включённой опцией [freeze](#freeze).\n+\n+Технология необходима, если в исходных JS-файлах встречаются специальные нотации `borschik:include`. Все пути обрабатываются относительно того файла, в котором прописан `borschik:include`.\n+\n+**Опции**\n+\n+* [target](#target-2)\n+* [filesTarget](#filesTarget)\n+* [sourceSuffixes](#sourceSuffixes)\n+\n+* *String* **target** — Результирующий таргет. Обязательная опция.\n+* *String* **filesTarget** — files-таргет, на основе которого получается список исходных файлов\n+ (его предоставляет технология `files`). По умолчанию — `?.files`.\n+* *String[]* **sourceSuffixes** — суффиксы файлов, по которым строится files-таргет. По умолчанию — ['js'].\n+\n+#### target\n+\n+Тип: `String`. По умолчанию: `?.js`.\n+\n+Имя таргета, куда будет записан результат сборки необходимых JS-файлов проекта — скомпилированный файл `?.js`.\n+\n+#### filesTarget\n+\n+Тип: `String`. По умолчанию: `?.files`.\n+\n+Имя таргета, откуда будет доступен список исходных файлов для сборки. Список файлов предоставляет технология [files](https://ru.bem.info/tools/bem/enb-bem-techs/readme/#files) пакета [enb-bem-techs](https://ru.bem.info/tools/bem/enb-bem-techs/readme/).\n+\n+#### sourceSuffixes\n+\n+Тип: `String | String[]`. По умолчанию: `['js']`.\n+\n+Суффиксы файлов, по которым отбираются JS-файлы для дальнейшей сборки.","path":"api.ru.md","position":151,"original_position":151,"commit_id":"58c7cc3c4df323b57b3099a951c1551d9d565018","original_commit_id":"4dbf2c6695ac7bdfe6512eb57bce7e7746cbc086","user":{"login":"innabelaya","id":6286656,"avatar_url":"https://avatars.githubusercontent.com/u/6286656?v=3","gravatar_id":"","url":"https://api.github.com/users/innabelaya","html_url":"https://github.com/innabelaya","followers_url":"https://api.github.com/users/innabelaya/followers","following_url":"https://api.github.com/users/innabelaya/following{/other_user}","gists_url":"https://api.github.com/users/innabelaya/gists{/gist_id}","starred_url":"https://api.github.com/users/innabelaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innabelaya/subscriptions","organizations_url":"https://api.github.com/users/innabelaya/orgs","repos_url":"https://api.github.com/users/innabelaya/repos","events_url":"https://api.github.com/users/innabelaya/events{/privacy}","received_events_url":"https://api.github.com/users/innabelaya/received_events","type":"User","site_admin":false},"body":"смотри, чтоб некоторые извращенные умы не придрались к слову, поняв его как \"отбираются\"=\"насильственно изымаются\") ","created_at":"2015-08-10T11:48:11Z","updated_at":"2015-08-10T11:48:11Z","html_url":"https://github.com/enb-make/enb-borschik/pull/36#discussion_r36623111","pull_request_url":"https://api.github.com/repos/enb-make/enb-borschik/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/enb-make/enb-borschik/pulls/comments/36623111"},"html":{"href":"https://github.com/enb-make/enb-borschik/pull/36#discussion_r36623111"},"pull_request":{"href":"https://api.github.com/repos/enb-make/enb-borschik/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/enb-make/enb-borschik/pulls/36","id":41976010,"html_url":"https://github.com/enb-make/enb-borschik/pull/36","diff_url":"https://github.com/enb-make/enb-borschik/pull/36.diff","patch_url":"https://github.com/enb-make/enb-borschik/pull/36.patch","issue_url":"https://api.github.com/repos/enb-make/enb-borschik/issues/36","number":36,"state":"open","locked":false,"title":"Rewrited docs","user":{"login":"blond","id":2225579,"avatar_url":"https://avatars.githubusercontent.com/u/2225579?v=3","gravatar_id":"","url":"https://api.github.com/users/blond","html_url":"https://github.com/blond","followers_url":"https://api.github.com/users/blond/followers","following_url":"https://api.github.com/users/blond/following{/other_user}","gists_url":"https://api.github.com/users/blond/gists{/gist_id}","starred_url":"https://api.github.com/users/blond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blond/subscriptions","organizations_url":"https://api.github.com/users/blond/orgs","repos_url":"https://api.github.com/users/blond/repos","events_url":"https://api.github.com/users/blond/events{/privacy}","received_events_url":"https://api.github.com/users/blond/received_events","type":"User","site_admin":false},"body":"Resolved #15 ","created_at":"2015-08-09T19:58:50Z","updated_at":"2015-08-10T11:48:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1a4b8fcea44bf1a8efa6b334a3be66f8fa4c3db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/enb-make/enb-borschik/pulls/36/commits","review_comments_url":"https://api.github.com/repos/enb-make/enb-borschik/pulls/36/comments","review_comment_url":"https://api.github.com/repos/enb-make/enb-borschik/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enb-make/enb-borschik/issues/36/comments","statuses_url":"https://api.github.com/repos/enb-make/enb-borschik/statuses/58c7cc3c4df323b57b3099a951c1551d9d565018","head":{"label":"enb-make:issue-15","ref":"issue-15","sha":"58c7cc3c4df323b57b3099a951c1551d9d565018","user":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"repo":{"id":19855108,"name":"enb-borschik","full_name":"enb-make/enb-borschik","owner":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-make/enb-borschik","description":"","fork":false,"url":"https://api.github.com/repos/enb-make/enb-borschik","forks_url":"https://api.github.com/repos/enb-make/enb-borschik/forks","keys_url":"https://api.github.com/repos/enb-make/enb-borschik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-make/enb-borschik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-make/enb-borschik/teams","hooks_url":"https://api.github.com/repos/enb-make/enb-borschik/hooks","issue_events_url":"https://api.github.com/repos/enb-make/enb-borschik/issues/events{/number}","events_url":"https://api.github.com/repos/enb-make/enb-borschik/events","assignees_url":"https://api.github.com/repos/enb-make/enb-borschik/assignees{/user}","branches_url":"https://api.github.com/repos/enb-make/enb-borschik/branches{/branch}","tags_url":"https://api.github.com/repos/enb-make/enb-borschik/tags","blobs_url":"https://api.github.com/repos/enb-make/enb-borschik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-make/enb-borschik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-make/enb-borschik/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-make/enb-borschik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-make/enb-borschik/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-make/enb-borschik/languages","stargazers_url":"https://api.github.com/repos/enb-make/enb-borschik/stargazers","contributors_url":"https://api.github.com/repos/enb-make/enb-borschik/contributors","subscribers_url":"https://api.github.com/repos/enb-make/enb-borschik/subscribers","subscription_url":"https://api.github.com/repos/enb-make/enb-borschik/subscription","commits_url":"https://api.github.com/repos/enb-make/enb-borschik/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-make/enb-borschik/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-make/enb-borschik/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-make/enb-borschik/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-make/enb-borschik/contents/{+path}","compare_url":"https://api.github.com/repos/enb-make/enb-borschik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-make/enb-borschik/merges","archive_url":"https://api.github.com/repos/enb-make/enb-borschik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-make/enb-borschik/downloads","issues_url":"https://api.github.com/repos/enb-make/enb-borschik/issues{/number}","pulls_url":"https://api.github.com/repos/enb-make/enb-borschik/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-make/enb-borschik/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-make/enb-borschik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-make/enb-borschik/labels{/name}","releases_url":"https://api.github.com/repos/enb-make/enb-borschik/releases{/id}","created_at":"2014-05-16T12:04:48Z","updated_at":"2015-08-04T08:13:45Z","pushed_at":"2015-08-10T11:34:27Z","git_url":"git://github.com/enb-make/enb-borschik.git","ssh_url":"git@github.com:enb-make/enb-borschik.git","clone_url":"https://github.com/enb-make/enb-borschik.git","svn_url":"https://github.com/enb-make/enb-borschik","homepage":null,"size":413,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":9,"default_branch":"master"}},"base":{"label":"enb-make:master","ref":"master","sha":"9de8f8aa76dc49aa9eb6e490017570af89e163a1","user":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"repo":{"id":19855108,"name":"enb-borschik","full_name":"enb-make/enb-borschik","owner":{"login":"enb-make","id":4427117,"avatar_url":"https://avatars.githubusercontent.com/u/4427117?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-make","html_url":"https://github.com/enb-make","followers_url":"https://api.github.com/users/enb-make/followers","following_url":"https://api.github.com/users/enb-make/following{/other_user}","gists_url":"https://api.github.com/users/enb-make/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-make/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-make/subscriptions","organizations_url":"https://api.github.com/users/enb-make/orgs","repos_url":"https://api.github.com/users/enb-make/repos","events_url":"https://api.github.com/users/enb-make/events{/privacy}","received_events_url":"https://api.github.com/users/enb-make/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-make/enb-borschik","description":"","fork":false,"url":"https://api.github.com/repos/enb-make/enb-borschik","forks_url":"https://api.github.com/repos/enb-make/enb-borschik/forks","keys_url":"https://api.github.com/repos/enb-make/enb-borschik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-make/enb-borschik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-make/enb-borschik/teams","hooks_url":"https://api.github.com/repos/enb-make/enb-borschik/hooks","issue_events_url":"https://api.github.com/repos/enb-make/enb-borschik/issues/events{/number}","events_url":"https://api.github.com/repos/enb-make/enb-borschik/events","assignees_url":"https://api.github.com/repos/enb-make/enb-borschik/assignees{/user}","branches_url":"https://api.github.com/repos/enb-make/enb-borschik/branches{/branch}","tags_url":"https://api.github.com/repos/enb-make/enb-borschik/tags","blobs_url":"https://api.github.com/repos/enb-make/enb-borschik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-make/enb-borschik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-make/enb-borschik/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-make/enb-borschik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-make/enb-borschik/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-make/enb-borschik/languages","stargazers_url":"https://api.github.com/repos/enb-make/enb-borschik/stargazers","contributors_url":"https://api.github.com/repos/enb-make/enb-borschik/contributors","subscribers_url":"https://api.github.com/repos/enb-make/enb-borschik/subscribers","subscription_url":"https://api.github.com/repos/enb-make/enb-borschik/subscription","commits_url":"https://api.github.com/repos/enb-make/enb-borschik/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-make/enb-borschik/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-make/enb-borschik/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-make/enb-borschik/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-make/enb-borschik/contents/{+path}","compare_url":"https://api.github.com/repos/enb-make/enb-borschik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-make/enb-borschik/merges","archive_url":"https://api.github.com/repos/enb-make/enb-borschik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-make/enb-borschik/downloads","issues_url":"https://api.github.com/repos/enb-make/enb-borschik/issues{/number}","pulls_url":"https://api.github.com/repos/enb-make/enb-borschik/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-make/enb-borschik/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-make/enb-borschik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-make/enb-borschik/labels{/name}","releases_url":"https://api.github.com/repos/enb-make/enb-borschik/releases{/id}","created_at":"2014-05-16T12:04:48Z","updated_at":"2015-08-04T08:13:45Z","pushed_at":"2015-08-10T11:34:27Z","git_url":"git://github.com/enb-make/enb-borschik.git","ssh_url":"git@github.com:enb-make/enb-borschik.git","clone_url":"https://github.com/enb-make/enb-borschik.git","svn_url":"https://github.com/enb-make/enb-borschik","homepage":null,"size":413,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enb-make/enb-borschik/pulls/36"},"html":{"href":"https://github.com/enb-make/enb-borschik/pull/36"},"issue":{"href":"https://api.github.com/repos/enb-make/enb-borschik/issues/36"},"comments":{"href":"https://api.github.com/repos/enb-make/enb-borschik/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/enb-make/enb-borschik/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/enb-make/enb-borschik/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enb-make/enb-borschik/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/enb-make/enb-borschik/statuses/58c7cc3c4df323b57b3099a951c1551d9d565018"}}}}