-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Definition Generator #1
Comments
About shared link, I have already used the generated file, but there are still a lot of missing from ExtJS with the generator, so why i decided to develop & share my own. Such as:
For handling errors, a lot of hard coded rules has been applied to my generator, with many tries/fixes & validations until final version with nearly 90-99% match with ExtJS API document. |
Do you have a public generator repository? |
Echoing the above comment, I'd love to see your generator. I really enjoy the embedded comments, and would love to implement a few features: like correcting the generation of automatic getters and setters for properties. |
I have just publish the source, so welcome everyone to look into this and make a pull request to make the def better for the community. |
How to use the generator? I compiled the project (by removing the test project in solution) but I'm confused from the readme. I want to generate typings for Ext 3.4. I have ran btw, thanks to taking the effort to create this and share it to the community. 🌷 |
Hi Unional, Thank you for interesting in my repo! You are now at the step 1.
Note that. the version 3 does not support, so you should see from the sourcecode by generating 4.2 then change some LOC or arguments to make it work. Good luck! |
Where should the jsduck\src\classic & jsduck\src\modern locate? Under For 3.2/3.4, ExtJS were not organized under src
- adapter
- core
- data
- dd
- direct
- ext-core
- examples
- src
- adapter
- ...
- ext-base-begin.js // <-- have to comment this out as it is not well formed JS
- ext-base-dom.js
- ext-base-end.js // <-- have to comment this out as it is not well formed JS
- ...
- core
- data
- util
- test
- locate // <-- I have to remove this to make jsduck work
- state
- util
- widgets Also, when you run |
Oh, also:
I don't see any ts/jsduck/classic.cmd or modern.cmd in the repo. |
I uploaded the template cmd file to 1.src for your reference. and also updated the README.md, but there are still something differ to what i have done locally sometimes ago. Sorry for that, it's been a while that i have not touched, please try to figure out and let me know what should I update to README to help others :( Hope this help! |
For the cmd, I was able to produce some doc with my Ext3.2 but the c2.tools.ExtTS.exe throws an exception. As I look into it, and try to produce 6.0.2 as an example (using the src.zip provided), it errors with: ..\0.tools\jsduck-6.0.0-beta.exe ext-6.0.2-classic\src --output ..\2.docs\ext-6.0.2-classic
> Error: Please specify some input files, otherwise there's nothing I can do :( I tried pointing to The error I am having with ext 3.2 is that is there is no |
Still trying to figure out exactly how it works. Right now I'm trying to create typings for 6.0.2 so that if the typings I generate is the same as https://github.com/thanhptr/extts/blob/master/ext-6.0.2-classic.d.ts , I know I'm doing the right thing. But so far I'm still not able to do so. I assume the provided Here is what I thought I should be doing:
Questions:
|
By the way, would it be better to generate one file for each package, as well as classic and modern, be a better way to go? |
How did you generate definition files? And how did you fix errors? I use custom definitions generator with many documentation error patches.
Did you see similar project https://github.com/Dretch/typescript-declarations-for-ext?
The text was updated successfully, but these errors were encountered: