{"action":"created","issue":{"url":"https://api.github.com/repos/sintaxi/harp/issues/127","repository_url":"https://api.github.com/repos/sintaxi/harp","labels_url":"https://api.github.com/repos/sintaxi/harp/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/sintaxi/harp/issues/127/comments","events_url":"https://api.github.com/repos/sintaxi/harp/issues/127/events","html_url":"https://github.com/sintaxi/harp/issues/127","id":21096763,"number":127,"title":"Script file concatenation for better code organization","user":{"login":"danielgtaylor","id":106826,"avatar_url":"https://avatars.githubusercontent.com/u/106826?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgtaylor","html_url":"https://github.com/danielgtaylor","followers_url":"https://api.github.com/users/danielgtaylor/followers","following_url":"https://api.github.com/users/danielgtaylor/following{/other_user}","gists_url":"https://api.github.com/users/danielgtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgtaylor/subscriptions","organizations_url":"https://api.github.com/users/danielgtaylor/orgs","repos_url":"https://api.github.com/users/danielgtaylor/repos","events_url":"https://api.github.com/users/danielgtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/danielgtaylor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sintaxi/harp/labels/feature-request","name":"feature-request","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2013-10-16T17:40:57Z","updated_at":"2016-09-14T00:34:33Z","closed_at":null,"body":"It would be nice to have a way to easily concatenate scripts so that you can split your js/coffee code into multiple files. How I would like to organize my code:\r\n\r\n```\r\n- main.js\r\n| - main.coffee\r\n| - users.coffee\r\n| - utils.coffee\r\n```\r\n\r\n```jade\r\nscript(src=\"/main.js\")\r\n```\r\n\r\nWhat I currently have to do:\r\n\r\n```jade\r\nscript(src=\"/main.js/utils.js\")\r\nscript(src=\"/main.js/users.js\")\r\nscript(src=\"/main.js/main.js\")\r\n```\r\n\r\nIt looks like sprockets uses a special comment for this purpose:\r\n\r\n```coffeescript\r\n#= include file.coffee\r\n```\r\n\r\nhttps://github.com/sstephenson/sprockets#the-include-directive\r\n\r\nWhat are the chances of getting some kind of script preprocessing to allow this? It could potentially also be done with special folder names or JSON data files, so I'm not 100% set in the comment directive, it's just an idea. For example, any folder name that ends in `.js` could concatenate all files within it (but how do we manage order?)."},"comment":{"url":"https://api.github.com/repos/sintaxi/harp/issues/comments/246870350","html_url":"https://github.com/sintaxi/harp/issues/127#issuecomment-246870350","issue_url":"https://api.github.com/repos/sintaxi/harp/issues/127","id":246870350,"user":{"login":"edinchez","id":8266903,"avatar_url":"https://avatars.githubusercontent.com/u/8266903?v=3","gravatar_id":"","url":"https://api.github.com/users/edinchez","html_url":"https://github.com/edinchez","followers_url":"https://api.github.com/users/edinchez/followers","following_url":"https://api.github.com/users/edinchez/following{/other_user}","gists_url":"https://api.github.com/users/edinchez/gists{/gist_id}","starred_url":"https://api.github.com/users/edinchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edinchez/subscriptions","organizations_url":"https://api.github.com/users/edinchez/orgs","repos_url":"https://api.github.com/users/edinchez/repos","events_url":"https://api.github.com/users/edinchez/events{/privacy}","received_events_url":"https://api.github.com/users/edinchez/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T00:34:33Z","updated_at":"2016-09-14T00:34:33Z","body":"Has this not been implemented yet?"}}
{"actor":{"display_login":"edinchez"}}