Currently, I am diving into AngularJS2 through a book from 2015 called ng-book2
. However, the node package it relies on, tsc
, for transpiling TypeScript to JavaScript on the go has been discontinued and deprecated:
npm WARN deprecated [email protected]: TSD is no longer supported, suggesting to use Typings instead (https://github.com/typings/typings) - visit https://github.com/DefinitelyTyped/tsd/issues/269 for further details
. While I have come across other methods in various tutorials, I am curious if there is a general agreement on the most effective way to transpile on a development machine?
Here's the package.json that I'm utilizing:
{
"name": "ng-book2-reddit",
"version": "1.0.0",
"private": true,
"scripts": {
"clean": "rm -f ./*.js; rm -f ./*.js.map; rm -f ./intermediates/*.js; rm -f ./intermediates/*.js.map",
"tsc": "./node_modules/.bin/tsc",
"tsc:w": "./node_modules/.bin/tsc -w",
"serve": "./node_modules/.bin/live-server --host=localhost --port=8080 .",
"go": "concurrent \"npm run tsc:w\" \"npm run serve\" "
},
"license": "ISC",
"dependencies": {
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/http": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/router": "2.0.0-rc.1",
"core-js": "2.2.2",
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "^0.19.6",
"ts-helpers": "1.1.1",
"tslint": "3.7.0-dev.2",
"typescript": "1.9.0-dev.20160409",
"typings": "^0.8.1",
"zone.js": "0.6.12"
},
"devDependencies": {
"concurrently": "1.0.0",
"live-server": "0.9.0",
"typescript": "1.7.3"
}
}