{"action":"closed","issue":{"url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/226","labels_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/226/comments","events_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/226/events","html_url":"https://github.com/TypeStrong/grunt-ts/issues/226","id":65553685,"number":226,"title":"html2ts does not pass tslint + possible fix","user":{"login":"BerndWessels","id":1776695,"avatar_url":"https://avatars.githubusercontent.com/u/1776695?v=3","gravatar_id":"","url":"https://api.github.com/users/BerndWessels","html_url":"https://github.com/BerndWessels","followers_url":"https://api.github.com/users/BerndWessels/followers","following_url":"https://api.github.com/users/BerndWessels/following{/other_user}","gists_url":"https://api.github.com/users/BerndWessels/gists{/gist_id}","starred_url":"https://api.github.com/users/BerndWessels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BerndWessels/subscriptions","organizations_url":"https://api.github.com/users/BerndWessels/orgs","repos_url":"https://api.github.com/users/BerndWessels/repos","events_url":"https://api.github.com/users/BerndWessels/events{/privacy}","received_events_url":"https://api.github.com/users/BerndWessels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-31T21:44:05Z","updated_at":"2015-05-07T01:45:18Z","closed_at":"2015-05-07T01:45:18Z","body":"Hi\r\nThe current output from html to ts files is not clean and does not pass tslint.\r\n\r\nCan you please change html2ts line 29 to\r\n\r\n    var htmlTemplate = _.template(\r\n        '/* tslint:disable:max-line-length */\\n' +\r\n        'module <%= modulename %> {\\n' +\r\n        '\\'use strict\\';\\n' +\r\n        '  export var <%= varname %>: string = \\'<%= content %>\\';\\n' +\r\n        '}\\n');\r\n\r\nand line 47 to\r\n\r\n    htmlContent = stripBOM(htmlContent);\r\n    // remove newline / carriage return\r\n    htmlContent.replace(/\\n/g, \"\");\r\n    // remove whitespace (space and tabs) before tags\r\n    htmlContent.replace(/[\\t ]+</g, \"<\");\r\n    // remove whitespace between tags\r\n    htmlContent.replace(/>[\\t ]+</g, \"><\");\r\n    // remove whitespace after tags\r\n    htmlContent.replace(/>[\\t ]+$/g, \">\");\r\n    // TODO: place a minification pipeline here if you want.\r\n\r\nThank you\r\nBernd"}}