task-runner-explorer

Fresh npm install of webpack.js is throwing Block-scope error

爷,独闯天下 提交于 2020-01-02 01:17:24
问题 I'm new to Webpack, Visual Studio, and Task Runner, but these are what I have been told to install/use at work so I'm struggling through figuring out how to make it all work. I just used NPM to globally install a fresh copy of webpack and webpack-cli. I installed the Task Runner plugin to Visual Studio, and used the Run > Development option as provided. Mysteriously, mine is the only machine getting the following error and no one knows why: C:\Users\[me]\AppData\Roaming\npm\node_modules

Fails to run Gruntfile.js in Visual Studio 2015 Update 2

♀尐吖头ヾ 提交于 2019-12-25 09:40:42
问题 After upgrading to Visual Studio 2015 Update 2 I am unable to load my gruntfile.js. When I open "Task Runner Explorer" and try to refresh the gruntfile.js it writes the following in my output window: Failed to run "(PATH)\Gruntfile.js"... cmd.exe /c grunt -b "(PATH)" --gruntfile "(PATH)\Gruntfile.js" --tasks "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\TaskRunnerExplorer\Scripts" vs-grunt-task-reader Any ideas? 回答1: It looks like you deleted

Fails to run Gruntfile.js in Visual Studio 2015 Update 2

主宰稳场 提交于 2019-12-25 09:39:09
问题 After upgrading to Visual Studio 2015 Update 2 I am unable to load my gruntfile.js. When I open "Task Runner Explorer" and try to refresh the gruntfile.js it writes the following in my output window: Failed to run "(PATH)\Gruntfile.js"... cmd.exe /c grunt -b "(PATH)" --gruntfile "(PATH)\Gruntfile.js" --tasks "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\TaskRunnerExplorer\Scripts" vs-grunt-task-reader Any ideas? 回答1: It looks like you deleted

Call Visual Studio 2017 Task Runner from MSBuild?

做~自己de王妃 提交于 2019-12-24 07:57:46
问题 I am using the Bundler & Minifier VS2017 extension for JavaScript and CSS minification and MSBuild for other components of my ASP.NET 4.0 Web Forms solution. Using Task Runner, I created an "After Build" binding so the minification happens after MSBuild. This extension updates the bundle in real time when source file changes are saved so I would like the extension to do its work only when a Release build is created. I suppose there is no way to configure the binding so it only activates for a

Cancel Build if Task Runner Explorer Task Fails

╄→尐↘猪︶ㄣ 提交于 2019-12-09 05:18:20
问题 I am using visual studio task runner (2015) to run a Gulp task bound to before build. I have set it up so that when the gulp tasks fails it sends exit code 1 and at the end it says "Process terminated with code 1." however the build continues. This will cancel the build in team city so seems an issue linked Task Runner inside visual studio. How can I prevent the build from taking place if it exits with a code other than 0? 回答1: You are correct in that this seems to be a Task Runner issue. The

Fresh npm install of webpack.js is throwing Block-scope error

流过昼夜 提交于 2019-12-05 01:45:23
I'm new to Webpack, Visual Studio, and Task Runner, but these are what I have been told to install/use at work so I'm struggling through figuring out how to make it all work. I just used NPM to globally install a fresh copy of webpack and webpack-cli. I installed the Task Runner plugin to Visual Studio, and used the Run > Development option as provided. Mysteriously, mine is the only machine getting the following error and no one knows why: C:\Users\[me]\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:3 let webpackCliInstalled = false; ^^^ SyntaxError: Block-scoped declarations (let,

Cancel Build if Task Runner Explorer Task Fails

南笙酒味 提交于 2019-12-03 05:54:42
I am using visual studio task runner (2015) to run a Gulp task bound to before build. I have set it up so that when the gulp tasks fails it sends exit code 1 and at the end it says "Process terminated with code 1." however the build continues. This will cancel the build in team city so seems an issue linked Task Runner inside visual studio. How can I prevent the build from taking place if it exits with a code other than 0? davidmdem You are correct in that this seems to be a Task Runner issue. The task runner does not communicate with MSBuild to stop a build if a BeforeBuild task fails. To get

Task Runner Explorer can't load tasks

雨燕双飞 提交于 2019-11-27 17:07:25
I'm using VS2015 and Gulp. I open the Task Runner Explorer and hit refresh, and this shows up in the log: Failed to run "C:\Projects\Test\Gulpfile.js"... cmd.exe /c gulp --tasks-simple Error: `libsass` bindings not found in C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-11\binding.node. Try reinstalling `node-sass`? at Object.sass.getBinaryPath (C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\lib\extensions.js:148:11) at Object.<anonymous> (C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:16:36) at Module._compile

Gulp task failing when run from VS 2015 Task Runner explorer, but not from command prompt

梦想的初衷 提交于 2019-11-27 14:05:26
I have some Gulp tasks to do the typical clean , build , release actions for a website. Nothing particularly unusual in my mind. (In fact it's very similar to Aurelia TypeScript skeleton.) Most of the team does front-end development using Gulp from a PowerShell / Command prompt and editing with VS Code / Sublime. Some of the team does the same using Visual Studio 2015. Running the build task from the command prompt works just fine, but if we run it from Visual Studio's Task Runner Explorer, it gives us an error. However, running the other tasks (e.g. clean ) works just fine from both the

Task Runner Explorer can't load tasks

眉间皱痕 提交于 2019-11-26 18:54:29
问题 I'm using VS2015 and Gulp. I open the Task Runner Explorer and hit refresh, and this shows up in the log: Failed to run "C:\Projects\Test\Gulpfile.js"... cmd.exe /c gulp --tasks-simple Error: `libsass` bindings not found in C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-11\binding.node. Try reinstalling `node-sass`? at Object.sass.getBinaryPath (C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\lib\extensions.js:148:11) at Object.<anonymous> (C: