shadcn-vue/apps/www/src/public/schema.json
Sadegh Barati 0e84af73de
feat: use unjs modules and improve cli from main shadcn-ui source, custom ui dir (#324)
* feat: add devDeps, add nypm for installing deps

* feat: custom ui dir

* refactor: use consola instead of chalk

* test: ui alias

* refactor: import { z } from 'zod' instead of *, replace node:path with pathe

* chore: add components name to `configFile` option

* chore: update `c12` which fix json5 parse issue

and it also supports .config directory

* chore: update `https-proxy-agent`

* fix: await until dependencies are installed then run detypes process

* feat: add tailwind prefix

* test: tw-prefix snapshot

* chore: add prefix option to init

* test: apply prefix

* fix: tw-prefix parse wrongly

* chore: hide prefix temporarily

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2024-03-06 05:38:19 +03:30

55 lines
1.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"style": {
"type": "string",
"enum": ["default", "new-york"]
},
"typescript": {
"type": "boolean",
"default": true
},
"tailwind": {
"type": "object",
"properties": {
"config": {
"type": "string"
},
"css": {
"type": "string"
},
"baseColor": {
"type": "string"
},
"cssVariables": {
"type": "boolean",
"default": true
}
},
"required": ["config", "css", "baseColor", "cssVariables"]
},
"framework": {
"type": "string",
"enum": ["nuxt", "vite", "laravel", "astro"],
"default": "vite"
},
"aliases": {
"type": "object",
"properties": {
"utils": {
"type": "string"
},
"components": {
"type": "string"
},
"ui": {
"type": "string"
}
},
"required": ["utils", "components"]
}
},
"required": ["style", "tailwind", "aliases"]
}