mirror of
https://github.com/dtomlinson91/anno-production-chain-renderer.git
synced 2025-12-21 22:05:46 +00:00
add docs on component data with vetur
This commit is contained in:
36
docs/component-data-vetur.md
Normal file
36
docs/component-data-vetur.md
Normal file
@@ -0,0 +1,36 @@
|
||||
Vetur docs on component data: https://vuejs.github.io/vetur/guide/component-data.html#workspace-component-data
|
||||
|
||||
Requires the following dev dependency for Volar:
|
||||
https://github.com/johnsoncodehk/volar-plugins/tree/master/packages/vetur
|
||||
|
||||
yarn add --dev @volar-plugins/vetur
|
||||
|
||||
Create volar.config.js
|
||||
|
||||
```js
|
||||
const vetur = require('@volar-plugins/vetur');
|
||||
|
||||
module.exports = {
|
||||
plugins: [vetur()],
|
||||
};
|
||||
```
|
||||
|
||||
Generate required data:
|
||||
|
||||
https://itnext.io/vue-intellisense-in-vscode-33cf8860e092
|
||||
https://github.com/cycraft/vue-intellisense
|
||||
|
||||
yarn add --dev vue-intellisense
|
||||
yarn run vue-int --input src/components --output .vetur --recursive
|
||||
|
||||
Add to package.json
|
||||
|
||||
```json
|
||||
"vetur": {
|
||||
"tags": ".vetur/tags.json",
|
||||
"attributes": ".vetur/attributes.json"
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
https://vue-styleguidist.github.io
|
||||
Reference in New Issue
Block a user