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.
This commit is contained in:
Erjan Gavalji
2016-03-16 17:55:30 +02:00
parent 12a82eb5bb
commit 3126c6b363
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -8,7 +8,6 @@
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noImplicitUseStrict": true,
"experimentalDecorators": true
},
@@ -711,4 +710,4 @@
"atom": {
"rewriteTsconfig": true
}
}
}