{"action":"created","issue":{"url":"https://api.github.com/repos/monounity/karma-typescript/issues/4","repository_url":"https://api.github.com/repos/monounity/karma-typescript","labels_url":"https://api.github.com/repos/monounity/karma-typescript/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/monounity/karma-typescript/issues/4/comments","events_url":"https://api.github.com/repos/monounity/karma-typescript/issues/4/events","html_url":"https://github.com/monounity/karma-typescript/issues/4","id":175070512,"number":4,"title":"Custom typescript compiler options - paths mapping","user":{"login":"g00fy-","id":843807,"avatar_url":"https://avatars.githubusercontent.com/u/843807?v=3","gravatar_id":"","url":"https://api.github.com/users/g00fy-","html_url":"https://github.com/g00fy-","followers_url":"https://api.github.com/users/g00fy-/followers","following_url":"https://api.github.com/users/g00fy-/following{/other_user}","gists_url":"https://api.github.com/users/g00fy-/gists{/gist_id}","starred_url":"https://api.github.com/users/g00fy-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g00fy-/subscriptions","organizations_url":"https://api.github.com/users/g00fy-/orgs","repos_url":"https://api.github.com/users/g00fy-/repos","events_url":"https://api.github.com/users/g00fy-/events{/privacy}","received_events_url":"https://api.github.com/users/g00fy-/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/monounity/karma-typescript/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2016-09-05T13:21:25Z","updated_at":"2016-10-22T05:22:37Z","closed_at":null,"body":"It may be hard - as it has to do more with commonjs - but it would be nice to be able to customize compiler options features - especially for paths mapping\r\n\r\n```javascript\r\n{\r\n  \"baseUrl\": \"./app\",\r\n  \"paths\": {\r\n    \"@app/*\": [\r\n      \"./*\"\r\n    ]\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/monounity/karma-typescript/issues/comments/255508536","html_url":"https://github.com/monounity/karma-typescript/issues/4#issuecomment-255508536","issue_url":"https://api.github.com/repos/monounity/karma-typescript/issues/4","id":255508536,"user":{"login":"monounity","id":21166188,"avatar_url":"https://avatars.githubusercontent.com/u/21166188?v=3","gravatar_id":"","url":"https://api.github.com/users/monounity","html_url":"https://github.com/monounity","followers_url":"https://api.github.com/users/monounity/followers","following_url":"https://api.github.com/users/monounity/following{/other_user}","gists_url":"https://api.github.com/users/monounity/gists{/gist_id}","starred_url":"https://api.github.com/users/monounity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monounity/subscriptions","organizations_url":"https://api.github.com/users/monounity/orgs","repos_url":"https://api.github.com/users/monounity/repos","events_url":"https://api.github.com/users/monounity/events{/privacy}","received_events_url":"https://api.github.com/users/monounity/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T05:22:37Z","updated_at":"2016-10-22T05:22:37Z","body":"@dinvlad, it's now possible to configure a path to tsconfig.json, if it's not set the plugin will fallback to default compiler options.\r\n\r\nAll karma-typescript config options:\r\n```javascript\r\nkarmaTypescriptConfig: {\r\n    tsconfig: \"./tsconfig.json\",\r\n    compilerOptions: {\r\n        noImplicitAny: true,\r\n        ...\r\n    },\r\n    excludedFiles: /\\.(d|spec|test)\\.ts/,\r\n    reports:\r\n    {\r\n        \"html\": \"coverage\",\r\n        ....\r\n    },\r\n    transformPath: function(filepath) {\r\n        return filepath.replace(/\\.(ts|tsx)$/, \".js\");\r\n    }\r\n}\r\n```\r\n\r\nThe default compiler options:\r\n```javascript\r\n{\r\n    compilerOptions: {\r\n        emitDecoratorMetadata: true,\r\n        experimentalDecorators: true,\r\n        jsx: \"react\",\r\n        module: \"commonjs\",\r\n        sourceMap: true,\r\n        target: \"ES5\"\r\n    },\r\n    exclude: [\"node_modules\"]\r\n}\r\n```\r\n\r\nThe default options should take care of common scenarios like plain Typescript, Angular2, React, Typescript v1.6, v1.7, v1.8, v2.0 etc\r\n\r\nThis means you should be able to use your project tsconfig with webpack and run karma-typescript with the default options. If the default options aren't enough you can add/override options in the Karma config."}}
{"actor":{"display_login":"monounity"}}