zarro 1.106.2 → 1.106.3

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,5 +1,5 @@
1
1
  const
2
- { rm, ls, FsEntities } = require("yafs"),
2
+ { rm, ls, FsEntities, readTextFile } = require("yafs"),
3
3
  seed = requireModule("seed"),
4
4
  gulp = requireModule("gulp"),
5
5
  log = requireModule("log"),
@@ -227,6 +227,40 @@ async function testAsDotnetCore(configuration, testProjects) {
227
227
  }
228
228
  }
229
229
 
230
+ async function resolveConsoleLoggerFor(csproj) {
231
+ const
232
+ contents = await readTextFile(csproj),
233
+ lines = contents.split("\n").map(l => l.trim());
234
+ for (const line of lines) {
235
+ if (line.match(/<PackageReference Include="Quackers.TestLogger"/)) {
236
+ return generateQuackersLoggerConfig();
237
+ }
238
+ }
239
+ return {
240
+ console: {
241
+ verbosity: env.resolve("TEST_VERBOSITY")
242
+ }
243
+ }
244
+ }
245
+
246
+ const quackersStart = /^QUACKERS_/;
247
+
248
+ function generateQuackersLoggerConfig() {
249
+ const quackers = {
250
+ };
251
+ for (const envVar of Object.keys(process.env)) {
252
+ if (!envVar.match(quackersStart)) {
253
+ continue;
254
+ }
255
+ const prop = envVar.replace(quackersStart, "").toLowerCase();
256
+ quackers[prop] = process.env[envVar];
257
+ }
258
+ return {
259
+ quackers
260
+ };
261
+ }
262
+
263
+
230
264
  function isDistinctFile(filePath, seenFiles) {
231
265
  const basename = path.basename(filePath),
232
266
  result = seenFiles.indexOf(basename) === -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.106.2",
3
+ "version": "1.106.3",
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"