-
Run command: ** npm install** : This will install TSD Package Manager for Typescript and typescript compiler.
-
We can globally install TSD using following command: npm install tsd -g
-
We can globally install TypeScript Compiler using following command:npm install -g typescript@^1.5.0-beta
-
Initialize the tsd.json file using following command: tsd init
-
Install Angular2 type definition file using following command: tsd query angular2 --action install
-
create tsconfig.json and copy the following content to it.
{ "compilerOptions": { "emitDecoratorMetadata": true, "module": "commonjs", "target": "es5", "sourceMap": true, "outDir":"build" }, "files": [ "dev/app.ts", "typings/tsd.d.ts" ] }
-
Add the TSD watcher start command **tsc -w **in package.json file.The updated package.json file is listed as follows.
{ "name": "Angular2TypeScriptConfDemo", "version": "0.0.1", "description": "Angular2 configuration using tsdconfig.json file", "main": "index.js", "scripts": { "build": "tsc -w" }, "repository": { "type": "git", "url": "git" }, "author": "Sandeep", "license": "ISC", "devDependencies": { "tsd": "^0.6.0", "typescript": "^1.5.0-beta" } }
-
Now Run the following command to get started with watcher: npm run build
saan1984/Angular2TypeScriptConfDemo
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Angular2TypeScriptConfDemo
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published