{"action":"created","issue":{"url":"https://api.github.com/repos/fuse-box/fuse-box/issues/45","repository_url":"https://api.github.com/repos/fuse-box/fuse-box","labels_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/45/comments","events_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/45/events","html_url":"https://github.com/fuse-box/fuse-box/issues/45","id":197708690,"number":45,"title":"tsconfig.json suggestions","user":{"login":"zgredzik","id":2098250,"avatar_url":"https://avatars.githubusercontent.com/u/2098250?v=3","gravatar_id":"","url":"https://api.github.com/users/zgredzik","html_url":"https://github.com/zgredzik","followers_url":"https://api.github.com/users/zgredzik/followers","following_url":"https://api.github.com/users/zgredzik/following{/other_user}","gists_url":"https://api.github.com/users/zgredzik/gists{/gist_id}","starred_url":"https://api.github.com/users/zgredzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgredzik/subscriptions","organizations_url":"https://api.github.com/users/zgredzik/orgs","repos_url":"https://api.github.com/users/zgredzik/repos","events_url":"https://api.github.com/users/zgredzik/events{/privacy}","received_events_url":"https://api.github.com/users/zgredzik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-27T14:13:53Z","updated_at":"2016-12-28T15:55:36Z","closed_at":null,"body":"A couple of ideas that popped into my mind when trying to get FuseBox to work with TS and React (all in reference to [getTypeScriptConfig()](https://github.com/fuse-box/fuse-box/blob/master/src/WorkflowContext.ts#L357))\r\n* documenting the existance of the `tsConfig` option (I don't think I've seen it anywhere in the docs or the site)\r\n* letting users specify the location of the `tsconfig.json` file (by default it looks in `homeDir`, but I think I'm not the only one that prefers to keep his `tsconfig.json` in project's root and not in `src` dir together with the sources, nor do I find it *clean* to add symlinks); one can work around the lack of this feature by reading the contents of `tsconfig.json` from a different location and feeding it to FuseBox through the `tsConfig` option, but I believe this to be a common enough use-case to consider adding it as a separate option\r\n* finding some less strict way of parsing the JSON contents of the `tsconfig.json` than using `require` (afaik TS lets you keep comments in your config, `require` is too strict about the JSON structure for that and it would be nice to reuse the same ts config across all tools)\r\n* (this one is more a question than an idea or an issue, mostly because I haven't had the time to dug deeper into FuseBox's code); just wanted to point out that `.tsx` files do not to trigger [switching to typescript mode](https://github.com/fuse-box/fuse-box/blob/master/src/Arithmetic.ts#L136) and yet my project bundles without problems (probably because of things like [this](https://github.com/fuse-box/fuse-box/blob/master/src/File.ts#L246) and [this](https://github.com/fuse-box/fuse-box/blob/master/src/PathMaster.ts#L42)) also I don't know the significance of [ensureFolderAndExtensions](https://github.com/fuse-box/fuse-box/blob/master/src/PathMaster.ts#L180) but it seems to depend on `tsMode` and assume a `.ts` extension"},"comment":{"url":"https://api.github.com/repos/fuse-box/fuse-box/issues/comments/269496453","html_url":"https://github.com/fuse-box/fuse-box/issues/45#issuecomment-269496453","issue_url":"https://api.github.com/repos/fuse-box/fuse-box/issues/45","id":269496453,"user":{"login":"devmondo","id":1266367,"avatar_url":"https://avatars.githubusercontent.com/u/1266367?v=3","gravatar_id":"","url":"https://api.github.com/users/devmondo","html_url":"https://github.com/devmondo","followers_url":"https://api.github.com/users/devmondo/followers","following_url":"https://api.github.com/users/devmondo/following{/other_user}","gists_url":"https://api.github.com/users/devmondo/gists{/gist_id}","starred_url":"https://api.github.com/users/devmondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devmondo/subscriptions","organizations_url":"https://api.github.com/users/devmondo/orgs","repos_url":"https://api.github.com/users/devmondo/repos","events_url":"https://api.github.com/users/devmondo/events{/privacy}","received_events_url":"https://api.github.com/users/devmondo/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T15:55:36Z","updated_at":"2016-12-28T15:55:36Z","body":"the way i see it is really simple, just provide option to take the path relative to project dir, and feed it to TS and that is all. Fuse is now and should always be transparent about plugins, in essence it should only receive content wither it is compiled or not and do the bundling."}}
{"actor":{"display_login":"devmondo"}}