just icon indicating copy to clipboard operation
just copied to clipboard

Task name is mising in logs

Open chyzwar opened this issue 4 years ago • 3 comments

According to documentation, task name should be visible in the output. https://microsoft.github.io/just/docs/logging

const { task, tscTask, parallel } = require("just-scripts");
const { exec } = require("just-scripts-utils");

task("hello", async() => {
  return exec("echo 'hello'", {
    stderr: process.stderr,
    stdout: process.stdout
  });
});


task("build", tscTask({build: true, watch: true}));
task("start", parallel("build", "hello"));

When running npx just start

13:47:26] ■ started 'start'
[13:47:26] ■ started 'build'
[13:47:26] ■ started 'hello'
[13:47:26] ■ Running /home/raziel/EmailProject/node_modules/typescript/lib/tsc.js with /home/raziel/EmailProject/tsconfig.json
[13:47:26] ■ Executing: "/home/raziel/.nodenv/versions/12.16.0/bin/node" "/home/raziel/EmailProject/node_modules/typescript/lib/tsc.js" --build "/home/raziel/EmailProject/tsconfig.json" --watch
hello
[13:47:26] ■ finished 'hello' in 0.04s

For my use case, name of the task in output is the most important feature.

chyzwar avatar Mar 07 '20 13:03 chyzwar

Issue seems to have gone stale.

github-actions[bot] avatar Mar 29 '20 00:03 github-actions[bot]

Not really. Either docs are wrong or there is a bug. It does not matter for me as I implemented limited version of just for myself.

chyzwar avatar Mar 29 '20 16:03 chyzwar

Reopened, sorry. I think the documentation is out of date--I haven't seen output like that recently. @kenotron what do you think--was this a feature you had at some point but removed?

ecraig12345 avatar Apr 06 '20 16:04 ecraig12345