Skip to content
No description, website, or topics provided.
JavaScript TypeScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
assets
src
.gitignore
AngularConf2015_ng2.sln
LICENSE
README.md
TodoWebService.js
gulpfile.js
jsconfig.json
package.json
server.js
tsconfig.json
tsd.json
tslint.json

README.md

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

You can’t perform that action at this time.