zarro 1.147.0 → 1.149.0
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/modules/dotnet-cli.js +4 -4
- package/gulp-tasks/modules/env.js +4 -1
- package/gulp-tasks/modules/register-environment-variables.js +5 -5
- package/gulp-tasks/modules/resolve-nuget.js +1 -1
- package/gulp-tasks/modules/shim-nuget.js +2 -2
- package/gulp-tasks/modules/system.js +3 -3
- package/gulp-tasks/modules/test-dotnet-logic.js +7 -7
- package/gulp-tasks/start-dev-smtp-server.js +3 -3
- package/gulp-tasks/update-self.js +4 -4
- package/gulp-tasks/verify-up-to-date.js +3 -3
- package/package.json +1 -1
|
@@ -376,10 +376,10 @@
|
|
|
376
376
|
path: absoluteNuspecPath,
|
|
377
377
|
version: await readNuspecVersion(absoluteNuspecPath)
|
|
378
378
|
};
|
|
379
|
-
log.warn(`
|
|
380
|
-
WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
381
|
-
The version in '${copy.nuspec}' will be temporarily set to ${opts.versionSuffix} whilst
|
|
382
|
-
packing and reverted later.
|
|
379
|
+
log.warn(`
|
|
380
|
+
WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
381
|
+
The version in '${copy.nuspec}' will be temporarily set to ${opts.versionSuffix} whilst
|
|
382
|
+
packing and reverted later.
|
|
383
383
|
`.trim());
|
|
384
384
|
await updateNuspecVersion(absoluteNuspecPath, opts.versionSuffix);
|
|
385
385
|
// TODO: hook into "after dotnet run" to revert
|
|
@@ -386,7 +386,10 @@
|
|
|
386
386
|
const positiveFlags = ["yes", "true", "1"];
|
|
387
387
|
const negativeFlags = ["no", "false", "0"];
|
|
388
388
|
function resolveFlag(name, fallback) {
|
|
389
|
-
|
|
389
|
+
debugger;
|
|
390
|
+
const resolved = resolveInternal(name), value = resolved === undefined || resolved === ""
|
|
391
|
+
? undefined
|
|
392
|
+
: resolved.toLowerCase();
|
|
390
393
|
return resolveAsBoolean(name, value, fallback);
|
|
391
394
|
}
|
|
392
395
|
function resolveAsBoolean(name, value, fallback) {
|
|
@@ -146,8 +146,8 @@
|
|
|
146
146
|
default: "auto",
|
|
147
147
|
help: "process model for nunit-runner to use"
|
|
148
148
|
});
|
|
149
|
-
const extra = `
|
|
150
|
-
- globs match dotnet core projects or .net framework built assemblies
|
|
149
|
+
const extra = `
|
|
150
|
+
- globs match dotnet core projects or .net framework built assemblies
|
|
151
151
|
- elements surrounded with () are treated as pure gulp.src masks`, defaultTestInclude = "*.Tests,*.Tests.*,Tests,Test,Test.*", defaultTestExclude = `{!**/node_modules/**/*},{!./${getToolsFolder(env)}/**/*}`;
|
|
152
152
|
env.register({
|
|
153
153
|
name: "TEST_INCLUDE",
|
|
@@ -645,9 +645,9 @@
|
|
|
645
645
|
env.register({
|
|
646
646
|
name: "ZARRO_ALLOW_FILE_RESOLUTION",
|
|
647
647
|
default: "true",
|
|
648
|
-
help: `when enabled, the value provided by an environment variable may be the path
|
|
649
|
-
to a file to use for that configuration; for example MSBUILD_PROPERTIES=foo.json will
|
|
650
|
-
instruct Zarro to read the mapping in foo.json for extra msbuild properties to pass on
|
|
648
|
+
help: `when enabled, the value provided by an environment variable may be the path
|
|
649
|
+
to a file to use for that configuration; for example MSBUILD_PROPERTIES=foo.json will
|
|
650
|
+
instruct Zarro to read the mapping in foo.json for extra msbuild properties to pass on
|
|
651
651
|
where applicable.`
|
|
652
652
|
});
|
|
653
653
|
env.register({
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
throw new ZarroError("MONO is required to run nuget restore on this platform");
|
|
100
100
|
}
|
|
101
101
|
const baseFolder = findNpmBase();
|
|
102
|
-
const script = `#!/bin/sh
|
|
102
|
+
const script = `#!/bin/sh
|
|
103
103
|
mono ${path.resolve(nugetPath)} $@`;
|
|
104
104
|
const scriptPath = path.join(baseFolder, "node_modules", ".bin", "mono-nuget");
|
|
105
105
|
writeFileSync(scriptPath, script, { encoding: "utf-8" });
|
|
@@ -34,9 +34,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
34
34
|
const pre = isWindows
|
|
35
35
|
? "@echo off"
|
|
36
36
|
: "";
|
|
37
|
-
const tempFile = await createTempFile(`
|
|
38
|
-
${pre}
|
|
39
|
-
${tempFileContents}
|
|
37
|
+
const tempFile = await createTempFile(`
|
|
38
|
+
${pre}
|
|
39
|
+
${tempFileContents}
|
|
40
40
|
`.trim());
|
|
41
41
|
programArgs.splice(0, programArgs.length);
|
|
42
42
|
if (isWindows) {
|
|
@@ -236,13 +236,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
236
236
|
: ansiColors.yellowBright.bind(ansiColors);
|
|
237
237
|
logFailures(testResults, red);
|
|
238
238
|
logSlow(testResults, cyan);
|
|
239
|
-
console.log(yellow(`
|
|
240
|
-
Test Run Summary
|
|
241
|
-
Overall result: ${overallResultFor(testResults)}
|
|
242
|
-
Test Count: ${total}, Passed: ${testResults.passed}, Failed: ${testResults.failed}, Skipped: ${testResults.skipped}, Slow: ${testResults.slowSummary.length}
|
|
243
|
-
Start time: ${dateString(testResults.started)}
|
|
244
|
-
End time: ${dateString(now)}
|
|
245
|
-
Duration: ${runTime}
|
|
239
|
+
console.log(yellow(`
|
|
240
|
+
Test Run Summary
|
|
241
|
+
Overall result: ${overallResultFor(testResults)}
|
|
242
|
+
Test Count: ${total}, Passed: ${testResults.passed}, Failed: ${testResults.failed}, Skipped: ${testResults.skipped}, Slow: ${testResults.slowSummary.length}
|
|
243
|
+
Start time: ${dateString(testResults.started)}
|
|
244
|
+
End time: ${dateString(now)}
|
|
245
|
+
Duration: ${runTime}
|
|
246
246
|
`));
|
|
247
247
|
console.log("\n");
|
|
248
248
|
}
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
}
|
|
49
49
|
const url = generateInterfaceUrlFor(ip, port), { open } = requireModule("open");
|
|
50
50
|
await waitForUrlToBecomeAvailable(url);
|
|
51
|
-
logInfo(`
|
|
52
|
-
Opening the dev smtp interface in your browser (${url})
|
|
53
|
-
To disable this behavior, set env variable ${env.DEV_SMTP_OPEN_INTERFACE}=0
|
|
51
|
+
logInfo(`
|
|
52
|
+
Opening the dev smtp interface in your browser (${url})
|
|
53
|
+
To disable this behavior, set env variable ${env.DEV_SMTP_OPEN_INTERFACE}=0
|
|
54
54
|
`.trim());
|
|
55
55
|
await open(url);
|
|
56
56
|
}
|
|
@@ -55,10 +55,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
55
55
|
this.emit("end");
|
|
56
56
|
}
|
|
57
57
|
catch (err) {
|
|
58
|
-
console.error(chalk.redBright(`
|
|
59
|
-
==================================================
|
|
60
|
-
| WARNING: Unable to update zarro, error(s) follow |
|
|
61
|
-
==================================================
|
|
58
|
+
console.error(chalk.redBright(`
|
|
59
|
+
==================================================
|
|
60
|
+
| WARNING: Unable to update zarro, error(s) follow |
|
|
61
|
+
==================================================
|
|
62
62
|
`));
|
|
63
63
|
this.emit("error", err);
|
|
64
64
|
}
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
const e = ex;
|
|
44
44
|
const msg = e.message || e;
|
|
45
45
|
if (msg === "operation timed out") {
|
|
46
|
-
log.error(chalk.redBright(`fetch operation timed out:
|
|
47
|
-
- check that the current account can fetch from all remotes
|
|
48
|
-
- optionally disable fetch with SKIP_FETCH_ON_VERIFY=1
|
|
46
|
+
log.error(chalk.redBright(`fetch operation timed out:
|
|
47
|
+
- check that the current account can fetch from all remotes
|
|
48
|
+
- optionally disable fetch with SKIP_FETCH_ON_VERIFY=1
|
|
49
49
|
- optionally increase GIT_FETCH_TIMEOUT from current value: ${timeout}`));
|
|
50
50
|
}
|
|
51
51
|
}
|