madskristensen / NpmTaskRunner

Visual Studio extension
Other
88 stars 32 forks source link

Task Runner Explorer in context menu #62

Open aslanovsergey opened 6 years ago

aslanovsergey commented 6 years ago

Installed product versions

Description

I don't see Task Runner Explorer in menu when I click on package.json

janpauldahlke commented 5 years ago

I was only able to make it work if the package.json is in the higest level of the project solution. one wishes that it could be also recognized from a structure like '~Scripts/react/appname/'.

cyraid commented 5 years ago

Mine's in the root folder (along with the njsproj) and it still doesn't pop up.. Edit: Luckily I was able to find the window in View->Other Windows->Task Runner Explorer .. Sorry I haven't used Visual Studio much lol

Luperco commented 5 years ago

I have the same problem. No Task Runner Explorer in menu when I click on package.json. It is in a subdirectory of ~Scripts.

My VS is in Italian.

Thanks

codingstill commented 4 years ago

I am having a similar case, my React files are in a sub-folder in my project, e.g. ~/assets/react/*. As a workaround, I created a new project and included all files in the ~/assets/react/*. That way, the task runner can see the scripts in package.json.

RolfVeinoeSorensen commented 4 years ago

Simple workaround is to add a package.json file to the root of the project and add something similar to this { "scripts": { "watch": "cd ClientApp && npm i && npm run watch" }, "-vs-binding": { "ProjectOpened": [ "watch" ] } }