Skip to content
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

Generate web-types for ant-design-vue package for rich code assist in IDE #1286

Closed
1 task done
piotrtomiak opened this issue Oct 16, 2019 · 9 comments
Closed
1 task done

Comments

@piotrtomiak
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

This is a feature request to include web-types metadata information with ant-design-vue library to provide users of WebStorm (and possibly other IDEs in the future) with precise code completion, inspections and documentation for the components. There has already been 2 requests by users of ant-design-package: JetBrains/web-types#13 and JetBrains/web-types#11

What does the proposed API look like?

The best solution would be to generate the file based on existing documentation JSONs during the build process and ship it with the library. This solution has been implemented in quasar and bootstrap-vue libraries and is being worked on in vuetify.

I can work on the transformation code itself, but it would be pretty difficult for me to hook into the build process in the correct place, so I need some help from your side, before I can create a PR for this. Additionally we can generate web-types for older versions of library and publish them to @web-types/ scope so that consumers of older versions of library can also benefit from better code assist.

@rxliuli
Copy link

rxliuli commented Oct 16, 2019

这对于 WebStorm 的代码提示相当重要,希望能添加支持。。。

@piotrtomiak
Copy link
Author

piotrtomiak commented Oct 22, 2019

Here is how code completion will look like with WebStorm 2019.3 and bootstrap-vue 2.1.0:

web-types1

I think would be a really great help for developers to have such a support for your library.

@toleberdyyeva
Copy link

Is there any updates on that issue ?

@bigBron
Copy link

bigBron commented Aug 19, 2020

Is anyone following up on this issue?

@piotrtomiak
Copy link
Author

@bigBron I am waiting for some help from the maintainers to start with.

@bigBron
Copy link

bigBron commented Aug 19, 2020

@piotrtomiak
Copy link
Author

@bigBron I've actually authored most of that code ;) What I need to know to start is how the documentation is generated? With this information I can plug-in to the build process and generate web-types.json

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants