Using gulp with Visual Studio 2015

by DotNetNerd 22. September 2015 10:49

Lately I have been using gulp with the new Visual Studio 2015 integration, which I really like. With so much good tooling in place, I think it is the right step for Visual Studio to embrace it. The one thing that is cumbersome about the experience currently is the setup required to get up and running. So, hopefully I can save others from a bit of trial and error with these ourlined steps.

Install node (www.nodejs.org)
Open cmd and go to the root of you site
Run npm init
Include the new packages.json in the webproject
Run npm install gulp --save-dev
Add gulpfile.js to root of web project containing

var gulp = require('gulp');
gulp.task('default', [], function () { });

Now the basics are running, so you can go ahead and npm install <awesome-stuff> –save-dev and require to your hearts content.

Who am I?

My name is Christian Holm Diget, and I work as an independent consultant, in Denmark, where I write code, give advice on architecture and help with training. On the side I get to do a bit of speaking and help with miscellaneous community events.

Some of my primary focus areas are code quality, programming languages and using new technologies to provide value.

Microsoft Certified Professional Developer

Microsoft Most Valuable Professional

Month List

bedava tv izle