Can I create a task can run another tasks? #1461
Answered
by
milesj
harrytran998
asked this question in
Q&A
-
In our cases, we have 4 types of linting: lint overview with @biomejs, lint circular, lint type-check, and lint useless files/func with KNIP. So how can I create a task with the name: When I read the docs, the config file task.yml only had an option to extend, but it's extended only a task. https://moonrepo.dev/docs/config/project#extends |
Beta Was this translation helpful? Give feedback.
Answered by
milesj
May 9, 2024
Replies: 1 comment
-
@harrytran998 You would create separates tasks for each, then create another task that depends on them all. tasks:
lint-biome:
# ...
lint-circular:
# ...
lint-typecheck:
# ...
lint-useless:
# ...
lint:
command: noop
deps:
- lint-biome
- lint-circular
- lint-typecheck
- lint-useless |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
milesj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@harrytran998 You would create separates tasks for each, then create another task that depends on them all.