Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/vite_task/src/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ impl ExecutionPlan {

// Execute or replay the task
let exit_status = execute_or_replay.await?;

// FIXME: Print a new line to separate the tasks output, need a better solution
println!();
Ok(ExecutionStatus {
execution_id,
Expand Down
5 changes: 5 additions & 0 deletions packages/cli/snap-tests/task-no-trailing-newline/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"scripts": {
"hello": "echo -n foo && echo bar"
}
}
22 changes: 22 additions & 0 deletions packages/cli/snap-tests/task-no-trailing-newline/snap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
> vite run hello
$ echo -n foo
foo
$ echo bar
bar


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Vite+ Task Runner • Execution Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 2 tasks • 0 cache hits • 2 cache misses
Performance: 0% cache hit rate

Task Details:
────────────────────────────────────────────────
[1] hello(subcommand 0): $ echo -n foo ✓
→ Cache miss: no previous cache entry found
·······················································
[2] hello: $ echo bar ✓
→ Cache miss: no previous cache entry found
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
8 changes: 8 additions & 0 deletions packages/cli/snap-tests/task-no-trailing-newline/steps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
"commands": [
"vite run hello"
]
}
Loading