{"action":"created","comment":{"url":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/comments/23127043","id":23127043,"diff_hunk":"@@ -1,22 +1,27 @@\n var LESSCompiler = require('broccoli-less-single');\n+var path         = require('path');\n+var merge        = require('lodash-node/modern/objects/merge');\n+var mergeTrees   = require('broccoli-merge-trees');\n \n function LESSPlugin(options) {\n   this.name = 'ember-cli-less';\n   this.ext = 'less';\n-  options = options || {};\n-  options.inputFile = options.inputFile || 'app.less';\n-  options.outputFile = options.outputFile || 'app.css';\n   this.options = options;\n }\n \n-LESSPlugin.prototype.toTree = function(tree, inputPath, outputPath) {\n-  var trees = [tree];\n-  if (this.options.paths) {\n-    trees = trees.concat(this.options.paths);\n-  }\n-  inputPath += '/' + this.options.inputFile;\n-  outputPath += '/' + this.options.outputFile;\n-  return new LESSCompiler(trees, inputPath, outputPath, this.options);\n+LESSPlugin.prototype.toTree = function(tree, inputPath, outputPath, options) {\n+  options = merge({}, this.options, options);\n+  var _this = this,\n+      paths = options.outputPaths;\n+\n+  var trees = Object.keys(paths).map(function (file) {","path":"index.js","position":28,"original_position":28,"commit_id":"04418f39cc65aff02f030e78c948a390a60ebe1a","original_commit_id":"04418f39cc65aff02f030e78c948a390a60ebe1a","user":{"login":"stkrzysiak","id":140278,"avatar_url":"https://avatars.githubusercontent.com/u/140278?v=3","gravatar_id":"","url":"https://api.github.com/users/stkrzysiak","html_url":"https://github.com/stkrzysiak","followers_url":"https://api.github.com/users/stkrzysiak/followers","following_url":"https://api.github.com/users/stkrzysiak/following{/other_user}","gists_url":"https://api.github.com/users/stkrzysiak/gists{/gist_id}","starred_url":"https://api.github.com/users/stkrzysiak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stkrzysiak/subscriptions","organizations_url":"https://api.github.com/users/stkrzysiak/orgs","repos_url":"https://api.github.com/users/stkrzysiak/repos","events_url":"https://api.github.com/users/stkrzysiak/events{/privacy}","received_events_url":"https://api.github.com/users/stkrzysiak/received_events","type":"User","site_admin":false},"body":"That would make sense, yet it doesn't with 1.8, is this a 1.9 feature?","created_at":"2015-01-17T17:57:12Z","updated_at":"2015-01-17T17:57:12Z","html_url":"https://github.com/gdub22/ember-cli-less/pull/7#discussion_r23127043","pull_request_url":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/comments/23127043"},"html":{"href":"https://github.com/gdub22/ember-cli-less/pull/7#discussion_r23127043"},"pull_request":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/7","id":27233059,"html_url":"https://github.com/gdub22/ember-cli-less/pull/7","diff_url":"https://github.com/gdub22/ember-cli-less/pull/7.diff","patch_url":"https://github.com/gdub22/ember-cli-less/pull/7.patch","issue_url":"https://api.github.com/repos/gdub22/ember-cli-less/issues/7","number":7,"state":"closed","locked":false,"title":"Support multiple outputPaths defined in Brocfile","user":{"login":"lukesargeant","id":4540188,"avatar_url":"https://avatars.githubusercontent.com/u/4540188?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesargeant","html_url":"https://github.com/lukesargeant","followers_url":"https://api.github.com/users/lukesargeant/followers","following_url":"https://api.github.com/users/lukesargeant/following{/other_user}","gists_url":"https://api.github.com/users/lukesargeant/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesargeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesargeant/subscriptions","organizations_url":"https://api.github.com/users/lukesargeant/orgs","repos_url":"https://api.github.com/users/lukesargeant/repos","events_url":"https://api.github.com/users/lukesargeant/events{/privacy}","received_events_url":"https://api.github.com/users/lukesargeant/received_events","type":"User","site_admin":false},"body":"Adds support for defining multiple outputPaths in the Brocfile, useful for outputting multiple themes:\r\n```\r\nvar app = new EmberApp({\r\n   outputPaths: {\r\n    app: {\r\n      css: {\r\n        'theme-orange': '/assets/theme-orange.css',\r\n        'theme-purple': '/assets/theme-purple.css'\r\n      }\r\n    }\r\n  }\r\n});\r\n```\r\nNote: if this config is not defined it defaults to looking for app/styles/app.less","created_at":"2015-01-12T22:43:33Z","updated_at":"2015-01-17T17:57:12Z","closed_at":"2015-01-15T14:44:40Z","merged_at":"2015-01-15T14:44:40Z","merge_commit_sha":"fea5c550f8a138b0502df6cd67bfc40395889d81","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/7/commits","review_comments_url":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/7/comments","review_comment_url":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gdub22/ember-cli-less/issues/7/comments","statuses_url":"https://api.github.com/repos/gdub22/ember-cli-less/statuses/04418f39cc65aff02f030e78c948a390a60ebe1a","head":{"label":"lukesargeant:master","ref":"master","sha":"04418f39cc65aff02f030e78c948a390a60ebe1a","user":{"login":"lukesargeant","id":4540188,"avatar_url":"https://avatars.githubusercontent.com/u/4540188?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesargeant","html_url":"https://github.com/lukesargeant","followers_url":"https://api.github.com/users/lukesargeant/followers","following_url":"https://api.github.com/users/lukesargeant/following{/other_user}","gists_url":"https://api.github.com/users/lukesargeant/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesargeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesargeant/subscriptions","organizations_url":"https://api.github.com/users/lukesargeant/orgs","repos_url":"https://api.github.com/users/lukesargeant/repos","events_url":"https://api.github.com/users/lukesargeant/events{/privacy}","received_events_url":"https://api.github.com/users/lukesargeant/received_events","type":"User","site_admin":false},"repo":{"id":29155736,"name":"ember-cli-less","full_name":"lukesargeant/ember-cli-less","owner":{"login":"lukesargeant","id":4540188,"avatar_url":"https://avatars.githubusercontent.com/u/4540188?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesargeant","html_url":"https://github.com/lukesargeant","followers_url":"https://api.github.com/users/lukesargeant/followers","following_url":"https://api.github.com/users/lukesargeant/following{/other_user}","gists_url":"https://api.github.com/users/lukesargeant/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesargeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesargeant/subscriptions","organizations_url":"https://api.github.com/users/lukesargeant/orgs","repos_url":"https://api.github.com/users/lukesargeant/repos","events_url":"https://api.github.com/users/lukesargeant/events{/privacy}","received_events_url":"https://api.github.com/users/lukesargeant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukesargeant/ember-cli-less","description":"Use LESS to preprocess your ember-cli app CSS","fork":true,"url":"https://api.github.com/repos/lukesargeant/ember-cli-less","forks_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/forks","keys_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/teams","hooks_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/hooks","issue_events_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/issues/events{/number}","events_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/events","assignees_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/assignees{/user}","branches_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/branches{/branch}","tags_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/tags","blobs_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/statuses/{sha}","languages_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/languages","stargazers_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/stargazers","contributors_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/contributors","subscribers_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/subscribers","subscription_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/subscription","commits_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/issues/comments/{number}","contents_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/contents/{+path}","compare_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/merges","archive_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/downloads","issues_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/issues{/number}","pulls_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/pulls{/number}","milestones_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/milestones{/number}","notifications_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/labels{/name}","releases_url":"https://api.github.com/repos/lukesargeant/ember-cli-less/releases{/id}","created_at":"2015-01-12T20:37:37Z","updated_at":"2015-01-15T14:25:47Z","pushed_at":"2015-01-15T14:25:47Z","git_url":"git://github.com/lukesargeant/ember-cli-less.git","ssh_url":"git@github.com:lukesargeant/ember-cli-less.git","clone_url":"https://github.com/lukesargeant/ember-cli-less.git","svn_url":"https://github.com/lukesargeant/ember-cli-less","homepage":"","size":108,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"gdub22:master","ref":"master","sha":"396aae5cea2874c6f82639bf7b80e89755a83b27","user":{"login":"gdub22","id":411908,"avatar_url":"https://avatars.githubusercontent.com/u/411908?v=3","gravatar_id":"","url":"https://api.github.com/users/gdub22","html_url":"https://github.com/gdub22","followers_url":"https://api.github.com/users/gdub22/followers","following_url":"https://api.github.com/users/gdub22/following{/other_user}","gists_url":"https://api.github.com/users/gdub22/gists{/gist_id}","starred_url":"https://api.github.com/users/gdub22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdub22/subscriptions","organizations_url":"https://api.github.com/users/gdub22/orgs","repos_url":"https://api.github.com/users/gdub22/repos","events_url":"https://api.github.com/users/gdub22/events{/privacy}","received_events_url":"https://api.github.com/users/gdub22/received_events","type":"User","site_admin":false},"repo":{"id":24729047,"name":"ember-cli-less","full_name":"gdub22/ember-cli-less","owner":{"login":"gdub22","id":411908,"avatar_url":"https://avatars.githubusercontent.com/u/411908?v=3","gravatar_id":"","url":"https://api.github.com/users/gdub22","html_url":"https://github.com/gdub22","followers_url":"https://api.github.com/users/gdub22/followers","following_url":"https://api.github.com/users/gdub22/following{/other_user}","gists_url":"https://api.github.com/users/gdub22/gists{/gist_id}","starred_url":"https://api.github.com/users/gdub22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdub22/subscriptions","organizations_url":"https://api.github.com/users/gdub22/orgs","repos_url":"https://api.github.com/users/gdub22/repos","events_url":"https://api.github.com/users/gdub22/events{/privacy}","received_events_url":"https://api.github.com/users/gdub22/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gdub22/ember-cli-less","description":"Use LESS to preprocess your ember-cli app CSS","fork":false,"url":"https://api.github.com/repos/gdub22/ember-cli-less","forks_url":"https://api.github.com/repos/gdub22/ember-cli-less/forks","keys_url":"https://api.github.com/repos/gdub22/ember-cli-less/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gdub22/ember-cli-less/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gdub22/ember-cli-less/teams","hooks_url":"https://api.github.com/repos/gdub22/ember-cli-less/hooks","issue_events_url":"https://api.github.com/repos/gdub22/ember-cli-less/issues/events{/number}","events_url":"https://api.github.com/repos/gdub22/ember-cli-less/events","assignees_url":"https://api.github.com/repos/gdub22/ember-cli-less/assignees{/user}","branches_url":"https://api.github.com/repos/gdub22/ember-cli-less/branches{/branch}","tags_url":"https://api.github.com/repos/gdub22/ember-cli-less/tags","blobs_url":"https://api.github.com/repos/gdub22/ember-cli-less/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gdub22/ember-cli-less/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gdub22/ember-cli-less/git/refs{/sha}","trees_url":"https://api.github.com/repos/gdub22/ember-cli-less/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gdub22/ember-cli-less/statuses/{sha}","languages_url":"https://api.github.com/repos/gdub22/ember-cli-less/languages","stargazers_url":"https://api.github.com/repos/gdub22/ember-cli-less/stargazers","contributors_url":"https://api.github.com/repos/gdub22/ember-cli-less/contributors","subscribers_url":"https://api.github.com/repos/gdub22/ember-cli-less/subscribers","subscription_url":"https://api.github.com/repos/gdub22/ember-cli-less/subscription","commits_url":"https://api.github.com/repos/gdub22/ember-cli-less/commits{/sha}","git_commits_url":"https://api.github.com/repos/gdub22/ember-cli-less/git/commits{/sha}","comments_url":"https://api.github.com/repos/gdub22/ember-cli-less/comments{/number}","issue_comment_url":"https://api.github.com/repos/gdub22/ember-cli-less/issues/comments/{number}","contents_url":"https://api.github.com/repos/gdub22/ember-cli-less/contents/{+path}","compare_url":"https://api.github.com/repos/gdub22/ember-cli-less/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gdub22/ember-cli-less/merges","archive_url":"https://api.github.com/repos/gdub22/ember-cli-less/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gdub22/ember-cli-less/downloads","issues_url":"https://api.github.com/repos/gdub22/ember-cli-less/issues{/number}","pulls_url":"https://api.github.com/repos/gdub22/ember-cli-less/pulls{/number}","milestones_url":"https://api.github.com/repos/gdub22/ember-cli-less/milestones{/number}","notifications_url":"https://api.github.com/repos/gdub22/ember-cli-less/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gdub22/ember-cli-less/labels{/name}","releases_url":"https://api.github.com/repos/gdub22/ember-cli-less/releases{/id}","created_at":"2014-10-02T17:30:44Z","updated_at":"2015-01-15T16:01:39Z","pushed_at":"2015-01-15T16:01:39Z","git_url":"git://github.com/gdub22/ember-cli-less.git","ssh_url":"git@github.com:gdub22/ember-cli-less.git","clone_url":"https://github.com/gdub22/ember-cli-less.git","svn_url":"https://github.com/gdub22/ember-cli-less","homepage":"","size":167,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/7"},"html":{"href":"https://github.com/gdub22/ember-cli-less/pull/7"},"issue":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/issues/7"},"comments":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/gdub22/ember-cli-less/statuses/04418f39cc65aff02f030e78c948a390a60ebe1a"}}}}