Dependencies
A task can require dependant tasks that will get executed first (if not cached).
Every task can have list of dependencies. Those will be executed before and if any of them fails abort the all pending tasks. Dependencies can be chained as deep as needed, as long as there is no loop.
tasks:
install:
cmds:
- npm install
build:
deps: [install]
cmds:
- tsc -b
publish:
deps: [build]
cmds:
- npm publish
Last updated
Was this helpful?