just
just copied to clipboard
Task name is mising in logs
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.
Issue seems to have gone stale.
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.
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?