8

I have opened my work-space in Visual Studio Code and I have setup gulp tasks. Now I am running gulp tasks in CMD windows. Have do I run gulp tasks directly from VS Code?

Say I have gulp tasks for

  1. Test
  2. Serve
  3. Build
asked Apr 30, 2016 at 18:21
1
  • How exactly do you run the tasks from CMD? I can't get it to work - neither in VS Code nor in PowerShell... What do you type precisely to execute a task? I have gulp installed both locally and globally. Commented Nov 16, 2016 at 8:40

1 Answer 1

9

Normally VS code auto detect gulp task.

As you can see in this doc

Pressing F1 and then typing Run Task followed by Enter will list all available tasks. Selecting one and pressing Enter will execute the task.

hope this helps

answered Apr 30, 2016 at 22:52
Sign up to request clarification or add additional context in comments.

3 Comments

I'm doing what you mentioned but in my version (1.7.1) there's no Gulp tasks being listed at all. The gulpfile.js looks like this and is placed in the root, as just as described in the question. I have gulp installed both locally and globally. What can I be doing wrong? How can I troubleshoot it? I.e. how do I verify that I can run the tasks from PowerShell directly? Etc...
I'm running into the same issue. I have gulp installed via npm, deleted the tasks.json file, and when I press F1 to run task, VSCode does not detect Gulp. Has anyone ran into this issue?
It seems "it should just show up" is the extent of the support we're going to get

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.