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

Add support for 'require-dir' approach #43

Closed ISkomorokh closed 9 years ago

ISkomorokh commented 9 years ago

It would be nice if package could work with such a gulpfile.js:

// all gulp tasks are located in the ./build/tasks directory
// gulp configuration is in files in ./build directory
require('require-dir')('build/tasks');

require-dir

nicosantangelo commented 9 years ago

Hello!, sorry for the delay.

Can you give me a brief example of how the structure of your project looks?, and, if you can, any errors logged to sublime-gulp.log when this package runs.

I ask because there are is a similar issue open, #35 in which I have a working local version (take a look at this comment) and I can't seem to find the problem so it would be really helpful if you can give me some more info.

Please let me know so I can see if it's a new issue or, if it's the same, how can I fix it. Thanks!

ISkomorokh commented 9 years ago

Hi! Sorry for the delay. Was busy at work.

I'm starting to use Aurelia. The proposed structure can be seen here

Thank you

nicosantangelo commented 9 years ago

This should be working as of Version 5! (v5.0.0), the only caveat being is that if you use a gulpfile.js that only contains:

require('require-dir')('build/tasks');

The .sublime-gulp.cache will not be automatically regenerated if you make a change on any of your task files, you'll need to delete the cache (Gulp: Delete cache) before running Gulp again for it to change. But you also have the option of using Gulp: Run arbitrary task.

If you have any issues, please let me know ( @ mention me and I'll reopen this issue ).