Rodhos Soft

備忘録を兼ねた技術的なメモです。Rofhos SoftではiOSアプリ開発を中心としてAndroid, Webサービス等の開発を承っております。まずはご相談下さい。

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. */

のように設定しておく。