{"action":"created","issue":{"url":"https://api.github.com/repos/fairfieldt/coffeescript-concat/issues/37","repository_url":"https://api.github.com/repos/fairfieldt/coffeescript-concat","labels_url":"https://api.github.com/repos/fairfieldt/coffeescript-concat/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/fairfieldt/coffeescript-concat/issues/37/comments","events_url":"https://api.github.com/repos/fairfieldt/coffeescript-concat/issues/37/events","html_url":"https://github.com/fairfieldt/coffeescript-concat/issues/37","id":157542036,"number":37,"title":"Q: Can I use a main file to include other scripts?","user":{"login":"nelson6e65","id":9272498,"avatar_url":"https://avatars.githubusercontent.com/u/9272498?v=3","gravatar_id":"","url":"https://api.github.com/users/nelson6e65","html_url":"https://github.com/nelson6e65","followers_url":"https://api.github.com/users/nelson6e65/followers","following_url":"https://api.github.com/users/nelson6e65/following{/other_user}","gists_url":"https://api.github.com/users/nelson6e65/gists{/gist_id}","starred_url":"https://api.github.com/users/nelson6e65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelson6e65/subscriptions","organizations_url":"https://api.github.com/users/nelson6e65/orgs","repos_url":"https://api.github.com/users/nelson6e65/repos","events_url":"https://api.github.com/users/nelson6e65/events{/privacy}","received_events_url":"https://api.github.com/users/nelson6e65/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-30T18:23:35Z","updated_at":"2016-05-30T19:14:04Z","closed_at":null,"body":"I didn't find any doc, so I don't know how handles paths.\r\n\r\nHow to make it work?\r\n\r\nI want to use something like this files:\r\n\r\n`main.coffee`\r\n```coffee\r\n#= require <ClassA.coffee>\r\n#= require <ClassB.coffee>\r\n#= require <NamespaceX/main.coffee>\r\n# ...\r\n```\r\n\r\n`NamespaceX/main.coffee`\r\n\r\n```coffee\r\n# \r\n#= require <ClassA.coffee>\r\n#= require <ClassB.coffee>\r\n# ...\r\n\r\n```\r\n\r\nIn a tree like:\r\n\r\n- `NamespaceX`\r\n  - `ClassA.coffee`\r\n  - `ClassB.coffee`\r\n  - `main.coffee`\r\n- `ClassA.coffee`\r\n- `ClassB.coffee`\r\n- `main.coffee`\r\n\r\n\r\nThen run something like:\r\n```sh\r\ncoffeescript-concat main.coffee\r\n```\r\n\r\n...and compiles together.\r\n\r\nIn `#= require <FILE>`... FILE should be full path or relative to file?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fairfieldt/coffeescript-concat/issues/comments/222542907","html_url":"https://github.com/fairfieldt/coffeescript-concat/issues/37#issuecomment-222542907","issue_url":"https://api.github.com/repos/fairfieldt/coffeescript-concat/issues/37","id":222542907,"user":{"login":"nelson6e65","id":9272498,"avatar_url":"https://avatars.githubusercontent.com/u/9272498?v=3","gravatar_id":"","url":"https://api.github.com/users/nelson6e65","html_url":"https://github.com/nelson6e65","followers_url":"https://api.github.com/users/nelson6e65/followers","following_url":"https://api.github.com/users/nelson6e65/following{/other_user}","gists_url":"https://api.github.com/users/nelson6e65/gists{/gist_id}","starred_url":"https://api.github.com/users/nelson6e65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelson6e65/subscriptions","organizations_url":"https://api.github.com/users/nelson6e65/orgs","repos_url":"https://api.github.com/users/nelson6e65/repos","events_url":"https://api.github.com/users/nelson6e65/events{/privacy}","received_events_url":"https://api.github.com/users/nelson6e65/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T19:14:04Z","updated_at":"2016-05-30T19:14:04Z","body":"`main.coffee`:\r\n```coffee\r\n#= require <ClassA.coffee>\r\n#= require <ClassB.coffee>\r\n#= require <NamespaceX/main.coffee>\r\n\r\nx = new ClassA()\r\n```\r\n\r\n\r\n`$ coffeescript-concat main.coffee -o concat.coffee`:\r\n\r\n```bash\r\nError: couldn't find needed file: ClassA\r\nError: couldn't find needed file: ClassB\r\n```\r\n\r\n`concat.coffee`:\r\n```coffee\r\n\r\n\r\n#= require <NamespaceX/main.coffee>\r\n\r\nx = new ClassA()\r\n\r\n\r\n```"}}
{"actor":{"display_login":"nelson6e65"}}