How to exclude some files from TypeScript build

If you are using TypeScript nightly (and only with TypeScript 1.6 up) you can use in your tsconfig.json new property exclude which will mostly be used for node_modules like this (more on this here : http://blogs.msdn.com/b/typescript/archive/2015/07/27/introducing-typescript-nightlies.aspx) : [javascript] { "compilerOptions": { "out": "../../built/local/tsc.js", "sourceMap": true…

JavaScript Visual Studio snippet for is object defined check

Since I write a lot of JavaScript currently in Visual Studio these days, I lack one of the very common checks in JavaScript and that is testing if object exists. I mean this check : [javascript] if (typeof (someObject) !== ‘undefined’) { someJSCodeHere(); } [/javascript] If you want to use…