nicosantangelo / sublime-gulp

Run Gulp tasks and use snippets from Sublime Text
https://sublime-gulp.nicosantangelo.com/
MIT License
155 stars 18 forks source link

Gulpfile not in any project folders behaves weird #84

Closed gilluminate closed 6 years ago

gilluminate commented 7 years ago

Sublime-Gulp assumes that the project folders are at the root of the project and therefor any/all contain gulpfiles. One of the things I like most about Sublime compared to other editors is that I can add arbitrary folders to a project, not just a root folder. That being the case, my Gulpfile.js is not in any of the folders I add to my project.

I can still get this package to work because you have provided a way to add a path to gulpfile using the gulpfile_paths setting. The only problem is, it looks at that path once per folder added to my project, so it ends up finding the same gulpfile multiple times and forces me to choose one, even though the are all the same file. Example screenshot

Ideally, in addition to the gulpfile_path option, you could provide a gulpfile_location option if there's only one gulpfile the user (me) cares to utilize regardless of how many folders are in a project.