From 3126c6b363a20c1ddd6ca022abf67bcb7ff3c315 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Wed, 16 Mar 2016 17:55:30 +0200 Subject: [PATCH] Fix the leave comments option of the build The grunt file respected the --leavecomments option, used when generating the How-To articles of the API Reference. This was broken with the passthrough option to grunt-ts. --- gruntfile.js | 3 ++- tsconfig.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 5e10601f1..b72c15641 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -180,7 +180,8 @@ module.exports = function(grunt) { tsOptions.compiler = "node_modules/typescript/bin/tsc"; tsOptions.failOnTypeErrors = true; tsOptions.outDir = localCfg.outModulesDir; - tsOptions.additionalFlags = "--outDir " + localCfg.outModulesDir; + var removeCommentsArgument = tsOptions.removeComments ? " --removeComments" : ""; + tsOptions.additionalFlags = "--outDir " + localCfg.outModulesDir + removeCommentsArgument; grunt.initConfig({ localCfg : localCfg, diff --git a/tsconfig.json b/tsconfig.json index 65d6a45e4..ef362af3d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,6 @@ "module": "commonjs", "declaration": false, "noImplicitAny": false, - "removeComments": true, "noImplicitUseStrict": true, "experimentalDecorators": true }, @@ -711,4 +710,4 @@ "atom": { "rewriteTsconfig": true } -} \ No newline at end of file +}