{"action":"closed","number":39,"pull_request":{"url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls/39","id":39193312,"html_url":"https://github.com/jwvdiermen/grunt-include-source/pull/39","diff_url":"https://github.com/jwvdiermen/grunt-include-source/pull/39.diff","patch_url":"https://github.com/jwvdiermen/grunt-include-source/pull/39.patch","issue_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/issues/39","number":39,"state":"closed","locked":false,"title":"Add support for \"target\" include option.","user":{"login":"mgierw","id":13169742,"avatar_url":"https://avatars.githubusercontent.com/u/13169742?v=3","gravatar_id":"","url":"https://api.github.com/users/mgierw","html_url":"https://github.com/mgierw","followers_url":"https://api.github.com/users/mgierw/followers","following_url":"https://api.github.com/users/mgierw/following{/other_user}","gists_url":"https://api.github.com/users/mgierw/gists{/gist_id}","starred_url":"https://api.github.com/users/mgierw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgierw/subscriptions","organizations_url":"https://api.github.com/users/mgierw/orgs","repos_url":"https://api.github.com/users/mgierw/repos","events_url":"https://api.github.com/users/mgierw/events{/privacy}","received_events_url":"https://api.github.com/users/mgierw/received_events","type":"User","site_admin":false},"body":"I wanted to write something like the following:\r\n```\r\n<!-- include: \"target\": \"dev\", \"type\": \"js\", \"files\": [\"dist/lib/*.js\", \"dist/js/gameApp.js\", \"dist/js/*.js\", \"dist/shared/*.js\"] -->\r\n<!-- include: \"target\": \"prod\", \"type\": \"js\", \"files\": [\"dist/client.min.js\"] -->\r\n```\r\nwhere include is conditionally executed according to the task target.\r\nMy grunfile.js is:\r\n```\r\nincludeSource: {\r\n\toptions: {\r\n\t\tbasePath: './',\r\n\t\tbaseUrl: '',\r\n\t\ttemplates: {\r\n\t\t\thtml: {\r\n\t\t\t\tjs: '<script src=\"{filePath}\"></script>'\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tdev: {\r\n\t\tfiles: {\r\n\t\t\t'dist/dev/game.html': 'html/game.html'\r\n\t\t}\r\n\t},\r\n\tprod: {\r\n\t\tfiles: {\r\n\t\t\t'dist/prod/game.html': 'html/game.html'\r\n\t\t}\r\n\t}\r\n}\r\n```","created_at":"2015-07-03T19:23:50Z","updated_at":"2015-07-10T10:16:00Z","closed_at":"2015-07-10T10:16:00Z","merged_at":"2015-07-10T10:16:00Z","merge_commit_sha":"5f713ab319bc01d078e41c1f5487f5da8a0588ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls/39/commits","review_comments_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls/39/comments","review_comment_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/issues/39/comments","statuses_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/statuses/384fbf70a9b12b98851023d3e696d5dfdab0743f","head":{"label":"mgierw:master","ref":"master","sha":"384fbf70a9b12b98851023d3e696d5dfdab0743f","user":{"login":"mgierw","id":13169742,"avatar_url":"https://avatars.githubusercontent.com/u/13169742?v=3","gravatar_id":"","url":"https://api.github.com/users/mgierw","html_url":"https://github.com/mgierw","followers_url":"https://api.github.com/users/mgierw/followers","following_url":"https://api.github.com/users/mgierw/following{/other_user}","gists_url":"https://api.github.com/users/mgierw/gists{/gist_id}","starred_url":"https://api.github.com/users/mgierw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgierw/subscriptions","organizations_url":"https://api.github.com/users/mgierw/orgs","repos_url":"https://api.github.com/users/mgierw/repos","events_url":"https://api.github.com/users/mgierw/events{/privacy}","received_events_url":"https://api.github.com/users/mgierw/received_events","type":"User","site_admin":false},"repo":{"id":38506702,"name":"grunt-include-source","full_name":"mgierw/grunt-include-source","owner":{"login":"mgierw","id":13169742,"avatar_url":"https://avatars.githubusercontent.com/u/13169742?v=3","gravatar_id":"","url":"https://api.github.com/users/mgierw","html_url":"https://github.com/mgierw","followers_url":"https://api.github.com/users/mgierw/followers","following_url":"https://api.github.com/users/mgierw/following{/other_user}","gists_url":"https://api.github.com/users/mgierw/gists{/gist_id}","starred_url":"https://api.github.com/users/mgierw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgierw/subscriptions","organizations_url":"https://api.github.com/users/mgierw/orgs","repos_url":"https://api.github.com/users/mgierw/repos","events_url":"https://api.github.com/users/mgierw/events{/privacy}","received_events_url":"https://api.github.com/users/mgierw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mgierw/grunt-include-source","description":"Include lists of files into your source files automatically.","fork":true,"url":"https://api.github.com/repos/mgierw/grunt-include-source","forks_url":"https://api.github.com/repos/mgierw/grunt-include-source/forks","keys_url":"https://api.github.com/repos/mgierw/grunt-include-source/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mgierw/grunt-include-source/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mgierw/grunt-include-source/teams","hooks_url":"https://api.github.com/repos/mgierw/grunt-include-source/hooks","issue_events_url":"https://api.github.com/repos/mgierw/grunt-include-source/issues/events{/number}","events_url":"https://api.github.com/repos/mgierw/grunt-include-source/events","assignees_url":"https://api.github.com/repos/mgierw/grunt-include-source/assignees{/user}","branches_url":"https://api.github.com/repos/mgierw/grunt-include-source/branches{/branch}","tags_url":"https://api.github.com/repos/mgierw/grunt-include-source/tags","blobs_url":"https://api.github.com/repos/mgierw/grunt-include-source/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mgierw/grunt-include-source/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mgierw/grunt-include-source/git/refs{/sha}","trees_url":"https://api.github.com/repos/mgierw/grunt-include-source/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mgierw/grunt-include-source/statuses/{sha}","languages_url":"https://api.github.com/repos/mgierw/grunt-include-source/languages","stargazers_url":"https://api.github.com/repos/mgierw/grunt-include-source/stargazers","contributors_url":"https://api.github.com/repos/mgierw/grunt-include-source/contributors","subscribers_url":"https://api.github.com/repos/mgierw/grunt-include-source/subscribers","subscription_url":"https://api.github.com/repos/mgierw/grunt-include-source/subscription","commits_url":"https://api.github.com/repos/mgierw/grunt-include-source/commits{/sha}","git_commits_url":"https://api.github.com/repos/mgierw/grunt-include-source/git/commits{/sha}","comments_url":"https://api.github.com/repos/mgierw/grunt-include-source/comments{/number}","issue_comment_url":"https://api.github.com/repos/mgierw/grunt-include-source/issues/comments{/number}","contents_url":"https://api.github.com/repos/mgierw/grunt-include-source/contents/{+path}","compare_url":"https://api.github.com/repos/mgierw/grunt-include-source/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mgierw/grunt-include-source/merges","archive_url":"https://api.github.com/repos/mgierw/grunt-include-source/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mgierw/grunt-include-source/downloads","issues_url":"https://api.github.com/repos/mgierw/grunt-include-source/issues{/number}","pulls_url":"https://api.github.com/repos/mgierw/grunt-include-source/pulls{/number}","milestones_url":"https://api.github.com/repos/mgierw/grunt-include-source/milestones{/number}","notifications_url":"https://api.github.com/repos/mgierw/grunt-include-source/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mgierw/grunt-include-source/labels{/name}","releases_url":"https://api.github.com/repos/mgierw/grunt-include-source/releases{/id}","created_at":"2015-07-03T18:58:22Z","updated_at":"2015-07-03T18:58:23Z","pushed_at":"2015-07-03T19:21:43Z","git_url":"git://github.com/mgierw/grunt-include-source.git","ssh_url":"git@github.com:mgierw/grunt-include-source.git","clone_url":"https://github.com/mgierw/grunt-include-source.git","svn_url":"https://github.com/mgierw/grunt-include-source","homepage":null,"size":196,"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":"jwvdiermen:master","ref":"master","sha":"182b86dbc78fee57b152b650f6f4b79381946f12","user":{"login":"jwvdiermen","id":733090,"avatar_url":"https://avatars.githubusercontent.com/u/733090?v=3","gravatar_id":"","url":"https://api.github.com/users/jwvdiermen","html_url":"https://github.com/jwvdiermen","followers_url":"https://api.github.com/users/jwvdiermen/followers","following_url":"https://api.github.com/users/jwvdiermen/following{/other_user}","gists_url":"https://api.github.com/users/jwvdiermen/gists{/gist_id}","starred_url":"https://api.github.com/users/jwvdiermen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwvdiermen/subscriptions","organizations_url":"https://api.github.com/users/jwvdiermen/orgs","repos_url":"https://api.github.com/users/jwvdiermen/repos","events_url":"https://api.github.com/users/jwvdiermen/events{/privacy}","received_events_url":"https://api.github.com/users/jwvdiermen/received_events","type":"User","site_admin":false},"repo":{"id":11457001,"name":"grunt-include-source","full_name":"jwvdiermen/grunt-include-source","owner":{"login":"jwvdiermen","id":733090,"avatar_url":"https://avatars.githubusercontent.com/u/733090?v=3","gravatar_id":"","url":"https://api.github.com/users/jwvdiermen","html_url":"https://github.com/jwvdiermen","followers_url":"https://api.github.com/users/jwvdiermen/followers","following_url":"https://api.github.com/users/jwvdiermen/following{/other_user}","gists_url":"https://api.github.com/users/jwvdiermen/gists{/gist_id}","starred_url":"https://api.github.com/users/jwvdiermen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwvdiermen/subscriptions","organizations_url":"https://api.github.com/users/jwvdiermen/orgs","repos_url":"https://api.github.com/users/jwvdiermen/repos","events_url":"https://api.github.com/users/jwvdiermen/events{/privacy}","received_events_url":"https://api.github.com/users/jwvdiermen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwvdiermen/grunt-include-source","description":"Include lists of files into your source files automatically.","fork":false,"url":"https://api.github.com/repos/jwvdiermen/grunt-include-source","forks_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/forks","keys_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/teams","hooks_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/hooks","issue_events_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/issues/events{/number}","events_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/events","assignees_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/assignees{/user}","branches_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/branches{/branch}","tags_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/tags","blobs_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/statuses/{sha}","languages_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/languages","stargazers_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/stargazers","contributors_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/contributors","subscribers_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/subscribers","subscription_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/subscription","commits_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/contents/{+path}","compare_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/merges","archive_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/downloads","issues_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/issues{/number}","pulls_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls{/number}","milestones_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/milestones{/number}","notifications_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/labels{/name}","releases_url":"https://api.github.com/repos/jwvdiermen/grunt-include-source/releases{/id}","created_at":"2013-07-16T18:32:54Z","updated_at":"2015-06-30T05:07:04Z","pushed_at":"2015-07-10T10:16:00Z","git_url":"git://github.com/jwvdiermen/grunt-include-source.git","ssh_url":"git@github.com:jwvdiermen/grunt-include-source.git","clone_url":"https://github.com/jwvdiermen/grunt-include-source.git","svn_url":"https://github.com/jwvdiermen/grunt-include-source","homepage":null,"size":493,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":4,"forks":21,"open_issues":4,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls/39"},"html":{"href":"https://github.com/jwvdiermen/grunt-include-source/pull/39"},"issue":{"href":"https://api.github.com/repos/jwvdiermen/grunt-include-source/issues/39"},"comments":{"href":"https://api.github.com/repos/jwvdiermen/grunt-include-source/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jwvdiermen/grunt-include-source/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/jwvdiermen/grunt-include-source/statuses/384fbf70a9b12b98851023d3e696d5dfdab0743f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jwvdiermen","id":733090,"avatar_url":"https://avatars.githubusercontent.com/u/733090?v=3","gravatar_id":"","url":"https://api.github.com/users/jwvdiermen","html_url":"https://github.com/jwvdiermen","followers_url":"https://api.github.com/users/jwvdiermen/followers","following_url":"https://api.github.com/users/jwvdiermen/following{/other_user}","gists_url":"https://api.github.com/users/jwvdiermen/gists{/gist_id}","starred_url":"https://api.github.com/users/jwvdiermen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwvdiermen/subscriptions","organizations_url":"https://api.github.com/users/jwvdiermen/orgs","repos_url":"https://api.github.com/users/jwvdiermen/repos","events_url":"https://api.github.com/users/jwvdiermen/events{/privacy}","received_events_url":"https://api.github.com/users/jwvdiermen/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":7,"deletions":2,"changed_files":1}}