[Gradle, JS] Update evaluate reporting
#KT-32721 fixed
This commit is contained in:
+7
-6
@@ -131,11 +131,12 @@ data class KotlinWebpackConfig(
|
|||||||
appendln(
|
appendln(
|
||||||
"""
|
"""
|
||||||
// save evaluated config file
|
// save evaluated config file
|
||||||
var util = require('util');
|
;(function(config) {
|
||||||
var fs = require("fs");
|
const util = require('util');
|
||||||
var evaluatedConfig = util.inspect(config, {showHidden: false, depth: null, compact: false});
|
const fs = require('fs');
|
||||||
fs.writeFile($filePath, evaluatedConfig, function (err) {});
|
const evaluatedConfig = util.inspect(config, {showHidden: false, depth: null, compact: false});
|
||||||
|
fs.writeFile($filePath, evaluatedConfig, function (err) {});
|
||||||
|
})(config);
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -257,7 +258,7 @@ data class KotlinWebpackConfig(
|
|||||||
;(function(config) {
|
;(function(config) {
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const handler = (percentage, message, ...args) => {
|
const handler = (percentage, message, ...args) => {
|
||||||
let p = percentage * 100;
|
const p = percentage * 100;
|
||||||
let msg = `${"$"}{Math.trunc(p / 10)}${"$"}{Math.trunc(p % 10)}% ${"$"}{message} ${"$"}{args.join(' ')}`;
|
let msg = `${"$"}{Math.trunc(p / 10)}${"$"}{Math.trunc(p % 10)}% ${"$"}{message} ${"$"}{args.join(' ')}`;
|
||||||
${if (progressReporterPathFilter == null) "" else """
|
${if (progressReporterPathFilter == null) "" else """
|
||||||
msg = msg.replace(new RegExp(${progressReporterPathFilter.jsQuoted()}, 'g'), '');
|
msg = msg.replace(new RegExp(${progressReporterPathFilter.jsQuoted()}, 'g'), '');
|
||||||
|
|||||||
Reference in New Issue
Block a user