diff --git a/src/Toolkit/kits/shadcn/templates/components/Alert.meta.json b/src/Toolkit/kits/shadcn/templates/components/Alert.meta.json new file mode 100644 index 00000000000..9e08e59b32e --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Alert.meta.json @@ -0,0 +1,17 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "twig/extra-bundle" + }, + { + "type": "php", + "package": "twig/html-extra:^3.12.0" + }, + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Alert/Description.meta.json b/src/Toolkit/kits/shadcn/templates/components/Alert/Description.meta.json new file mode 100644 index 00000000000..bc2dc159849 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Alert/Description.meta.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../../../../schemas/component.json", + "name": "Alert:Description", + "description": "A description component for alerts", + "props": {}, + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Alert/Title.meta.json b/src/Toolkit/kits/shadcn/templates/components/Alert/Title.meta.json new file mode 100644 index 00000000000..9cfb543f998 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Alert/Title.meta.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../../../../schemas/component.json", + "name": "Alert:Title", + "description": "A title component for alerts", + "props": {}, + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/AspectRatio.meta.json b/src/Toolkit/kits/shadcn/templates/components/AspectRatio.meta.json new file mode 100644 index 00000000000..079eea5bb20 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/AspectRatio.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Avatar.meta.json b/src/Toolkit/kits/shadcn/templates/components/Avatar.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Avatar.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Avatar/Image.meta.json b/src/Toolkit/kits/shadcn/templates/components/Avatar/Image.meta.json new file mode 100644 index 00000000000..142227d92aa --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Avatar/Image.meta.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../../../../schemas/component.json", + "name": "Avatar:Image", + "description": "An image component for avatars", + "props": {}, + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Avatar/Text.meta.json b/src/Toolkit/kits/shadcn/templates/components/Avatar/Text.meta.json new file mode 100644 index 00000000000..2680569b3a0 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Avatar/Text.meta.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../../../../schemas/component.json", + "name": "Avatar:Text", + "description": "A text component for avatars", + "props": {}, + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Badge.meta.json b/src/Toolkit/kits/shadcn/templates/components/Badge.meta.json new file mode 100644 index 00000000000..9e08e59b32e --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Badge.meta.json @@ -0,0 +1,17 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "twig/extra-bundle" + }, + { + "type": "php", + "package": "twig/html-extra:^3.12.0" + }, + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Breadcrumb.meta.json b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb.meta.json new file mode 100644 index 00000000000..079eea5bb20 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Ellipsis.meta.json b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Ellipsis.meta.json new file mode 100644 index 00000000000..9d8ebd25df4 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Ellipsis.meta.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../../../../schemas/component.json", + "name": "Breadcrumb:Ellipsis", + "description": "An ellipsis component for breadcrumb navigation", + "props": {}, + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Item.meta.json b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Item.meta.json new file mode 100644 index 00000000000..8802b1aaa93 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Item.meta.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../../../../schemas/component.json", + "name": "Breadcrumb:Item", + "description": "An item component for breadcrumb navigation", + "props": {}, + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Link.meta.json b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Link.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Link.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/List.meta.json b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/List.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/List.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Page.meta.json b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Page.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Page.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Separator.meta.json b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Separator.meta.json new file mode 100644 index 00000000000..53bdfd3d2ab --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Breadcrumb/Separator.meta.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../../../../schemas/component.json", + "name": "Breadcrumb:Separator", + "description": "A separator component for breadcrumb navigation", + "props": {}, + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Button.meta.json b/src/Toolkit/kits/shadcn/templates/components/Button.meta.json new file mode 100644 index 00000000000..9e08e59b32e --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Button.meta.json @@ -0,0 +1,17 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "twig/extra-bundle" + }, + { + "type": "php", + "package": "twig/html-extra:^3.12.0" + }, + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Card.meta.json b/src/Toolkit/kits/shadcn/templates/components/Card.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Card.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Card/Content.meta.json b/src/Toolkit/kits/shadcn/templates/components/Card/Content.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Card/Content.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Card/Description.meta.json b/src/Toolkit/kits/shadcn/templates/components/Card/Description.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Card/Description.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Card/Footer.meta.json b/src/Toolkit/kits/shadcn/templates/components/Card/Footer.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Card/Footer.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Card/Header.meta.json b/src/Toolkit/kits/shadcn/templates/components/Card/Header.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Card/Header.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Card/Title.meta.json b/src/Toolkit/kits/shadcn/templates/components/Card/Title.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Card/Title.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Checkbox.meta.json b/src/Toolkit/kits/shadcn/templates/components/Checkbox.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Checkbox.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Input.meta.json b/src/Toolkit/kits/shadcn/templates/components/Input.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Input.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Label.meta.json b/src/Toolkit/kits/shadcn/templates/components/Label.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Label.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Pagination.meta.json b/src/Toolkit/kits/shadcn/templates/components/Pagination.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Pagination.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Pagination/Content.meta.json b/src/Toolkit/kits/shadcn/templates/components/Pagination/Content.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Pagination/Content.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Pagination/Ellipsis.meta.json b/src/Toolkit/kits/shadcn/templates/components/Pagination/Ellipsis.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Pagination/Ellipsis.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Pagination/Item.meta.json b/src/Toolkit/kits/shadcn/templates/components/Pagination/Item.meta.json new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Toolkit/kits/shadcn/templates/components/Pagination/Link.meta.json b/src/Toolkit/kits/shadcn/templates/components/Pagination/Link.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Pagination/Link.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Pagination/Next.meta.json b/src/Toolkit/kits/shadcn/templates/components/Pagination/Next.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Pagination/Next.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Pagination/Previous.meta.json b/src/Toolkit/kits/shadcn/templates/components/Pagination/Previous.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Pagination/Previous.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Progress.meta.json b/src/Toolkit/kits/shadcn/templates/components/Progress.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Progress.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Select.meta.json b/src/Toolkit/kits/shadcn/templates/components/Select.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Select.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Separator.meta.json b/src/Toolkit/kits/shadcn/templates/components/Separator.meta.json new file mode 100644 index 00000000000..9e08e59b32e --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Separator.meta.json @@ -0,0 +1,17 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "twig/extra-bundle" + }, + { + "type": "php", + "package": "twig/html-extra:^3.12.0" + }, + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Skeleton.meta.json b/src/Toolkit/kits/shadcn/templates/components/Skeleton.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Skeleton.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Switch.meta.json b/src/Toolkit/kits/shadcn/templates/components/Switch.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Switch.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Table.meta.json b/src/Toolkit/kits/shadcn/templates/components/Table.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Table.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Table/Body.meta.json b/src/Toolkit/kits/shadcn/templates/components/Table/Body.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Table/Body.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Table/Caption.meta.json b/src/Toolkit/kits/shadcn/templates/components/Table/Caption.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Table/Caption.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Table/Cell.meta.json b/src/Toolkit/kits/shadcn/templates/components/Table/Cell.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Table/Cell.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Table/Footer.meta.json b/src/Toolkit/kits/shadcn/templates/components/Table/Footer.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Table/Footer.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Table/Head.meta.json b/src/Toolkit/kits/shadcn/templates/components/Table/Head.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Table/Head.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Table/Header.meta.json b/src/Toolkit/kits/shadcn/templates/components/Table/Header.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Table/Header.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Table/Row.meta.json b/src/Toolkit/kits/shadcn/templates/components/Table/Row.meta.json new file mode 100644 index 00000000000..d39de6e07e6 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Table/Row.meta.json @@ -0,0 +1,4 @@ +{ + "$schema": "../../../../../schemas/component.json", + "dependencies": [] +} diff --git a/src/Toolkit/kits/shadcn/templates/components/Textarea.meta.json b/src/Toolkit/kits/shadcn/templates/components/Textarea.meta.json new file mode 100644 index 00000000000..d50410b06b3 --- /dev/null +++ b/src/Toolkit/kits/shadcn/templates/components/Textarea.meta.json @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../schemas/component.json", + "dependencies": [ + { + "type": "php", + "package": "tales-from-a-dev/twig-tailwind-extra" + } + ] +} diff --git a/src/Toolkit/schemas/component.json b/src/Toolkit/schemas/component.json new file mode 100644 index 00000000000..c64a412d312 --- /dev/null +++ b/src/Toolkit/schemas/component.json @@ -0,0 +1,39 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Component Meta Schema", + "type": "object", + "required": ["name", "description", "props", "dependencies"], + "properties": { + "name": { + "type": "string", + "description": "The name of the component" + }, + "description": { + "type": "string", + "description": "A description of the component's purpose and functionality" + }, + "dependencies": { + "type": "array", + "description": "List of dependencies required by the component", + "items": { + "oneOf": [ + { + "type": "object", + "required": ["type", "package"], + "properties": { + "type": { + "type": "string", + "enum": ["php"], + "description": "PHP package dependency" + }, + "package": { + "type": "string", + "description": "Package name and optional version constraint" + } + } + } + ] + } + } + } +} diff --git a/src/Toolkit/src/Command/CreateKitCommand.php b/src/Toolkit/src/Command/CreateKitCommand.php index 42f86014240..1ab720be848 100644 --- a/src/Toolkit/src/Command/CreateKitCommand.php +++ b/src/Toolkit/src/Command/CreateKitCommand.php @@ -101,7 +101,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int TWIG ); - $this->filesystem->dumpFile('docs/components/Button.md', <<filesystem->dumpFile('docs/components/Button.md', <<Secondary ``` -TWIG +MARKDOWN ); + $this->filesystem->dumpFile('docs/components/Button.meta.json', json_encode([ + '$schema' => '../vendor/symfony/ux-toolkit/schemas/component.schema.json', + 'dependencies' => (object) [], + ], \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES)); $io->success('Your kit has been scaffolded, enjoy!');