Repository navigation
How to do recursive sources? #1017
|
I have been using task as the build system for a project, and i want to create a task that depends on multiple directories and all the files in them. However, listing all the directories requires a lot of work. Another issue with this approach is that if new directories are added and i do not update the task sources, then incorrect builds may happen. In make, i would do something like this. |
Answered by
andreynering
Feb 23, 2023
Replies: 2 comments
|
Hi @GandelXIV, Can you explain a bit more what you have in mind? It's already possible to define multiple sources and having full directories as sources using double star ( version: '2'
tasks:
default:
sources:
- src/**/*.js
- foo/bar/**/*.rb |
0 replies
Answer selected by
GandelXIV
|
Thank you, this is what i was looking for! I could not find something like this in the docs. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @GandelXIV,
Can you explain a bit more what you have in mind?
It's already possible to define multiple sources and having full directories as sources using double star (
**).