Skip to content

Commit 93d176c

Browse files
committed
feat(transformers): improve transformers feature ; add @nuxt/content support by default
1 parent 1a38175 commit 93d176c

File tree

9 files changed

+1132
-1776
lines changed

9 files changed

+1132
-1776
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@
2525
"release": "pnpm test && standard-version && git push --follow-tags && npm publish"
2626
},
2727
"dependencies": {
28-
"@nuxt/kit": "^3.0.0-rc.12",
29-
"scule": "^0.3.2",
28+
"@nuxt/kit": "^3.0.0",
29+
"scule": "^1.0.0",
3030
"vue-component-meta": "^1.0.9",
31-
"typescript": "^4.8.4"
31+
"typescript": "^4.9.3"
3232
},
3333
"devDependencies": {
3434
"@iconify/vue": "^4.0.0",
35-
"@nuxt/content": "^2.2.1",
35+
"@nuxt/content": "^2.2.2",
3636
"@nuxt/module-builder": "latest",
37-
"@nuxt/test-utils": "^3.0.0-rc.12",
37+
"@nuxt/test-utils": "^3.0.0",
3838
"@nuxtjs/eslint-config-typescript": "latest",
3939
"eslint": "latest",
40-
"nuxt": "^3.0.0-rc.12",
40+
"nuxt": "^3.0.0",
4141
"standard-version": "^9.5.0",
42-
"vitest": "^0.24.5",
43-
"vue": "^3.2.41"
42+
"vitest": "^0.25.3",
43+
"vue": "^3.2.45"
4444
},
4545
"build": {
4646
"externals": [

playground/app.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@ import TestComponent from './components/TestComponent.vue'
2323
import TestTyped from './components/testTyped.vue'
2424
import { NuxtComponentMetaNames } from '#nuxt-component-meta/types'
2525
26-
const specificComponentName = ref<NuxtComponentMetaNames>('TestComponent')
26+
const specificComponentName = ref<NuxtComponentMetaNames>('TestContent')
2727
2828
const specificComponentMeta = await useComponentMeta(specificComponentName)
2929
3030
const composableData = await useComponentMeta()
3131
</script>
32+
33+
<style lang="postcss">
34+
body {
35+
font-size: 12px;
36+
}
37+
</style>

playground/components/pinceau/TestPinceau.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ css({
1919
},
2020
blue: {
2121
background: 'blue',
22+
color: '{colors.gray.600}'
2223
}
2324
}
2425
}

playground/nuxt.config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ export default defineNuxtConfig({
1919
modules: [
2020
'@nuxt/content',
2121
'pinceau/nuxt',
22-
nuxtMetaModule
22+
nuxtMetaModule as any
2323
],
2424
pinceau: {
25-
followSymbolicLinks: false
25+
followSymbolicLinks: false,
26+
componentMetaSupport: true
27+
},
28+
29+
typescript: {
30+
includeWorkspace: true
2631
}
2732
})

playground/pinceau.config.ts

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,76 @@
11
import { defineTheme } from 'pinceau'
22

3-
export default defineTheme({})
3+
export default defineTheme({
4+
colors: {
5+
"white": {
6+
"value": "#ffffff"
7+
},
8+
"black": {
9+
"value": "#0c0c0d"
10+
},
11+
"gray": {
12+
"50": {
13+
"value": "#fafafa"
14+
},
15+
"100": {
16+
"value": "#f4f4f5"
17+
},
18+
"200": {
19+
"value": "#e4e4e7"
20+
},
21+
"300": {
22+
"value": "#D4d4d8"
23+
},
24+
"400": {
25+
"value": "#a1a1aa"
26+
},
27+
"500": {
28+
"value": "#71717A"
29+
},
30+
"600": {
31+
"value": "#52525B"
32+
},
33+
"700": {
34+
"value": "#3f3f46"
35+
},
36+
"800": {
37+
"value": "#27272A"
38+
},
39+
"900": {
40+
"value": "#18181B"
41+
}
42+
},
43+
"green": {
44+
"50": {
45+
"value": "#d6ffee"
46+
},
47+
"100": {
48+
"value": "#acffdd"
49+
},
50+
"200": {
51+
"value": "#83ffcc"
52+
},
53+
"300": {
54+
"value": "#30ffaa"
55+
},
56+
"400": {
57+
"value": "#00dc82"
58+
},
59+
"500": {
60+
"value": "#00bd6f"
61+
},
62+
"600": {
63+
"value": "#009d5d"
64+
},
65+
"700": {
66+
"value": "#007e4a"
67+
},
68+
"800": {
69+
"value": "#005e38"
70+
},
71+
"900": {
72+
"value": "#003f25"
73+
}
74+
},
75+
}
76+
})

0 commit comments

Comments
 (0)