{"action":"created","issue":{"url":"https://api.github.com/repos/Everlaw/nbts/issues/21","repository_url":"https://api.github.com/repos/Everlaw/nbts","labels_url":"https://api.github.com/repos/Everlaw/nbts/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Everlaw/nbts/issues/21/comments","events_url":"https://api.github.com/repos/Everlaw/nbts/issues/21/events","html_url":"https://github.com/Everlaw/nbts/issues/21","id":115494384,"number":21,"title":"Support for tsconfig.json in project root","user":{"login":"vojtechhabarta","id":1191407,"avatar_url":"https://avatars.githubusercontent.com/u/1191407?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtechhabarta","html_url":"https://github.com/vojtechhabarta","followers_url":"https://api.github.com/users/vojtechhabarta/followers","following_url":"https://api.github.com/users/vojtechhabarta/following{/other_user}","gists_url":"https://api.github.com/users/vojtechhabarta/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechhabarta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechhabarta/subscriptions","organizations_url":"https://api.github.com/users/vojtechhabarta/orgs","repos_url":"https://api.github.com/users/vojtechhabarta/repos","events_url":"https://api.github.com/users/vojtechhabarta/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechhabarta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-06T12:15:30Z","updated_at":"2016-03-11T10:24:41Z","closed_at":null,"body":"Currently TypeScript plugin assumes that TypeScript projects correspond to NetBeans project _source roots_ which I think is usually `src/main/java` for `jar` Maven project and also `src/main/webapp` for `war` project. These source roots can have `tsconfig.json`.\r\n\r\nBut usually my TypeScript project corresponds to Maven project, I have `tsconfig.json` in  the same directory as `pom.xml`. Currently this project structure is not supported and `tsconfig.json` is ignored.\r\n"},"comment":{"url":"https://api.github.com/repos/Everlaw/nbts/issues/comments/195309588","html_url":"https://github.com/Everlaw/nbts/issues/21#issuecomment-195309588","issue_url":"https://api.github.com/repos/Everlaw/nbts/issues/21","id":195309588,"user":{"login":"RomkeVdMeulen","id":2307038,"avatar_url":"https://avatars.githubusercontent.com/u/2307038?v=3","gravatar_id":"","url":"https://api.github.com/users/RomkeVdMeulen","html_url":"https://github.com/RomkeVdMeulen","followers_url":"https://api.github.com/users/RomkeVdMeulen/followers","following_url":"https://api.github.com/users/RomkeVdMeulen/following{/other_user}","gists_url":"https://api.github.com/users/RomkeVdMeulen/gists{/gist_id}","starred_url":"https://api.github.com/users/RomkeVdMeulen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomkeVdMeulen/subscriptions","organizations_url":"https://api.github.com/users/RomkeVdMeulen/orgs","repos_url":"https://api.github.com/users/RomkeVdMeulen/repos","events_url":"https://api.github.com/users/RomkeVdMeulen/events{/privacy}","received_events_url":"https://api.github.com/users/RomkeVdMeulen/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T10:24:41Z","updated_at":"2016-03-11T10:24:41Z","body":"I may have found a workaround for Maven projects (also relevant to #38 and #28): if you add the folder holding your TypeScript sources as a \"resource\" to your `pom.xml` (but excluding everything so that it doesn't get packaged), then nbts seems to kick in. Not sure of this fits your scenarios exactly, but it may help you find a solution.\r\n\r\nFor example, to add dir `ts` as a resource without packaging it, add this to `<resources>` in your `pom.xml`:\r\n\r\n```\r\n<resource>\r\n\t<directory>ts/</directory>\r\n\t<excludes>\r\n\t\t<exclude>**/*</exclude>\r\n\t</excludes>\r\n</resource>\r\n```\r\n\r\nIf your `pom.xml` doesn't have a `<resources>` element yet, add it to `<build>` with this content to preserve default behaviour:\r\n\r\n```\r\n<resources>\r\n\t<resource>\r\n\t\t<directory>src/main/resources</directory>\r\n\t\t<includes>\r\n\t\t\t<include>**/*</include>\r\n\t\t</includes>\r\n\t</resource>\r\n</resources>\r\n```"}}