Typescript support?
badoet opened this issue · 3 comments
badoet commented
is it possible to use typescript for hanami?
i notice tilt support it.
davydovanton commented
hey. You can use hanami-webpack with typescript :)
cllns commented
If tilt
supports it, you should be able to use it with hanami-assets
(even without webpack).
Can you try it? Add gem 'typescript-node'
to your gemfile, and it should work :)
jodosha commented
@badoet Hi. We use tilt
as rendering abstraction for assets. All the engines supported by tilt
are supported by us, as consequence of this architecture.
Since tilt
2.0.8
, they support natively TypeScript: https://github.com/rtomayko/tilt/blob/master/CHANGELOG.md#208-2017-07-24. Please run bundle update tilt
and then you should be able to compile .ts
and .tsx
assets.