Skip to content

Commit

Permalink
feat(core): setup vetur
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Mar 30, 2021
1 parent 0ca4723 commit a8a123e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -18,15 +18,17 @@
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"./package.json": "./package.json"
},
"main": "dist/index.cjs.js",
"jsdelivr": "dist/index.min.js",
"unpkg": "dist/index.min.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
"dist",
"vetur"
],
"scripts": {
"build": "siroc build",
Expand Down Expand Up @@ -64,5 +66,9 @@
},
"publishConfig": {
"access": "public"
},
"vetur": {
"tags": "vetur/tags.json",
"attributes": "vetur/attributes.json"
}
}
9 changes: 9 additions & 0 deletions vetur/attributes.json
@@ -0,0 +1,9 @@
{
"field": {
"description": "Prismic field for the component to use."
},
"wrapper": {
"type": "string",
"description": "Tag used to wrap content output, defaults to a div."
}
}
10 changes: 10 additions & 0 deletions vetur/tags.json
@@ -0,0 +1,10 @@
{
"prismic-image": {
"attributes": ["field"],
"description": "Render an image field coming from Prismic."
},
"prismic-embed": {
"attributes": ["field", "wrapper"],
"description": "Render an embed field coming from Prismic."
}
}

0 comments on commit a8a123e

Please sign in to comment.