NOTE: This generator is designed to work only on Mac OS X or Linux. To work on Windows, a number of issues will need to be addressed, including differences in file paths.
Install Yeoman.
npm install -g yo
Install the tonysneed-vscode-typescript generator.
npm install -g generator-tonysneed-vscode-typescript
Create a directory for your new TypeScript project.
cd
into the directory you just created.mkdir MyCoolTypeScriptProject
cd MyCoolTypeScriptProject
Use the tonysneed-vscode-typescript generator.
tonysneed-vscode-typescript
Yeoman generator.--help
parameter.--skip-install
parameter.~/source/MyCoolTypeScriptProject $ yo tonysneed-vscode-typescript
_-----_
| | .--------------------------.
|--(o)--| | Welcome to Tony Sneed's |
`---------´ | Visual Studio Code |
( _´U`_ ) | TypeScript generator! |
/___A___\ '--------------------------'
| ~ |
__'.___.'__
´ ` |° ´ Y `
? Application Name (my-cool-type-script-project)
Open the TypeScript project in Visual Studio Code.
code .
Compile TypeScript files.
.js
files in it.Run tests.
Debug tests.
greeter.spec.ts
, then press Cmd+D
to view debugging options.greeter.greet()
.