Skip to content

Commit 00a127a

Browse files
authored
feat(up): refactor and expose parser (#47)
1 parent 00ac278 commit 00a127a

File tree

10 files changed

+793
-309
lines changed

10 files changed

+793
-309
lines changed

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,19 @@
4343
"vue": "^3.2.45"
4444
},
4545
"build": {
46+
"entries": [
47+
{
48+
"input": "./src/parser.ts",
49+
"name": "parser"
50+
}
51+
],
4652
"externals": [
4753
"#nuxt-component-meta",
4854
"ufo",
4955
"pathe",
5056
"defu",
51-
"unplugin"
57+
"unplugin",
58+
"consola"
5259
]
5360
},
5461
"pnpm": {

playground/components/TestComponent.vue

+2
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ defineProps({
3939
})
4040
4141
const emit = defineEmits(['change', 'delete'])
42+
43+
const test = {}
4244
</script>

playground/nuxt.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ export default defineNuxtConfig({
1616
'~/components'
1717
]
1818
},
19+
1920
modules: [
2021
'@nuxt/content',
2122
'pinceau/nuxt',
2223
nuxtMetaModule as any
2324
],
25+
26+
componentMeta: {
27+
debug: 2
28+
},
29+
2430
pinceau: {
2531
followSymbolicLinks: false,
2632
componentMetaSupport: true

playground/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"private": true,
33
"name": "nuxt-component-meta-playground",
44
"devDependencies": {
5-
"@nuxt/content": "npm:@nuxt/content-edge@latest",
6-
"nuxt": "^3.0.0-rc.12",
5+
"@nuxt/content": "^2.3.0",
6+
"nuxt": "^3.0.0",
77
"nuxt-component-meta": "*",
8-
"pinceau": "latest"
8+
"pinceau": "^0.8.9"
99
},
1010
"scripts": {
1111
"dev": "nuxi dev",

0 commit comments

Comments
 (0)