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
- Test
- Serve
- Build
asked Apr 30, 2016 at 18:21
Purushoth
2,8133 gold badges24 silver badges38 bronze badges
-
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.Konrad Viltersten– Konrad Viltersten2016年11月16日 08:40:43 +00:00Commented Nov 16, 2016 at 8:40
1 Answer 1
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
Sign up to request clarification or add additional context in comments.
3 Comments
Konrad Viltersten
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...
klewis
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?
Jacob Stamm
It seems "it should just show up" is the extent of the support we're going to get
lang-js