Skip to content

Commit df8bd64

Browse files
committed
[Toolkit] Rework the "dependencies" Recipe JSON schema
1 parent 441aede commit df8bd64

40 files changed

+300
-494
lines changed

src/Toolkit/kits/shadcn/Alert/manifest.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "twig/extra-bundle"
13-
},
14-
{
15-
"type": "php",
16-
"name": "twig/html-extra",
17-
"version": "^3.12.0"
18-
},
19-
{
20-
"type": "php",
21-
"name": "tales-from-a-dev/twig-tailwind-extra"
22-
}
23-
]
9+
"dependencies": {
10+
"composer": ["twig/extra-bundle", "twig/html-extra:^3.12.0", "tales-from-a-dev/twig-tailwind-extra"]
11+
}
2412
}

src/Toolkit/kits/shadcn/AlertDialog/manifest.json

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,10 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "twig/extra-bundle"
13-
},
14-
{
15-
"type": "php",
16-
"name": "twig/html-extra",
17-
"version": "^3.12.0"
18-
},
19-
{
20-
"type": "php",
21-
"name": "tales-from-a-dev/twig-tailwind-extra"
22-
},
23-
{
24-
"type": "npm",
25-
"name": "el-transition"
26-
},
27-
{
28-
"type": "importmap",
29-
"package": "el-transition"
30-
},
31-
{
32-
"type": "recipe",
33-
"name": "Button"
34-
}
35-
]
9+
"dependencies": {
10+
"recipe": ["Button"],
11+
"composer": ["twig/extra-bundle", "twig/html-extra:^3.12.0", "tales-from-a-dev/twig-tailwind-extra"],
12+
"npm": ["el-transition"],
13+
"importmap": ["el-transition"]
14+
}
3615
}

src/Toolkit/kits/shadcn/AspectRatio/manifest.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "twig/extra-bundle"
13-
}
14-
]
9+
"dependencies": {
10+
"composer": ["twig/extra-bundle"]
11+
}
1512
}

src/Toolkit/kits/shadcn/Avatar/manifest.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "tales-from-a-dev/twig-tailwind-extra"
13-
}
14-
]
9+
"dependencies": {
10+
"composer": ["tales-from-a-dev/twig-tailwind-extra"]
11+
}
1512
}

src/Toolkit/kits/shadcn/Badge/manifest.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "twig/extra-bundle"
13-
},
14-
{
15-
"type": "php",
16-
"name": "twig/html-extra",
17-
"version": "^3.12.0"
18-
},
19-
{
20-
"type": "php",
21-
"name": "tales-from-a-dev/twig-tailwind-extra"
22-
}
23-
]
9+
"dependencies": {
10+
"composer": ["twig/extra-bundle", "twig/html-extra:^3.12.0", "tales-from-a-dev/twig-tailwind-extra"]
11+
}
2412
}

src/Toolkit/kits/shadcn/Breadcrumb/manifest.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "tales-from-a-dev/twig-tailwind-extra"
13-
}
14-
]
9+
"dependencies": {
10+
"composer": ["tales-from-a-dev/twig-tailwind-extra"]
11+
}
1512
}

src/Toolkit/kits/shadcn/Button/manifest.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "twig/extra-bundle"
13-
},
14-
{
15-
"type": "php",
16-
"name": "twig/html-extra",
17-
"version": "^3.12.0"
18-
},
19-
{
20-
"type": "php",
21-
"name": "tales-from-a-dev/twig-tailwind-extra"
22-
}
23-
]
9+
"dependencies": {
10+
"composer": ["twig/extra-bundle", "twig/html-extra:^3.12.0", "tales-from-a-dev/twig-tailwind-extra"]
11+
}
2412
}

src/Toolkit/kits/shadcn/Card/manifest.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "tales-from-a-dev/twig-tailwind-extra"
13-
}
14-
]
9+
"dependencies": {
10+
"composer": ["tales-from-a-dev/twig-tailwind-extra"]
11+
}
1512
}

src/Toolkit/kits/shadcn/Checkbox/manifest.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "tales-from-a-dev/twig-tailwind-extra"
13-
}
14-
]
9+
"dependencies": {
10+
"composer": ["tales-from-a-dev/twig-tailwind-extra"]
11+
}
1512
}

src/Toolkit/kits/shadcn/Input/manifest.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"copy-files": {
77
"templates/": "templates/"
88
},
9-
"dependencies": [
10-
{
11-
"type": "php",
12-
"name": "tales-from-a-dev/twig-tailwind-extra"
13-
}
14-
]
9+
"dependencies": {
10+
"composer": ["tales-from-a-dev/twig-tailwind-extra"]
11+
}
1512
}

0 commit comments

Comments
 (0)