{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/338","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/338/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/338/events","html_url":"https://github.com/systemjs/systemjs/issues/338","id":56092176,"number":338,"title":"usage example for TypeScript plugin?","user":{"login":"trentgrover-wf","id":3778206,"avatar_url":"https://avatars.githubusercontent.com/u/3778206?v=3","gravatar_id":"","url":"https://api.github.com/users/trentgrover-wf","html_url":"https://github.com/trentgrover-wf","followers_url":"https://api.github.com/users/trentgrover-wf/followers","following_url":"https://api.github.com/users/trentgrover-wf/following{/other_user}","gists_url":"https://api.github.com/users/trentgrover-wf/gists{/gist_id}","starred_url":"https://api.github.com/users/trentgrover-wf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trentgrover-wf/subscriptions","organizations_url":"https://api.github.com/users/trentgrover-wf/orgs","repos_url":"https://api.github.com/users/trentgrover-wf/repos","events_url":"https://api.github.com/users/trentgrover-wf/events{/privacy}","received_events_url":"https://api.github.com/users/trentgrover-wf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-30T22:18:23Z","updated_at":"2015-02-05T13:03:21Z","closed_at":null,"body":"Can anyone provide a simple usage example? When using this similarly to other SystemJS plugins, I only get an error.\r\n\r\nhttps://github.com/frankwallis/plugin-typescript/issues/1\r\n\r\n![screen shot 2015-01-30 at 4 17 50 pm](https://cloud.githubusercontent.com/assets/3778206/5984406/9bb81fbc-a89b-11e4-8c22-e57acfc48a9d.png)\r\n"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/73042488","html_url":"https://github.com/systemjs/systemjs/issues/338#issuecomment-73042488","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/338","id":73042488,"user":{"login":"frankwallis","id":4387473,"avatar_url":"https://avatars.githubusercontent.com/u/4387473?v=3","gravatar_id":"","url":"https://api.github.com/users/frankwallis","html_url":"https://github.com/frankwallis","followers_url":"https://api.github.com/users/frankwallis/followers","following_url":"https://api.github.com/users/frankwallis/following{/other_user}","gists_url":"https://api.github.com/users/frankwallis/gists{/gist_id}","starred_url":"https://api.github.com/users/frankwallis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankwallis/subscriptions","organizations_url":"https://api.github.com/users/frankwallis/orgs","repos_url":"https://api.github.com/users/frankwallis/repos","events_url":"https://api.github.com/users/frankwallis/events{/privacy}","received_events_url":"https://api.github.com/users/frankwallis/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T13:03:21Z","updated_at":"2015-02-05T13:03:21Z","body":"Thanks for the info - the problem is that in order to output the code in commonjs format TypeScript requires more than just the source file, it also needs the 'declaration' files (a bit like header files in c) and any import files so that it can type-check the code and produce the js output. Using System.fetch to get these outside of the normal flow seems to be working fine though.\r\n\r\nAs you already saw I have produced a new version which works and there is an example project with the plugin. I also have a test application which I am working on [here](https://github.com/frankwallis/tower/tree/systemjs)\r\n\r\nThere are still a few issues which I am working through and I need to add some more tests and documentation. I'll get back to you about the pull request on the other thread. Thanks."}}