{"action":"created","comment":{"url":"https://api.github.com/repos/bem/bem-components/pulls/comments/24490889","id":24490889,"diff_hunk":"@@ -0,0 +1,149 @@\n+var techs = require('./techs');\n+\n+module.exports = function(node, options) {\n+    var levels = options.levels || [],\n+        browsers = options.browser || [],\n+        langs = options.langs || [],\n+        templateEngine = options.templateEngine || 'BH';\n+\n+    // essential\n+    node.addTechs([\n+        [techs.bem.levels, { levels : levels }],\n+        [techs.bem.bemjsonToBemdecl, {\n+            target : '.tmp.bemdecl.js'\n+        }],\n+        [techs.bem.deps, {\n+            bemdeclFile : '.tmp.bemdecl.js',\n+            target : '.tmp.deps.js'\n+        }],\n+        [techs.bem.files, {\n+            depsFile : '.tmp.deps.js'\n+        }]\n+    ]);\n+\n+    // css\n+    node.addTech([techs.css, {\n+        target : '.tmp.css',\n+        browsers : browsers\n+    }]);\n+    node.mode('development', function() {\n+        node.addTech([techs.files.copy, {\n+            source : '.tmp.css',\n+            target : '?.css'\n+        }]);\n+    });\n+    node.mode('production', function() {\n+        node.addTech([techs.process, {\n+            source : '.tmp.css',\n+            target : '?.css',\n+            minify : true,\n+            tech : 'cleancss'\n+        }]);\n+    });\n+    node.addTarget('?.css');\n+\n+    // JavaScript for browsers\n+    node.addTechs([\n+        // Template engine for JavaScript\n+        [techs.bem.depsByTechToBemdecl,  {\n+            target : '.tmp.js-template.bemdecl.js',\n+            sourceTech : 'js',\n+            destTech : 'bemhtml'\n+        }],\n+        [techs.bem.deps, {\n+            target : '.tmp.js-template.deps.js',\n+            bemdeclFile : '.tmp.js-template.bemdecl.js'\n+        }],\n+        [techs.bem.files, {\n+            depsFile : '.tmp.js-template.deps.js',\n+            filesTarget : '.tmp.js-template.files',","path":".enb/lib/page.js","position":59,"original_position":59,"commit_id":"94d822827d0715a5e1baada2f7c68e1f014b2ae7","original_commit_id":"94d822827d0715a5e1baada2f7c68e1f014b2ae7","user":{"login":"andrewblond","id":2225579,"avatar_url":"https://avatars.githubusercontent.com/u/2225579?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewblond","html_url":"https://github.com/andrewblond","followers_url":"https://api.github.com/users/andrewblond/followers","following_url":"https://api.github.com/users/andrewblond/following{/other_user}","gists_url":"https://api.github.com/users/andrewblond/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewblond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewblond/subscriptions","organizations_url":"https://api.github.com/users/andrewblond/orgs","repos_url":"https://api.github.com/users/andrewblond/repos","events_url":"https://api.github.com/users/andrewblond/events{/privacy}","received_events_url":"https://api.github.com/users/andrewblond/received_events","type":"User","site_admin":false},"body":"In addition to `filesTarget` there is still `dirsTarget` option which is also `target`.\r\n\r\nI created [issue](https://github.com/enb-bem/enb-bem-techs/issues/105) about the names of options. I propose to continue the discussion there.","created_at":"2015-02-11T12:19:47Z","updated_at":"2015-02-11T12:19:47Z","html_url":"https://github.com/bem/bem-components/pull/1349#discussion_r24490889","pull_request_url":"https://api.github.com/repos/bem/bem-components/pulls/1349","_links":{"self":{"href":"https://api.github.com/repos/bem/bem-components/pulls/comments/24490889"},"html":{"href":"https://github.com/bem/bem-components/pull/1349#discussion_r24490889"},"pull_request":{"href":"https://api.github.com/repos/bem/bem-components/pulls/1349"}}},"pull_request":{"url":"https://api.github.com/repos/bem/bem-components/pulls/1349","id":29055855,"html_url":"https://github.com/bem/bem-components/pull/1349","diff_url":"https://github.com/bem/bem-components/pull/1349.diff","patch_url":"https://github.com/bem/bem-components/pull/1349.patch","issue_url":"https://api.github.com/repos/bem/bem-components/issues/1349","number":1349,"state":"open","locked":false,"title":"Refactoring ENB config (WIP)","user":{"login":"andrewblond","id":2225579,"avatar_url":"https://avatars.githubusercontent.com/u/2225579?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewblond","html_url":"https://github.com/andrewblond","followers_url":"https://api.github.com/users/andrewblond/followers","following_url":"https://api.github.com/users/andrewblond/following{/other_user}","gists_url":"https://api.github.com/users/andrewblond/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewblond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewblond/subscriptions","organizations_url":"https://api.github.com/users/andrewblond/orgs","repos_url":"https://api.github.com/users/andrewblond/repos","events_url":"https://api.github.com/users/andrewblond/events{/privacy}","received_events_url":"https://api.github.com/users/andrewblond/received_events","type":"User","site_admin":false},"body":"Resolved #1345 ","created_at":"2015-02-10T23:31:35Z","updated_at":"2015-02-11T12:19:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfc3b4a524952eee7d95a5c5b672ce0036c14f36","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bem/bem-components/pulls/1349/commits","review_comments_url":"https://api.github.com/repos/bem/bem-components/pulls/1349/comments","review_comment_url":"https://api.github.com/repos/bem/bem-components/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bem/bem-components/issues/1349/comments","statuses_url":"https://api.github.com/repos/bem/bem-components/statuses/94d822827d0715a5e1baada2f7c68e1f014b2ae7","head":{"label":"bem:issues/1345@v2","ref":"issues/1345@v2","sha":"94d822827d0715a5e1baada2f7c68e1f014b2ae7","user":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":6578551,"name":"bem-components","full_name":"bem/bem-components","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/bem-components","description":"Set of components for sites development","fork":false,"url":"https://api.github.com/repos/bem/bem-components","forks_url":"https://api.github.com/repos/bem/bem-components/forks","keys_url":"https://api.github.com/repos/bem/bem-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/bem-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/bem-components/teams","hooks_url":"https://api.github.com/repos/bem/bem-components/hooks","issue_events_url":"https://api.github.com/repos/bem/bem-components/issues/events{/number}","events_url":"https://api.github.com/repos/bem/bem-components/events","assignees_url":"https://api.github.com/repos/bem/bem-components/assignees{/user}","branches_url":"https://api.github.com/repos/bem/bem-components/branches{/branch}","tags_url":"https://api.github.com/repos/bem/bem-components/tags","blobs_url":"https://api.github.com/repos/bem/bem-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/bem-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/bem-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/bem-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/bem-components/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/bem-components/languages","stargazers_url":"https://api.github.com/repos/bem/bem-components/stargazers","contributors_url":"https://api.github.com/repos/bem/bem-components/contributors","subscribers_url":"https://api.github.com/repos/bem/bem-components/subscribers","subscription_url":"https://api.github.com/repos/bem/bem-components/subscription","commits_url":"https://api.github.com/repos/bem/bem-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/bem-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/bem-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/bem-components/issues/comments/{number}","contents_url":"https://api.github.com/repos/bem/bem-components/contents/{+path}","compare_url":"https://api.github.com/repos/bem/bem-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/bem-components/merges","archive_url":"https://api.github.com/repos/bem/bem-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/bem-components/downloads","issues_url":"https://api.github.com/repos/bem/bem-components/issues{/number}","pulls_url":"https://api.github.com/repos/bem/bem-components/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/bem-components/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/bem-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/bem-components/labels{/name}","releases_url":"https://api.github.com/repos/bem/bem-components/releases{/id}","created_at":"2012-11-07T11:54:35Z","updated_at":"2015-02-11T08:45:05Z","pushed_at":"2015-02-11T12:14:43Z","git_url":"git://github.com/bem/bem-components.git","ssh_url":"git@github.com:bem/bem-components.git","clone_url":"https://github.com/bem/bem-components.git","svn_url":"https://github.com/bem/bem-components","homepage":"https://bem.info/libs/bem-components/","size":21594,"stargazers_count":67,"watchers_count":67,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":78,"forks":42,"open_issues":78,"watchers":67,"default_branch":"v2"}},"base":{"label":"bem:v2","ref":"v2","sha":"ce14592765307b2fc166f3049e2af2aefb455e6f","user":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":6578551,"name":"bem-components","full_name":"bem/bem-components","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/bem-components","description":"Set of components for sites development","fork":false,"url":"https://api.github.com/repos/bem/bem-components","forks_url":"https://api.github.com/repos/bem/bem-components/forks","keys_url":"https://api.github.com/repos/bem/bem-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/bem-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/bem-components/teams","hooks_url":"https://api.github.com/repos/bem/bem-components/hooks","issue_events_url":"https://api.github.com/repos/bem/bem-components/issues/events{/number}","events_url":"https://api.github.com/repos/bem/bem-components/events","assignees_url":"https://api.github.com/repos/bem/bem-components/assignees{/user}","branches_url":"https://api.github.com/repos/bem/bem-components/branches{/branch}","tags_url":"https://api.github.com/repos/bem/bem-components/tags","blobs_url":"https://api.github.com/repos/bem/bem-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/bem-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/bem-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/bem-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/bem-components/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/bem-components/languages","stargazers_url":"https://api.github.com/repos/bem/bem-components/stargazers","contributors_url":"https://api.github.com/repos/bem/bem-components/contributors","subscribers_url":"https://api.github.com/repos/bem/bem-components/subscribers","subscription_url":"https://api.github.com/repos/bem/bem-components/subscription","commits_url":"https://api.github.com/repos/bem/bem-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/bem-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/bem-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/bem-components/issues/comments/{number}","contents_url":"https://api.github.com/repos/bem/bem-components/contents/{+path}","compare_url":"https://api.github.com/repos/bem/bem-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/bem-components/merges","archive_url":"https://api.github.com/repos/bem/bem-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/bem-components/downloads","issues_url":"https://api.github.com/repos/bem/bem-components/issues{/number}","pulls_url":"https://api.github.com/repos/bem/bem-components/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/bem-components/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/bem-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/bem-components/labels{/name}","releases_url":"https://api.github.com/repos/bem/bem-components/releases{/id}","created_at":"2012-11-07T11:54:35Z","updated_at":"2015-02-11T08:45:05Z","pushed_at":"2015-02-11T12:14:43Z","git_url":"git://github.com/bem/bem-components.git","ssh_url":"git@github.com:bem/bem-components.git","clone_url":"https://github.com/bem/bem-components.git","svn_url":"https://github.com/bem/bem-components","homepage":"https://bem.info/libs/bem-components/","size":21594,"stargazers_count":67,"watchers_count":67,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":78,"forks":42,"open_issues":78,"watchers":67,"default_branch":"v2"}},"_links":{"self":{"href":"https://api.github.com/repos/bem/bem-components/pulls/1349"},"html":{"href":"https://github.com/bem/bem-components/pull/1349"},"issue":{"href":"https://api.github.com/repos/bem/bem-components/issues/1349"},"comments":{"href":"https://api.github.com/repos/bem/bem-components/issues/1349/comments"},"review_comments":{"href":"https://api.github.com/repos/bem/bem-components/pulls/1349/comments"},"review_comment":{"href":"https://api.github.com/repos/bem/bem-components/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bem/bem-components/pulls/1349/commits"},"statuses":{"href":"https://api.github.com/repos/bem/bem-components/statuses/94d822827d0715a5e1baada2f7c68e1f014b2ae7"}}}}