Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
TypeScript Support #61
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
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.
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.
This was referenced
Nov 28, 2017
@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.