@salifbiaye/create-boutique 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/package.json +4 -2
  2. package/templates/storefront/src/lib/boutique/schema.ts +3 -0
  3. package/templates/storefront/themes/black-friday/preview.jpg +0 -0
  4. package/templates/storefront/themes/black-friday/theme.json +2 -0
  5. package/templates/storefront/themes/black-friday-2/preview.jpg +0 -0
  6. package/templates/storefront/themes/black-friday-2/theme.json +2 -0
  7. package/templates/storefront/themes/cyber-monday/preview.jpg +0 -0
  8. package/templates/storefront/themes/cyber-monday/theme.json +2 -0
  9. package/templates/storefront/themes/cyber-monday-2/preview.jpg +0 -0
  10. package/templates/storefront/themes/cyber-monday-2/theme.json +2 -0
  11. package/templates/storefront/themes/halloween/preview.jpg +0 -0
  12. package/templates/storefront/themes/halloween/theme.json +2 -0
  13. package/templates/storefront/themes/halloween-2/preview.jpg +0 -0
  14. package/templates/storefront/themes/halloween-2/theme.json +2 -0
  15. package/templates/storefront/themes/jeux/preview.jpg +0 -0
  16. package/templates/storefront/themes/jeux/theme.json +2 -0
  17. package/templates/storefront/themes/jeux-2/preview.jpg +0 -0
  18. package/templates/storefront/themes/jeux-2/theme.json +2 -0
  19. package/templates/storefront/themes/mubarak/preview.jpg +0 -0
  20. package/templates/storefront/themes/mubarak/theme.json +2 -0
  21. package/templates/storefront/themes/mubarak-2/preview.jpg +0 -0
  22. package/templates/storefront/themes/mubarak-2/theme.json +2 -0
  23. package/templates/storefront/themes/noel/preview.jpg +0 -0
  24. package/templates/storefront/themes/noel/theme.json +2 -0
  25. package/templates/storefront/themes/noel-2/preview.jpg +0 -0
  26. package/templates/storefront/themes/noel-2/theme.json +2 -0
  27. package/templates/storefront/themes/nouvel-an/preview.jpg +0 -0
  28. package/templates/storefront/themes/nouvel-an/theme.json +2 -0
  29. package/templates/storefront/themes/nouvel-an-2/preview.jpg +0 -0
  30. package/templates/storefront/themes/nouvel-an-2/theme.json +2 -0
  31. package/templates/storefront/themes/sport/preview.jpg +0 -0
  32. package/templates/storefront/themes/sport/theme.json +2 -0
  33. package/templates/storefront/themes/sport-2/preview.jpg +0 -0
  34. package/templates/storefront/themes/sport-2/theme.json +2 -0
  35. package/templates/storefront/themes/summer/preview.jpg +0 -0
  36. package/templates/storefront/themes/summer/theme.json +2 -0
  37. package/templates/storefront/themes/summer-2/preview.jpg +0 -0
  38. package/templates/storefront/themes/summer-2/theme.json +2 -0
  39. package/templates/storefront/themes/thanksgiving/preview.jpg +0 -0
  40. package/templates/storefront/themes/thanksgiving/theme.json +2 -0
  41. package/templates/storefront/themes/thanksgiving-2/preview.jpg +0 -0
  42. package/templates/storefront/themes/thanksgiving-2/theme.json +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salifbiaye/create-boutique",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Usine à Boutiques : génère un projet complet (backend Medusa + une boutique Next.js par campagne) prêt pour docker compose",
5
5
  "type": "module",
6
6
  "repository": {
@@ -35,7 +35,9 @@
35
35
  "build": "tsc -p cli",
36
36
  "dev": "tsc -p cli --watch",
37
37
  "typecheck": "tsc -p cli --noEmit",
38
- "prepare": "tsc -p cli"
38
+ "prepare": "tsc -p cli",
39
+ "theme-previews": "node scripts/theme-previews.mjs",
40
+ "check-themes": "node scripts/check-themes.mjs"
39
41
  },
