sdkgen icon indicating copy to clipboard operation
sdkgen copied to clipboard

Add javascript targets

Open dygufa opened this issue 6 years ago • 7 comments

dygufa avatar Apr 01 '18 22:04 dygufa

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

lbguilherme avatar Apr 02 '18 09:04 lbguilherme

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.

vhfmag avatar Apr 02 '18 11:04 vhfmag

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

dygufa avatar Apr 02 '18 12:04 dygufa

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

vhfmag avatar Apr 02 '18 12:04 vhfmag

This would be a breaking change:

  • Target name change
  • Generating folder instead of a single file

How would we fix that?

dygufa avatar Apr 02 '18 13:04 dygufa

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?

vhfmag avatar Apr 02 '18 13:04 vhfmag

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

dygufa avatar Apr 02 '18 14:04 dygufa