ArpNetworking / sbt-typescript

A plugin for SBT that uses sbt-web to compile typescript resources.
Apache License 2.0
60 stars 26 forks source link

Installation feels a bit unclear. #52

Closed lenis0012 closed 7 years ago

lenis0012 commented 8 years ago

So, after reading the README documentation, i'm a bit cvonfused as to how to install this plugin properly.

From what i understand, you add the plugin to plugins.sbt, add SbtWeb to your build.sbt, and you put a tsconfig.json in your assets folder.

After doing this and playing around with the assets, it seems to compile them into a sub directory of assets, which then shows up in your public directory.

What i don't understand, is why it still keeps the .ts file, even in /public I excpected was for it to compile all my .ts files down into my specified web.js, which i then import in the HTML.

I feel like i am doing something wrong here.

wassertim commented 8 years ago

Sorry for the confusion in the README. The sbt-typescript copies the .ts files to the public folder in order they can be reached with source mapping. Feel free to change the documentation and create a pull request.

BrandonArp commented 7 years ago

Updated in #58.