zarro 1.94.0 → 1.94.1
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.
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
);
|
|
1
|
+
const
|
|
2
|
+
{ publish } = require("gulp-dotnet-cli"),
|
|
3
|
+
env = requireModule("env"),
|
|
4
|
+
gulp = requireModule("gulp");
|
|
5
|
+
|
|
6
|
+
gulp.task(
|
|
7
|
+
"dotnet-publish",
|
|
8
|
+
"Performs `dotnet publish` on all non-test projects in the tree",
|
|
9
|
+
() => {
|
|
10
|
+
const publishOpts = {
|
|
11
|
+
configuration: env.resolve("DOTNET_PUBLISH_BUILD_CONFIGURATION", "BUILD_CONFIGURATION"),
|
|
12
|
+
runtime: env.resolve("DOTNET_PUBLISH_RUNTIMES"),
|
|
13
|
+
output: env.resolve("OUTPUT"),
|
|
14
|
+
selfContained: env.resolve("DOTNET_PUBLISH_SELF_CONTAINED")
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const testInclusionsInverted = env.resolveArray("TEST_INCLUDE")
|
|
18
|
+
.map(p => `!${p}.csproj`)
|
|
19
|
+
return gulp
|
|
20
|
+
.src(["**/*.csproj"].concat(testInclusionsInverted))
|
|
21
|
+
.pipe(
|
|
22
|
+
publish(publishOpts)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
);
|
|
@@ -339,6 +339,12 @@ module.exports = function _env(env) {
|
|
|
339
339
|
default: "Release"
|
|
340
340
|
});
|
|
341
341
|
|
|
342
|
+
env.register({
|
|
343
|
+
name: "DOTNET_PUBLISH_SELF_CONTAINED",
|
|
344
|
+
help: "Whether to instruct dotnet to build published artifacts as self-contained",
|
|
345
|
+
default: true
|
|
346
|
+
});
|
|
347
|
+
|
|
342
348
|
env.register({
|
|
343
349
|
name: "NO_UNICODE",
|
|
344
350
|
help: "Prevent unicode output for status lines",
|