40
42
  "publishConfig": {
41
43
  "access": "public"
@@ -70,6 +70,9 @@ export type Project = z.infer<typeof projectSchema>
70
70
  export const themeSchema = z.object({
71
71
  id: z.string().regex(SLUG),
72
72
  name: z.string().min(1),
73
+ /** Événement (regroupement dans la plateforme) : id et libellé, ex. « halloween » / « Halloween » */
74
+ event: z.string().regex(SLUG).optional(),
75
+ eventLabel: z.string().optional(),
73
76
  reference: z.string().optional(),
74
77
  /** Variante : reprend la mise en page (règles CSS) de ce thème, avec la palette de styles/ub/variants.css. */
75
78
  layout: z.string().regex(SLUG).optional(),
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "black-friday",
3
3
  "name": "Black Friday",
4
+ "event": "black-friday",
5
+ "eventLabel": "Black Friday",
4
6
  "reference": "Aeroflow + NovaTrend",
5
7
  "fonts": {
6
8
  "head": "oswald",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "black-friday-2",
3
3
  "name": "Black Friday · Blackout",
4
+ "event": "black-friday",
5
+ "eventLabel": "Black Friday",
4
6
  "reference": "variante noir et orange, mise en page halloween",
5
7
  "layout": "halloween",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "cyber-monday",
3
3
  "name": "Cyber Monday",
4
+ "event": "cyber-monday",
5
+ "eventLabel": "Cyber Monday",
4
6
  "reference": "NovaTech",
5
7
  "fonts": {
6
8
  "head": "space-grotesk",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "cyber-monday-2",
3
3
  "name": "Cyber Monday · Studio",
4
+ "event": "cyber-monday",
5
+ "eventLabel": "Cyber Monday",
4
6
  "reference": "variante blanche, mise en page cyber-monday",
5
7
  "layout": "cyber-monday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "halloween",
3
3
  "name": "Halloween",
4
+ "event": "halloween",
5
+ "eventLabel": "Halloween",
4
6
  "reference": "Nexora (sombre)",
5
7
  "fonts": {
6
8
  "head": "oswald",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "halloween-2",
3
3
  "name": "Halloween · Grimoire",
4
+ "event": "halloween",
5
+ "eventLabel": "Halloween",
4
6
  "reference": "variante, accueil grimoire",
5
7
  "layout": "black-friday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "jeux",
3
3
  "name": "Jeux · Flamme",
4
+ "event": "jeux",
5
+ "eventLabel": "Jeux",
4
6
  "reference": "flamme, podium (sans nom ni symbole protégé)",
5
7
  "layout": "cyber-monday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "jeux-2",
3
3
  "name": "Jeux · Mosaïque",
4
+ "event": "jeux",
5
+ "eventLabel": "Jeux",
4
6
  "reference": "toutes les disciplines, multicolore (sans nom ni symbole protégé)",
5
7
  "layout": "cyber-monday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "mubarak",
3
3
  "name": "Mubarak · Nuit",
4
+ "event": "mubarak",
5
+ "eventLabel": "Mubarak",
4
6
  "reference": "Ramadan, Aïd, Tabaski : nuit bleue, or, lanternes",
5
7
  "layout": "cyber-monday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "mubarak-2",
3
3
  "name": "Mubarak · Sable",
4
+ "event": "mubarak",
5
+ "eventLabel": "Mubarak",
4
6
  "reference": "Aïd, Korité, Tabaski : souk, sable, terre cuite",
5
7
  "layout": "cyber-monday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "noel",
3
3
  "name": "Noël",
4
+ "event": "noel",
5
+ "eventLabel": "Noël",
4
6
  "reference": "Crescendo",
5
7
  "fonts": {
6
8
  "head": "poppins",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "noel-2",
3
3
  "name": "Noël · Forêt dorée",
4
+ "event": "noel",
5
+ "eventLabel": "Noël",
4
6
  "reference": "variante, mise en page nouvel-an",
5
7
  "layout": "nouvel-an",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "nouvel-an",
3
3
  "name": "Nouvel An",
4
+ "event": "nouvel-an",
5
+ "eventLabel": "Nouvel An",
4
6
  "reference": "Nexora (claire)",
5
7
  "fonts": {
6
8
  "head": "sora",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "nouvel-an-2",
3
3
  "name": "Nouvel An · Minuit",
4
+ "event": "nouvel-an",
5
+ "eventLabel": "Nouvel An",
4
6
  "reference": "variante, mise en page thanksgiving",
5
7
  "layout": "thanksgiving",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "sport",
3
3
  "name": "Sport · Vestiaire",
4
+ "event": "sport",
5
+ "eventLabel": "Sport",
4
6
  "reference": "maillots, jour de match",
5
7
  "layout": "black-friday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "sport-2",
3
3
  "name": "Sport · Training",
4
+ "event": "sport",
5
+ "eventLabel": "Sport",
4
6
  "reference": "salle de sport, sombre",
5
7
  "layout": "black-friday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "summer",
3
3
  "name": "Summer · Riviera",
4
+ "event": "summer",
5
+ "eventLabel": "Été",
4
6
  "reference": "élégance d'été, lookbook éditorial",
5
7
  "layout": "cyber-monday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "summer-2",
3
3
  "name": "Summer · Sunset",
4
+ "event": "summer",
5
+ "eventLabel": "Été",
4
6
  "reference": "affiche plage, coucher de soleil",
5
7
  "layout": "black-friday",
6
8
  "fonts": {
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "thanksgiving",
3
3
  "name": "Thanksgiving",
4
+ "event": "thanksgiving",
5
+ "eventLabel": "Thanksgiving",
4
6
  "reference": "NovaTrend",
5
7
  "fonts": {
6
8
  "head": "oswald",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "id": "thanksgiving-2",
3
3
  "name": "Thanksgiving · Harvest",
4
+ "event": "thanksgiving",
5
+ "eventLabel": "Thanksgiving",
4
6
  "reference": "variante, mise en page noel",
5
7
  "layout": "noel",
6
8
  "fonts": {