Skip to content

AGiorgetti/AngularConf2015_ng2

Repository files navigation

AngularConf2015_ng2


Setup:

Install node: http://www.nodejs.org

Install gulp: npm install gulp -g

Install tsd: npm install tsd -g

from a console prompt:

npm install

tsd install

[tsd link does not seem to work anymore, cannot use the bundled .d.ts, I'll add them to the tsd.json file tsd link (to link Angular2 bundled .d.ts)]

(change Visual Studio Code settings, see below)

Compile

run 'node TodoWebService.js' to start the server.

browse to: http://localhost:3000/build/index.html


Visual Studio Code

if you want to use a local copy of the typescript compiler edit the file settings.json and specify the correct absolute path for "typescript.tsdk"

Tricks:

  • if you place a tsconfig.json file on the root VSCode will internally pick that and use it. This way any .ts and .d.ts will be read and compiled and there will be no need to add /// all around.
  • if you place a jsconfig.json file on the root VSCode will internally pick that and use it to provide some JavaScript goodies.

Update definitions:

tsd update -s -o tsd rebundle

ncu --upgradeAll npm install


Purge global caches:

tsd purge

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published