cubos / sdkgen

[ DEPRECATED, SEE https://github.com/sdkgen/sdkgen ] Tool that aims on solving client-server communication and data layout sharing between server, web, android and ios using a description language also called sdkgen.
MIT License
45 stars 9 forks source link

Add javascript targets #14

Open dygufa opened 6 years ago

lbguilherme commented 6 years ago

Generate .js and .d.ts instead of generating .ts? Or having both a .ts generator and a .js generator?

vhfmag commented 6 years ago

I guess we could generate both Javascript and TypeScript targets. As the js target would basically generate the ts target and transpile it, it should also help to improve the project architecture for reusability and be a step towards extensibility.

dygufa commented 6 years ago

I vote for generating a folder with .js + d.ts. In this case which would be the name of the target?

vhfmag commented 6 years ago

The same as the correspondent typescript targets, with typescript replaced by javascript?

dygufa commented 6 years ago

This would be a breaking change:

How would we fix that?

vhfmag commented 6 years ago

I don't see why the target name would change, given that the targets names are typescript-web, typescript-nodeclient, etc. What would keep us from just naming the new targets javascript-web and so on?

dygufa commented 6 years ago

If we choose to generate .js + d.ts files there's no point on generating .ts files, is there?