Michael K. Snead
Part 2: Using Modern Tooling Today
Part One:
Part Two:
I hope to answer these questions...
I can't cover everything in depth, so be sure to send me questions or reach out to the community on yammer.
PresentationIntellisense.sln
MSDN Create JS Intellisense XML Comments
https://msdn.microsoft.com/en-us/library/bb514138.aspx
Visual Studio provides intellisense and go to definition for...
Decorating Fields in JavaScript XML Comments
https://msdn.microsoft.com/en-us/library/hh542725.aspx
Make sure to check your _references.js file if you aren't getting intellisense for a file you want.
/// <autosync enabled="true" />
/// <reference path="modernizr-2.6.2.js" />
/// <reference path="jquery-1.10.2.js" />
/// <reference path="bootstrap.js" />
/// <reference path="respond.js" />
/// <reference path="jquery.validate.js" />
/// <reference path="jquery.validate.unobtrusive.js" />
/// <reference path="app/widget.js" />
If autosync is enabled, new .js files will be added. You can also reference files directly within a file.
Out of the box, Web Essentials provides support for JSHint, a very good linter.
Teams often have their own rules and conventions. JSHint is configurable to be as strict or loose as you need.
Mads is working on two new plugins to provide features for VS2015 RTM.
Chutzpah provides JavaScript unit testing within Visual Studio alongside your C# unit tests with a complete DOM (webkit).
Chutzpah works with a number of scenarios and frameworks too.
If you use ReSharper, you can configure ReSharper to use PhantomJS and it should automatically pick up your unit tests.
If you don't install it, you may not even notice a gulp-enabled project and you can keep working just as you always have.
This plugin isn't necessary in VS2015.
One-Time
npm install -g gulp
node -v
npm -v
gulp -v
One-Time
If node, npm or gulp aren't accessible, try adding these to your path:
C:\Program Files\nodejs
C:\Users\<UserName>\AppData\Roaming\npm
Project Specific
LetsTalkJS2.sln