Generates a web-types.json
file to provide (JetBrains) IDEs with metadata about Web Components built with @webtides/element-js
.
For more info on the schema see: https://github.com/JetBrains/web-types
install element-js-manifests
npm install --save @webtides/element-js-manifests
Add the following task to the scripts' section of your package.json.
{
"scripts": {
"manifest": "element-js-manifests --src 'src/**/*.js' --watch"
}
}
Run the command
npm run manifest
Add the generated web-types.json
field to your package.json
{
"web-types": "./web-types.json"
}
For contributions and development see contributing docs
element-js-manifests
is open-sourced software licensed under the MIT license.