cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 158 forks source link

Vue.JS typescript #511

Closed pascalheraud closed 5 years ago

pascalheraud commented 5 years ago

Hello,

I'd like to generate a vue.js candy. I started from ts defintions : https://cdn.jsdelivr.net/npm/vue@2.5.21/types/ I got numerous syntax errors from the index.d.ts file (see below)

What is the syntax the TypeScript generator handle ? It seems to be completely different from the last TypeScript version ?

========================================================== $ java -jar target/candy-tool.jar generate-sources --name=vuejs --tsFiles=typings/globals/vuejs/index.d.ts -o ../candies/candy-vuejs/src/main/java/ 2018-12-14 12:56:08.008 INFO GenerateSourcesTool:67 - JSweet candy scaffold tool - version: 2.0.0 2018-12-14 12:56:08.008 INFO GenerateSourcesTool:102 - scaffolding candy:

pascalheraud commented 5 years ago

I didn't succeed using provided typescript. The API is so simple that I wrote a candy from scratch.

We can share it with the community. https://github.com/LaRoueVerte/candy-vuejs

lgrignon commented 5 years ago

Hello, Wonderful! I am sorry we didn't reply earlier. Thank you for solving this problem on your own.

It would be great, indeed, to share with the community. If I am correct, you already have jsweet-candies authorizations?

pascalheraud commented 5 years ago

Hello, Yes, I'm part of jsweet-candies so I can transfer the repository.

pascalheraud commented 5 years ago

Hello, what do I have to do to share the project ? I transfer it to jsweet-candies ?

lgrignon commented 5 years ago

Hello, yes please. I thought you already did :)

Thanks again!

lgrignon commented 5 years ago

Please close issue when you are finished.

pascalheraud commented 5 years ago

Ok it's transfered. Can you build it ? Thx.

lgrignon commented 5 years ago

I will do this today, thanks. Bye