db-migrate / plugin-typescript

A typescript plugin for db-migrate.
MIT License
7 stars 11 forks source link

What is the purpose of this plugin? #14

Open rhyek opened 4 years ago

rhyek commented 4 years ago

My understanding of it is: migrations are still created as javacript files, it doesn't offer any typescript definitions, and all it does is enable the cli to parse typescript itself.

So then I need to create my own ts migration file or rename a javascript one and use any everywhere? What is the point in that?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/89153244-what-is-the-purpose-of-this-plugin?utm_campaign=plugin&utm_content=tracker%2F45756452&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F45756452&utm_medium=issues&utm_source=github).
tobiaskraus commented 4 years ago

I had exactly the same question in my mind.

wzrdtales commented 4 years ago

Well, instead of asking such things, try to add something meaningful to it and push out some pull requests to make it more useful for you. I don't use typescript at all, so this is not a priority feature for me.

This was of value for @RemyJeancolas who probably just needed the capbility to parse ts files, which is totally fine seeing no problem there. This is the same addition as using coffeescript. It is not like I care about it, but there are people favoring it over the pure native javascript.