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. |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
Thank you, this is what i was looking for! I could not find something like this in the docs. |
Beta Was this translation helpful? Give feedback.
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 (
**
).