Skip to content

Commit f0956ed

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

40 files changed

+372
-496
lines changed

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,11 @@
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": [
11+
"twig/extra-bundle",
12+
"twig/html-extra:^3.12.0",
13+
"tales-from-a-dev/twig-tailwind-extra"
14+
]
15+
}
2416
}

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

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,20 @@
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": [
11+
"Button"
12+
],
13+
"composer": [
14+
"twig/extra-bundle",
15+
"twig/html-extra:^3.12.0",
16+
"tales-from-a-dev/twig-tailwind-extra"
17+
],
18+
"npm": [
19+
"el-transition"
20+
],
21+
"importmap": [
22+
"el-transition"
23+
]
24+
}
3625
}

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

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

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
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": [
11+
"tales-from-a-dev/twig-tailwind-extra"
12+
]
13+
}
1514
}

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,11 @@
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": [
11+
"twig/extra-bundle",
12+
"twig/html-extra:^3.12.0",
13+
"tales-from-a-dev/twig-tailwind-extra"
14+
]
15+
}
2416
}

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
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": [
11+
"tales-from-a-dev/twig-tailwind-extra"
12+
]
13+
}
1514
}

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,11 @@
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": [
11+
"twig/extra-bundle",
12+
"twig/html-extra:^3.12.0",
13+
"tales-from-a-dev/twig-tailwind-extra"
14+
]
15+
}
2416
}

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
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": [
11+
"tales-from-a-dev/twig-tailwind-extra"
12+
]
13+
}
1514
}

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
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": [
11+
"tales-from-a-dev/twig-tailwind-extra"
12+
]
13+
}
1514
}

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
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": [
11+
"tales-from-a-dev/twig-tailwind-extra"
12+
]
13+
}
1514
}

0 commit comments

Comments
 (0)