Posts

Showing posts with the label TypeScript

Prerequisites To Build SharePoint Solutions With Typescript

Image
TypeScript was developed and introduced by Microsoft. TypeScript is object oriented programming language which is considered as a super set of JavaScript. TypeScript cannot be used directly on SharePoint platforms. TypeScript code has to be precompiled to JavaScript before deploying it on SharePoint. TypeScript has compiler (tsc) to compile the code from TS to JS. The compiler produces a JavaScript file from a TypeScript source file We can install TypeScript for Visual Studio from Microsoft site (https://www.microsoft.com/en-us/download/details.aspx?id=48593). For other versions of Visual Studio, the download links are available from http://www.typescriptlang.org/index.html#download-links. Create a new SharePoint 2016 - Empty project (or SharePoint 2013). Fill in the site URL and select "Deploy as sandbox solution" option.   On Visual Studio, navigate to Tools -> NuGet Package Manager -> Manage NuGet Packages for solution. Install the Type