nickdodd79 / vscode-gulptasks

A gulp task visualization and execution extension for Visual Studio Code
MIT License
8 stars 6 forks source link

does not support separated gulp tasks #26

Closed kuntergunt closed 5 years ago

kuntergunt commented 6 years ago

I have split up my gulp tasks into multiple files in the ./gulp/tasks directory. The extension just says "no gulp files found". (see http://macr.ae/article/splitting-gulpfile-multiple-files.html )

The gulpfile.js itself at minimum just looks like this (can have additional stuff like default task, watch etc.): require('require-dir')('./gulp-tasks');

Is there a way to add support for this?

nickdodd79 commented 6 years ago

Hi @kuntergunt

In theory the file splitting should just work. The extension uses gulp --tasks-simple to get a list of tasks for given gulp file. It seems weird that gulp doesn't resolve the split out tasks when that is invoked, but does when a tasks is execute.

I will need to replicate the setup to see what is happening.

Nick.

nickdodd79 commented 6 years ago

Hey @kuntergunt

I finally found some time to look into this and don't seem to be able to replicate. When I split the tasks into separate files and use require('require-dir')('./tasks'); to bring them together in a gulp file, it works.

image

image

Looks like it is something in your local setup.

nickdodd79 commented 5 years ago

Closing due to no follow up.