3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

railsでtypescriptとPhaser使うにはnodeが必要なのね

Last updated at Posted at 2014-11-30

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

で動いた。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?