zarro 1.136.2 → 1.136.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.
@@ -49,7 +49,7 @@ function clean() {
49
49
 
50
50
  async function cleanWithDotnet() {
51
51
  const
52
- configuration = env.resolve("BUILD_CONFIGURATION"),
52
+ configuration = env.resolveArray("BUILD_CONFIGURATION"),
53
53
  slnMasks = resolveBuildSolutionMasks(),
54
54
  targets = env.resolveArray("BUILD_TARGETS");
55
55
  debug({
@@ -3,10 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  (function () {
4
4
  const spawn = requireModule("spawn");
5
5
  const { isSpawnError } = spawn;
6
+ const { yellow } = require("ansi-colors");
6
7
  const q = requireModule("quote-if-required");
7
8
  let defaultNugetSource;
9
+ function showHeader(label) {
10
+ console.log(yellow(label));
11
+ }
8
12
  async function clean(opts) {
9
- return runOnAllConfigurations(opts, configuration => {
13
+ return runOnAllConfigurations(`Cleaning`, opts, configuration => {
10
14
  const args = [
11
15
  "clean",
12
16
  q(opts.target)
@@ -20,7 +24,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
20
24
  });
21
25
  }
22
26
  async function build(opts) {
23
- return runOnAllConfigurations(opts, configuration => {
27
+ return runOnAllConfigurations("Building", opts, configuration => {
24
28
  const args = [
25
29
  "build",
26
30
  q(opts.target)
@@ -38,7 +42,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
42
  });
39
43
  }
40
44
  async function test(opts) {
41
- return runOnAllConfigurations(opts, configuration => {
45
+ return runOnAllConfigurations("Testing", opts, configuration => {
42
46
  const args = [
43
47
  "test",
44
48
  q(opts.target)
@@ -62,7 +66,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
62
66
  });
63
67
  }
64
68
  async function pack(opts) {
65
- return runOnAllConfigurations(opts, configuration => {
69
+ return runOnAllConfigurations("Packing", opts, configuration => {
66
70
  const copy = Object.assign(Object.assign({}, opts), { msbuildProperties: Object.assign({}, opts.msbuildProperties) });
67
71
  const args = [
68
72
  "pack",
@@ -111,7 +115,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
111
115
  pushFlag(args, opts.forceEnglishOutput, "--force-english-output");
112
116
  return runDotNetWith(args, opts);
113
117
  }
114
- async function runOnAllConfigurations(opts, toRun) {
118
+ async function runOnAllConfigurations(label, opts, toRun) {
115
119
  validate(opts);
116
120
  let configurations = resolveConfigurations(opts);
117
121
  if (configurations.length < 1) {
@@ -119,6 +123,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
119
123
  }
120
124
  let lastResult;
121
125
  for (const configuration of configurations) {
126
+ showHeader(`${label} ${q(opts.target)} with configuration ${configuration}`);
122
127
  const thisResult = await toRun(configuration);
123
128
  if (isSpawnError(thisResult)) {
124
129
  return thisResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.136.2",
3
+ "version": "1.136.4",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "./index.js"