Install our build dependencies

Install our build dependencies

First ensure TypeScript and Typings are installed globally.

npm install -g typescript typings

You obviously know about TypeScript, but you might not know about Typings. Typings is a package manager for grabbing definition files. We’ll now use Typings to grab declaration files for Knockout:

typings install --global --save dt~knockout

The --global flag will tell Typings to grab any declaration files from DefinitelyTyped, a repository of community-authored .d.ts files. This command will create a file called typings.json and a folder called typings in the current directory.

doc_TypeScript
2016-10-04 19:25:18
Comments
Leave a Comment

Please login to continue.