{"action":"created","issue":{"url":"https://api.github.com/repos/imyelo/grunt-duojs/issues/2","labels_url":"https://api.github.com/repos/imyelo/grunt-duojs/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/imyelo/grunt-duojs/issues/2/comments","events_url":"https://api.github.com/repos/imyelo/grunt-duojs/issues/2/events","html_url":"https://github.com/imyelo/grunt-duojs/pull/2","id":71380558,"number":2,"title":"Proper root path declaration","user":{"login":"ArmorDarks","id":4460311,"avatar_url":"https://avatars.githubusercontent.com/u/4460311?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmorDarks","html_url":"https://github.com/ArmorDarks","followers_url":"https://api.github.com/users/ArmorDarks/followers","following_url":"https://api.github.com/users/ArmorDarks/following{/other_user}","gists_url":"https://api.github.com/users/ArmorDarks/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmorDarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmorDarks/subscriptions","organizations_url":"https://api.github.com/users/ArmorDarks/orgs","repos_url":"https://api.github.com/users/ArmorDarks/repos","events_url":"https://api.github.com/users/ArmorDarks/events{/privacy}","received_events_url":"https://api.github.com/users/ArmorDarks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-27T19:35:15Z","updated_at":"2015-04-28T14:36:16Z","closed_at":"2015-04-28T14:24:47Z","pull_request":{"url":"https://api.github.com/repos/imyelo/grunt-duojs/pulls/2","html_url":"https://github.com/imyelo/grunt-duojs/pull/2","diff_url":"https://github.com/imyelo/grunt-duojs/pull/2.diff","patch_url":"https://github.com/imyelo/grunt-duojs/pull/2.patch"},"body":"Added proper  root path declaration.\r\n\r\nWithout joining of `process.cwd()` with `options.root` DuoJS won't know where to look for components, since `options.root` without appending with `process.cwd()` literally means to look in that path, starting from elsewhere, but not working directory of Grunt.\r\n\r\nThus, without fix that Task will result in incomplete build:\r\n\r\n``` cofffee\r\nmodule.exports = (grunt) ->\r\n  @config 'duojs',\r\n    build:\r\n      options:\r\n        root: '<%= path.source.scripts %>'\r\n        buildTo: '../../<%= path.build.scripts %>'\r\n        entry: 'main.js'\r\n        installTo: '../../<%= path.temp.root %>'\r\n```\r\n\r\nsince Duo won't know where `<%= path.source.scripts %>` located.\r\n\r\nThat PR fixes that issue."},"comment":{"url":"https://api.github.com/repos/imyelo/grunt-duojs/issues/comments/97086480","html_url":"https://github.com/imyelo/grunt-duojs/pull/2#issuecomment-97086480","issue_url":"https://api.github.com/repos/imyelo/grunt-duojs/issues/2","id":97086480,"user":{"login":"imyelo","id":2399123,"avatar_url":"https://avatars.githubusercontent.com/u/2399123?v=3","gravatar_id":"","url":"https://api.github.com/users/imyelo","html_url":"https://github.com/imyelo","followers_url":"https://api.github.com/users/imyelo/followers","following_url":"https://api.github.com/users/imyelo/following{/other_user}","gists_url":"https://api.github.com/users/imyelo/gists{/gist_id}","starred_url":"https://api.github.com/users/imyelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imyelo/subscriptions","organizations_url":"https://api.github.com/users/imyelo/orgs","repos_url":"https://api.github.com/users/imyelo/repos","events_url":"https://api.github.com/users/imyelo/events{/privacy}","received_events_url":"https://api.github.com/users/imyelo/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T14:36:16Z","updated_at":"2015-04-28T14:36:16Z","body":"thanks!"}}