Skip to content
Discussion options

You must be logged in to vote

@lttr You can implement concurrent execution of multiple scripts through the dependsOn capability of vp tasks. For example, this demo https://github.com/why-reproductions-are-required/vp-run-parallel-depends-on-demo/blob/main/vite.config.ts#L20 - running the vp run verify command will first concurrently execute the 3 scripts task1/2/3.

$ vp run verify
VITE+ - The Unified Toolchain for the Web

$ echo 'task1 start' ⊘ cache disabled
task1 start

$ sleep 1 ⊘ cache disabled
$ echo 'task3 start' ⊘ cache disabled
task3 start

$ sleep 1 ⊘ cache disabled
$ echo 'task2 start' ⊘ cache disabled
task2 start

$ sleep 1 ⊘ cache disabled

$ echo 'task1 done' ⊘ cache disabled
task1 done


$ echo 'task3 done

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lttr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants