Web Types generation
To support component recognition by IDEs (WebStorm) Vueless use @vueless/web-types
package for Web-Types generation which in turn was be inspired by JetBrains/web-types
.
Vueless UI already included latest web-types.json
file, so you don't need to do nothing.
But, in some cases you may need to install @vueless/web-types
, so for that reason we created optional and zero config package.
When you may need to install it:
If you going to change default values for props in
vueless.config.js
.If you going to use Vue components from the
/component
folder without importing them (unplugin) to remove IDE warnings.If you using JSDoc for documenting custom components and want to see props description and autocompletion on the go.
Installation
1. Install the package as a dev dependency.
2. Run the command to generate web-types.json
in the root of the project.
We'd recommend to add this command to postinstall
in the project package.json
3. Declare web-types
in the project package.json
.
It will be added automatically when you start the project in dev mode npm run dev
. Vueless Vite plugin do this magic for you ✨
Last updated