-
Notifications
You must be signed in to change notification settings - Fork 61
TypeScript Support #61
Comments
Looks like this may be covered: https://github.com/davewilton/generator-ecl-wab-widget |
I have worked with @davewilton to get a clean example of a Web AppBuilder widget written in TypeScript. Next step is to consider if this will fit into the context of the generator, and also if we WANT to do it (does this preclude non-TS users, for example?) https://github.com/gavinr/web-appbuilder-typescript-examples (see the |
I am commenting on this here, related to https://github.com/gavinr/web-appbuilder-typescript-examples specifically the builder portion. I was successful in using the generator (https://github.com/davewilton/generator-typescript-wab-widget) from @davewilton along with most of @gavinr files. I had problems in a few areas.
Thoughts/story time: To comment on your question about if you WANT to include TS, I feel they would both need to exist or be two different projects. I love TypeScript, but when people used coffee script I would just avoid the project all together. So, do not force people into anything TS related as JavaScript is actually getting pretty nice lately. I would personally like to see the workflow change to better support multiple widgets or make it easier to develop one widget per branch without maintenance headaches. We "solved" this at work by using npm scripts and creating symlinks so that the folders no longer copy/sync. Our app just had a link into the dist folder. This works so well for us I would highly recommend looking into something similar. We got it to work on Windows 7 so anything is possible... Appreciate all the hard work and I would love to discuss further or help out in any way. |
@thejones Thanks so much for the great feedback! The notes about the TypeScript examples are good points - let's handle them in their separate issues:
Regarding your last paragraph ( Regarding your note about including TS in this Generator:
I think that's the core of the discussion we want to have here. I am interested to hear others opinions on this too. |
In addition to ES2015 transpiling, would it be useful to allow Typescript transpiling?
Related (but not required for this to work): ArcGIS Ideas: Maintain a Typescript definition file for jimu.js
The text was updated successfully, but these errors were encountered: