{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/155","labels_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/155/comments","events_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/155/events","html_url":"https://github.com/bem/bem-forum-content-ru/issues/155","id":53501390,"number":155,"title":"Компиляция и сборка","user":{"login":"pavelpower","id":301646,"avatar_url":"https://avatars.githubusercontent.com/u/301646?v=3","gravatar_id":"","url":"https://api.github.com/users/pavelpower","html_url":"https://github.com/pavelpower","followers_url":"https://api.github.com/users/pavelpower/followers","following_url":"https://api.github.com/users/pavelpower/following{/other_user}","gists_url":"https://api.github.com/users/pavelpower/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelpower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelpower/subscriptions","organizations_url":"https://api.github.com/users/pavelpower/orgs","repos_url":"https://api.github.com/users/pavelpower/repos","events_url":"https://api.github.com/users/pavelpower/events{/privacy}","received_events_url":"https://api.github.com/users/pavelpower/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/bem-tools","name":"bem-tools","color":"bfe5bf"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/bem.info","name":"bem.info","color":"bfe5bf"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/borschik","name":"borschik","color":"bfe5bf"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/documentation","name":"documentation","color":"c7def8"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/enb","name":"enb","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-06T10:31:01Z","updated_at":"2015-01-07T08:26:01Z","closed_at":null,"body":"Выкручиваясь в объяснениях при рассказе того, что происходит при сборке БЭМ. Нарисовал такую картинку:\r\n\r\nbundle (начальная точка сборки) => `deps.js` (собираем граф) => `bemdecl.js` (линейная структура зависимостей) => сборка (конкатенация) => компиляция (преобразование типа `less`=>`css`)\r\n\r\nТак вот, очень долго понять никто не мог, почему сборка не создает структуры которая нужна на выхлопе, типа такой:\r\n\r\n```\r\napp/\r\n..css/\r\n..../images\r\n......logo.png\r\n....app.css\r\n..app.html\r\n```\r\n\r\nА собирает все обратно в блоки. При этом откровенно мешая работать над исходниками.\r\n\r\nПришлось написать пример с `bem-tools` + `gulp`\r\n\r\nГде разделил понятия компиляция и сборка таким образом:\r\n\r\n1. `bem-tools` компилирует файлы исходников в нужный вид раскидывая по папкам блоков\r\n2. `gulp` собирает файлы из блоков в ожидаемую структуру.\r\n\r\n\r\nТак, вот может быть стоит ввести в оборот \"сборка/конкатенация файлов для компиляции\", \"компиляция\", \"сборка структуры\". \r\n\r\n\r\nМожет станет понятнее новичкам?"},"comment":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/comments/68991645","html_url":"https://github.com/bem/bem-forum-content-ru/issues/155#issuecomment-68991645","issue_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/155","id":68991645,"user":{"login":"pavelpower","id":301646,"avatar_url":"https://avatars.githubusercontent.com/u/301646?v=3","gravatar_id":"","url":"https://api.github.com/users/pavelpower","html_url":"https://github.com/pavelpower","followers_url":"https://api.github.com/users/pavelpower/followers","following_url":"https://api.github.com/users/pavelpower/following{/other_user}","gists_url":"https://api.github.com/users/pavelpower/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelpower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelpower/subscriptions","organizations_url":"https://api.github.com/users/pavelpower/orgs","repos_url":"https://api.github.com/users/pavelpower/repos","events_url":"https://api.github.com/users/pavelpower/events{/privacy}","received_events_url":"https://api.github.com/users/pavelpower/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T08:26:01Z","updated_at":"2015-01-07T08:26:01Z","body":"@tadatuta, все бы хорошо. Но дело в том, что у нас в проекте нет `bemjson.js`. По этому входной входной точкой служит служит `bemdecl.js`\r\n`bemjson` еще нужно внедрять и объяснять, что это и почему."}}