{"action":"created","issue":{"url":"https://api.github.com/repos/jrieken/gulp-tsb/issues/12","labels_url":"https://api.github.com/repos/jrieken/gulp-tsb/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/jrieken/gulp-tsb/issues/12/comments","events_url":"https://api.github.com/repos/jrieken/gulp-tsb/issues/12/events","html_url":"https://github.com/jrieken/gulp-tsb/pull/12","id":106029127,"number":12,"title":"Add support to gulp-sourcemaps","user":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T15:08:32Z","updated_at":"2015-09-11T15:34:47Z","closed_at":"2015-09-11T15:34:30Z","pull_request":{"url":"https://api.github.com/repos/jrieken/gulp-tsb/pulls/12","html_url":"https://github.com/jrieken/gulp-tsb/pull/12","diff_url":"https://github.com/jrieken/gulp-tsb/pull/12.diff","patch_url":"https://github.com/jrieken/gulp-tsb/pull/12.patch"},"body":"You still need to tell the TS compiler `\"sourceMap\": true` but you can now do stuff like this:\r\n\r\n```javascript\r\ngulp.task('compile2', ['clean'], function () {\r\n\treturn gulp.src('src/**/*.ts', { base: 'src' })\r\n\t\t.pipe(sourcemaps.init())\r\n\t\t.pipe(compilation())\r\n\t\t// pipe to other sourcemap changing things, like concat, uglify, etc\r\n\t\t.pipe(sourcemaps.write('.', { includeContent: true }))\r\n\t\t.pipe(gulp.dest('out'));\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/jrieken/gulp-tsb/issues/comments/139577491","html_url":"https://github.com/jrieken/gulp-tsb/pull/12#issuecomment-139577491","issue_url":"https://api.github.com/repos/jrieken/gulp-tsb/issues/12","id":139577491,"user":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T15:34:47Z","updated_at":"2015-09-11T15:34:47Z","body":":+1: "}}