typescript-railsを使おうとしたら案外詰まったので書いとく
# Gemfile
gem "typescript-rails"
bundle
うごかねぇぇぇぇぇぇぇぇえええええええ
typescript-node requires node command, but it's not found. Please install it. Set TS_NODE environmental variable If you want to use node command in non-standard path.
node入れろってさ。
いや入ってるんだけど。うごかねぇ。
.bash_profileでパス通したら動いた。
で、Phaser使うにはどうしたら良いの?
git clone https://github.com/photonstorm/phaser
中のbuild/phaser.d.tsとbuild/phaser.jsをassets/javasctipt以下に移動して
# application.js.ts
///<reference path="phaser.d.ts"/>
//= require phaser
で動いた。