Extending
A task can be used as a base template and extended. This is intended to reduce duplicate task definitions.
tasks:
install:
src:
- package.json
- package-lock.json
generates:
- node_modules
cmds:
- npm ci
build:
deps: [ install ]
src:
- tsconfig.json
- src
cmds:
- node_modules/.bin/tsc
generates:
- distExtend a task
Override properties in an extend
Last updated