Take a look at Semantic-UI's tasks folder: they have a build.js main task, that requires all the individual partial builders from the build directory, both are located at the same path.
I'm building something similar, but in a cleaner why with the help of this library. The problem is that since both objects have the same basename only the directory gets processed, hence the build.js file never gets loaded.
A possibile solution to this problem would be to overwrite the previously defined key of the returned hash, I think that processing all the files is more important. In my case none of the files located in the build directory is even actually exporting anything.
Take a look at Semantic-UI's tasks folder: they have a
build.js
main task, that requires all the individual partial builders from thebuild
directory, both are located at the same path.I'm building something similar, but in a cleaner why with the help of this library. The problem is that since both objects have the same basename only the directory gets processed, hence the
build.js
file never gets loaded.A possibile solution to this problem would be to overwrite the previously defined key of the returned hash, I think that processing all the files is more important. In my case none of the files located in the
build
directory is even actually exporting anything.