zarro 1.180.2 → 1.180.4
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(function () {
|
|
3
|
+
const gulp = requireModule("gulp");
|
|
4
|
+
gulp.task("auto-release-nuget", async () => {
|
|
5
|
+
const env = requireModule("env"), log = requireModule("log"), { runTask } = requireModule("run-task"), Git = require("simple-git"), git = Git("."), branchInfo = await git.branch(), mainBranch = env.resolve(env.GIT_MAIN_BRANCH);
|
|
6
|
+
if (branchInfo.current !== mainBranch) {
|
|
7
|
+
log.info(`auto-releasing beta package: current branch is ${branchInfo.current} and main branch is ${mainBranch}`);
|
|
8
|
+
process.env["BETA"] = "1";
|
|
9
|
+
}
|
|
10
|
+
await runTask("release-nuget");
|
|
11
|
+
});
|
|
12
|
+
})();
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
quiet = !!quiet;
|
|
29
29
|
const
|
|
30
30
|
git = gitFactory(where),
|
|
31
|
-
more = where ? ` (${ where })` : "";
|
|
31
|
+
more = (where && where !== ".") ? ` (${ where })` : "";
|
|
32
32
|
if (dryRun) {
|
|
33
33
|
gutil.log(gutil.colors.green(`dry run: whould push local commits now${ more }...`));
|
|
34
34
|
return Promise.resolve();
|
|
@@ -530,6 +530,11 @@
|
|
|
530
530
|
help: "Flag: should package version be incremented before packing?",
|
|
531
531
|
default: "true"
|
|
532
532
|
});
|
|
533
|
+
env.register({
|
|
534
|
+
name: "PACK_INCREMENT_BETA_VERSION",
|
|
535
|
+
help: "Flag: should the package version be incremented for a BETA package before packing?",
|
|
536
|
+
default: "true"
|
|
537
|
+
});
|
|
533
538
|
env.register({
|
|
534
539
|
name: "PACK_SYNC_PROJECT_VERSION",
|
|
535
540
|
help: "Flag: should the project version be synchronised with the package version when packing?",
|
package/gulp-tasks/pack.js
CHANGED
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"PACK_VERSION"
|
|
20
20
|
], ["pack"]);
|
|
21
21
|
gulp.task("pack", "Creates nupkgs from all nuspec files in this repo", ["prepack"], () => {
|
|
22
|
-
const target = env.resolve("PACK_TARGET_FOLDER"), isDotnetCore = env.resolveFlag("DOTNET_CORE"),
|
|
22
|
+
const target = env.resolve("PACK_TARGET_FOLDER"), isDotnetCore = env.resolveFlag("DOTNET_CORE"), isBeta = env.resolveFlag("BETA"), incrementVersion = isBeta
|
|
23
|
+
? env.resolveFlag(env.PACK_INCREMENT_BETA_VERSION)
|
|
24
|
+
: env.resolveFlag(env.PACK_INCREMENT_VERSION), packerFn = isDotnetCore ? packWithDotnetCore : packWithNuget;
|
|
23
25
|
debug({
|
|
24
26
|
isDotnetCore,
|
|
25
27
|
incrementVersion
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -491,6 +491,7 @@ declare global {
|
|
|
491
491
|
"NO_COLOR" |
|
|
492
492
|
"NUGET_IGNORE_DUPLICATE_PACKAGES" |
|
|
493
493
|
"PACK_INCREMENT_VERSION" |
|
|
494
|
+
"PACK_INCREMENT_BETA_VERSION" |
|
|
494
495
|
"PACK_SYNC_PROJECT_VERSION" |
|
|
495
496
|
"PACK_INCLUDE_EMPTY_DIRECTORIES" |
|
|
496
497
|
"PACK_INCLUDE_SYMBOLS" |
|
|
@@ -673,6 +674,7 @@ declare global {
|
|
|
673
674
|
NO_COLOR: FlagEnvVar;
|
|
674
675
|
NUGET_IGNORE_DUPLICATE_PACKAGES: FlagEnvVar;
|
|
675
676
|
PACK_INCREMENT_VERSION: FlagEnvVar;
|
|
677
|
+
PACK_INCREMENT_BETA_VERSION: FlagEnvVar;
|
|
676
678
|
PACK_SYNC_PROJECT_VERSION: FlagEnvVar;
|
|
677
679
|
PACK_INCLUDE_EMPTY_DIRECTORIES: FlagEnvVar;
|
|
678
680
|
PACK_INCLUDE_SYMBOLS: FlagEnvVar;
|