NpmTaskRunner | Visual Studio extension | Code Editor library
kandi X-RAY | NpmTaskRunner Summary
kandi X-RAY | NpmTaskRunner Summary
Visual Studio extension
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of NpmTaskRunner
NpmTaskRunner Key Features
NpmTaskRunner Examples and Code Snippets
Community Discussions
Trending Discussions on NpmTaskRunner
QUESTION
I have (freshly installed) Visual Studio Professional 2017 (V 15.9.4), a Visual Studio solution with with multiple projects, a single .sln
file and package.json
s of the projects in the respective project folders exampleCoorp.API
, exampleCoorp.UI
, etc. The frontend project is written in React, the others in C#.
When I navigate to View > Other Windows > Task Runner Explorer (originally devolved by Mads Kristens, see marketplace.visualstudio.com). Since we also have a React part, I have the extension NPM Task Runner installed as well.
I am expected something like the following (screenshot from my team mates whose project-setup instruction I followed):
However, the actual result for me looks different:
The error I have to understand comes from the shown Visual Studio panel:
No task runner configurations are found.
But why? And more importantly, how can I fix it? Is there a workaround?
There is only a single google-hit [developercommunity.visualstudio.com] which claims that the (only?) cause could be a misplaced package.json
file:
Both problems are caused by the fact that Visual Studio’s NPM integration does not support a package.json file that is in a subfolder instead of the project root. Microsoft’s own official Angular project template requires that the package.json be placed in the /ClientApp subfolder, which is not something that is going to change.
This is clearly not my issue here. Any help hint is appreciated!
...ANSWER
Answered 2019-Sep-04 at 08:22The Task Runner Explorer eventually works as it should after I performed the following steps (in no specific order):
I marked two of my sub-projects as startup project, one of which has a
package.json
in the the subfolder (which is essentially the root folder of that sub-project).I (re-)installed the NPM Task Runner and restarted Visual Studio afterwards.
My colleagues suggested also to reboot of the machine, but I am not sure that this was necessary.
QUESTION
My grunt sass task quits VS2017 task runner with throwing code "0" AND without generating any CSS file. I don't know where I go wrong. Thank you for your help.
Prerequisites:
- Task runner comes installed with Visual Stock 2017, no more extension needed.
I installed the NPM Task Runner extension for accessing the nodejs repository
Then I installed nodeJS for windows and Gruntjs as explained by Colin Bacon here
- I installed successfully Bootstrap v4 alpha via NuGet Visual Studio 2017 Packet Manager
PM Install-Package bootstrap.sass -Version 4.0.0-alpha6 -Pre
- Configured the gruntfile.js as in step 3, saved it in project root and edited the sass section as below.
Goal: I want to create a Grunt job, that creates a css file from the bootstrap sass source.
Problem: Grunt quits the sass-job with Code "0". No css file is generated in the "stylesheets" directory off project root.
Here is the relevant code snippet from the gruntfile.js:
...ANSWER
Answered 2017-Aug-03 at 07:37It turns out that all the steps were correct.
The problem was that the folder view in VS2017 did not get updated automatically. I restarted VS2017 and all the files showed up in the stylesheet folder.
So, when you have a destination folder that is empty, then after running the grunt task make sure to right click on the destination folder and hit "refresh folder" or "update folder" or something like that (I use VS in my native language and there it says "Ordner aktualisieren").
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install NpmTaskRunner
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page