abc
バージョン確認
node -v v10.16.0 npm -v 6.9.0
typescriptのコンフィグファイル作成
tsc --init
npm開始
npm init
typescript実験用にhello.ts作成
console.log("hello")
トランスパイル
tsc
試しに実行してみる。
node hello.js
jsの吐き出し先をdistフォルダに変更する。tsconfigで
"outDir": "./dist", /* Redirect output structure to the directory. */
のように設定しておく。