zarro 1.191.0 → 1.191.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gulp-tasks/build.js
CHANGED
|
@@ -62,11 +62,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
62
62
|
configuration: configuration,
|
|
63
63
|
additionalArguments: msbuildArgs,
|
|
64
64
|
framework: env.resolve(env.BUILD_FRAMEWORK),
|
|
65
|
-
runtime: env.resolve(env.BUILD_RUNTIME)
|
|
65
|
+
runtime: env.resolve(env.BUILD_RUNTIME),
|
|
66
|
+
terminalLogger: sanitizeTerminalLogger(env.resolve(env.BUILD_MSBUILD_TERMINAL_LOGGER))
|
|
66
67
|
};
|
|
67
68
|
return promisifyStream(solutions
|
|
68
69
|
.pipe(build(options)));
|
|
69
70
|
}
|
|
71
|
+
function sanitizeTerminalLogger(value) {
|
|
72
|
+
value = `${value}`.toLowerCase();
|
|
73
|
+
if (value === "auto" || value === "off" || value === "on") {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return "off";
|
|
77
|
+
}
|
|
70
78
|
function buildForNETFramework(solutions) {
|
|
71
79
|
log.info(chalk.yellowBright("Building with MsBuild"));
|
|
72
80
|
return promisifyStream(buildAsStream(solutions));
|
|
@@ -661,6 +661,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
661
661
|
}
|
|
662
662
|
function pushCommonBuildArgs(args, opts, configuration) {
|
|
663
663
|
pushVerbosity(args, opts);
|
|
664
|
+
pushTerminalLogger(args, opts);
|
|
664
665
|
pushConfiguration(args, configuration);
|
|
665
666
|
pushFramework(args, opts);
|
|
666
667
|
pushRuntime(args, opts);
|
|
@@ -668,6 +669,15 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
668
669
|
pushOperatingSystem(args, opts);
|
|
669
670
|
pushOutput(args, opts);
|
|
670
671
|
}
|
|
672
|
+
function pushTerminalLogger(args, opts) {
|
|
673
|
+
if (!opts.terminalLogger) {
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
const raw = `${opts.terminalLogger}`.toLowerCase(), sanitized = (raw === "auto" || raw === "off" || raw === "on")
|
|
677
|
+
? raw
|
|
678
|
+
: "auto";
|
|
679
|
+
args.push(`--tl:${sanitized}`);
|
|
680
|
+
}
|
|
671
681
|
function pushOperatingSystem(args, opts) {
|
|
672
682
|
pushIfSet(args, opts.os, "--os");
|
|
673
683
|
}
|
|
@@ -38,10 +38,20 @@
|
|
|
38
38
|
});
|
|
39
39
|
env.register({
|
|
40
40
|
name: "BUILD_MSBUILD_NODE_REUSE",
|
|
41
|
-
default: "
|
|
41
|
+
default: "true",
|
|
42
42
|
help: [
|
|
43
43
|
"Whether or not to allow modern msbuild to reuse msbuild.exe nodes",
|
|
44
|
-
"WARNING: enabling node reuse may cause esoteric build errors on shared environments"
|
|
44
|
+
"WARNING: enabling node reuse may cause esoteric build errors on shared environments",
|
|
45
|
+
" it is recommended to disable this feature if you get strange build errors"
|
|
46
|
+
].join("\n")
|
|
47
|
+
});
|
|
48
|
+
env.register({
|
|
49
|
+
name: "DOTNET_TERMINAL_LOGGER",
|
|
50
|
+
default: "off",
|
|
51
|
+
help: [
|
|
52
|
+
"Specifies the value to send for --tl (terminal logger)",
|
|
53
|
+
"- dotnet's default is 'auto' which should do the right thing",
|
|
54
|
+
"- zarro will, by default, explicitly set this to 'off'"
|
|
45
55
|
].join("\n")
|
|
46
56
|
});
|
|
47
57
|
env.register({
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -473,6 +473,7 @@ declare global {
|
|
|
473
473
|
"DEV_SMTP_PORT" |
|
|
474
474
|
"DEV_SMTP_INTERFACE_PORT" |
|
|
475
475
|
"DOTNET_PARALLEL_STAGGER_MS" |
|
|
476
|
+
"DOTNET_TERMINAL_LOGGER" |
|
|
476
477
|
string;
|
|
477
478
|
|
|
478
479
|
type FlagEnvVar =
|
|
@@ -663,6 +664,7 @@ declare global {
|
|
|
663
664
|
PACKAGE_REGISTRY: StringEnvVar;
|
|
664
665
|
UPGRADE_PACKAGES: StringEnvVar;
|
|
665
666
|
UPGRADE_PACKAGES_TARGET: StringEnvVar;
|
|
667
|
+
DOTNET_TERMINAL_LOGGER: StringEnvVar;
|
|
666
668
|
|
|
667
669
|
ENABLE_NUGET_PARALLEL_PROCESSING: FlagEnvVar;
|
|
668
670
|
BUILD_SHOW_INFO: FlagEnvVar;
|
|
@@ -1471,6 +1473,7 @@ declare global {
|
|
|
1471
1473
|
|
|
1472
1474
|
type GulpDotNetCover = (opts?: GulpDotNetCoverOptions) => Transform;
|
|
1473
1475
|
|
|
1476
|
+
type TerminalLogger = "auto" | "off" | "on";
|
|
1474
1477
|
interface DotNetCommonBuildOptions
|
|
1475
1478
|
extends DotNetMsBuildOptions {
|
|
1476
1479
|
target: string;
|
|
@@ -1481,6 +1484,7 @@ declare global {
|
|
|
1481
1484
|
arch?: string;
|
|
1482
1485
|
os?: string;
|
|
1483
1486
|
disableBuildServers?: boolean;
|
|
1487
|
+
terminalLogger?: TerminalLogger;
|
|
1484
1488
|
}
|
|
1485
1489
|
|
|
1486
1490
|
interface DotNetPublishContainerOptions {
|