@doswiftly/cli 0.1.17 → 0.1.19

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 (213) hide show
  1. package/README.md +23 -323
  2. package/dist/commands/check.js +1 -1
  3. package/dist/commands/check.js.map +1 -1
  4. package/dist/commands/deploy.d.ts.map +1 -1
  5. package/dist/commands/deploy.js +43 -20
  6. package/dist/commands/deploy.js.map +1 -1
  7. package/dist/commands/doctor.js +3 -3
  8. package/dist/commands/doctor.js.map +1 -1
  9. package/dist/commands/init.js +4 -4
  10. package/dist/commands/sdk.js +5 -5
  11. package/dist/commands/sdk.js.map +1 -1
  12. package/dist/commands/template.js +4 -4
  13. package/dist/commands/template.js.map +1 -1
  14. package/dist/commands/types.js +5 -5
  15. package/dist/commands/types.js.map +1 -1
  16. package/dist/commands/verify.js +2 -2
  17. package/dist/commands/verify.js.map +1 -1
  18. package/dist/lib/package-manager.d.ts +1 -1
  19. package/dist/lib/package-manager.js +1 -1
  20. package/package.json +1 -1
  21. package/templates/storefront-minimal/wrangler.toml +4 -0
  22. package/templates/storefront-nextjs/README.md +16 -12
  23. package/templates/storefront-nextjs/app/account/orders/page.tsx +2 -2
  24. package/templates/storefront-nextjs/app/account/page.tsx +2 -2
  25. package/templates/storefront-nextjs/app/auth/login/page.tsx +1 -1
  26. package/templates/storefront-nextjs/app/auth/register/page.tsx +1 -1
  27. package/templates/storefront-nextjs/app/cart/page.tsx +1 -1
  28. package/templates/storefront-nextjs/app/categories/[slug]/page.tsx +2 -2
  29. package/templates/storefront-nextjs/app/categories/page.tsx +1 -1
  30. package/templates/storefront-nextjs/app/collections/[slug]/page.tsx +1 -1
  31. package/templates/storefront-nextjs/app/collections/page.tsx +1 -1
  32. package/templates/storefront-nextjs/app/page.tsx +1 -1
  33. package/templates/storefront-nextjs/app/products/[slug]/page.tsx +1 -1
  34. package/templates/storefront-nextjs/app/products/page.tsx +2 -2
  35. package/templates/storefront-nextjs/app/search/page.tsx +1 -1
  36. package/templates/storefront-nextjs/components/auth/auth-guard.tsx +1 -1
  37. package/templates/storefront-nextjs/components/commerce/add-to-cart-button.tsx +1 -1
  38. package/templates/storefront-nextjs/components/commerce/cart-icon.tsx +1 -1
  39. package/templates/storefront-nextjs/components/commerce/currency-selector.tsx +2 -2
  40. package/templates/storefront-nextjs/components/commerce/product-filters.tsx +1 -1
  41. package/templates/storefront-nextjs/components/commerce/product-price.tsx +1 -1
  42. package/templates/storefront-nextjs/components/commerce/search-input.tsx +1 -1
  43. package/templates/storefront-nextjs/components/commerce/sort-select.tsx +1 -1
  44. package/templates/storefront-nextjs/components/providers.tsx +1 -1
  45. package/templates/storefront-nextjs/lib/currency.tsx +3 -3
  46. package/templates/storefront-nextjs/lib/format.ts +1 -1
  47. package/templates/storefront-nextjs/lib/graphql-queries.ts +3 -3
  48. package/templates/storefront-nextjs/package.dev.json +1 -1
  49. package/templates/storefront-nextjs/package.json +1 -1
  50. package/templates/storefront-nextjs/package.json.template +1 -1
  51. package/templates/storefront-nextjs/wrangler.toml +4 -0
  52. package/templates/storefront-nextjs-shadcn/.github/workflows/deploy.yml +47 -0
  53. package/templates/storefront-nextjs-shadcn/.github/workflows/preview.yml +47 -0
  54. package/templates/storefront-nextjs-shadcn/CLAUDE.md +148 -35
  55. package/templates/storefront-nextjs-shadcn/README.md +29 -162
  56. package/templates/storefront-nextjs-shadcn/app/account/addresses/page.tsx +98 -91
  57. package/templates/storefront-nextjs-shadcn/app/account/error.tsx +43 -0
  58. package/templates/storefront-nextjs-shadcn/app/account/loading.tsx +19 -0
  59. package/templates/storefront-nextjs-shadcn/app/account/loyalty/page.tsx +53 -162
  60. package/templates/storefront-nextjs-shadcn/app/account/orders/[id]/loading.tsx +60 -0
  61. package/templates/storefront-nextjs-shadcn/app/account/orders/[id]/page.tsx +36 -47
  62. package/templates/storefront-nextjs-shadcn/app/account/orders/page.tsx +46 -29
  63. package/templates/storefront-nextjs-shadcn/app/account/page.tsx +8 -5
  64. package/templates/storefront-nextjs-shadcn/app/account/settings/page.tsx +108 -71
  65. package/templates/storefront-nextjs-shadcn/app/api/auth/clear-token/route.ts +2 -86
  66. package/templates/storefront-nextjs-shadcn/app/api/auth/set-token/route.ts +2 -124
  67. package/templates/storefront-nextjs-shadcn/app/auth/forgot-password/page.tsx +10 -5
  68. package/templates/storefront-nextjs-shadcn/app/blog/[slug]/loading.tsx +17 -0
  69. package/templates/storefront-nextjs-shadcn/app/blog/[slug]/page.tsx +43 -2
  70. package/templates/storefront-nextjs-shadcn/app/blog/loading.tsx +19 -0
  71. package/templates/storefront-nextjs-shadcn/app/brands/page.tsx +2 -1
  72. package/templates/storefront-nextjs-shadcn/app/cart/loading.tsx +26 -0
  73. package/templates/storefront-nextjs-shadcn/app/cart/page.tsx +6 -3
  74. package/templates/storefront-nextjs-shadcn/app/categories/[slug]/category-products-client.tsx +56 -0
  75. package/templates/storefront-nextjs-shadcn/app/categories/[slug]/loading.tsx +32 -0
  76. package/templates/storefront-nextjs-shadcn/app/categories/[slug]/page.tsx +76 -59
  77. package/templates/storefront-nextjs-shadcn/app/categories/page.tsx +8 -4
  78. package/templates/storefront-nextjs-shadcn/app/checkout/error.tsx +43 -0
  79. package/templates/storefront-nextjs-shadcn/app/checkout/loading.tsx +31 -0
  80. package/templates/storefront-nextjs-shadcn/app/checkout/page.tsx +116 -79
  81. package/templates/storefront-nextjs-shadcn/app/collections/[handle]/loading.tsx +19 -0
  82. package/templates/storefront-nextjs-shadcn/app/collections/[handle]/page.tsx +1 -1
  83. package/templates/storefront-nextjs-shadcn/app/collections/loading.tsx +18 -0
  84. package/templates/storefront-nextjs-shadcn/app/collections/page.tsx +7 -4
  85. package/templates/storefront-nextjs-shadcn/app/global-error.tsx +117 -0
  86. package/templates/storefront-nextjs-shadcn/app/globals.css +8 -0
  87. package/templates/storefront-nextjs-shadcn/app/layout.tsx +46 -11
  88. package/templates/storefront-nextjs-shadcn/app/products/[slug]/error.tsx +43 -0
  89. package/templates/storefront-nextjs-shadcn/app/products/[slug]/loading.tsx +29 -0
  90. package/templates/storefront-nextjs-shadcn/app/products/[slug]/page.tsx +6 -6
  91. package/templates/storefront-nextjs-shadcn/app/products/[slug]/product-client.tsx +15 -61
  92. package/templates/storefront-nextjs-shadcn/app/products/loading.tsx +32 -0
  93. package/templates/storefront-nextjs-shadcn/app/products/products-client.tsx +405 -151
  94. package/templates/storefront-nextjs-shadcn/app/search/loading.tsx +18 -0
  95. package/templates/storefront-nextjs-shadcn/app/wishlist/page.tsx +8 -5
  96. package/templates/storefront-nextjs-shadcn/codegen.ts +48 -31
  97. package/templates/storefront-nextjs-shadcn/components/account/customer-info.fragment.graphql +36 -0
  98. package/templates/storefront-nextjs-shadcn/components/account/order-details.tsx +3 -1
  99. package/templates/storefront-nextjs-shadcn/components/account/order-history.tsx +26 -24
  100. package/templates/storefront-nextjs-shadcn/components/account/order-summary.fragment.graphql +36 -0
  101. package/templates/storefront-nextjs-shadcn/components/auth/account-menu.tsx +9 -9
  102. package/templates/storefront-nextjs-shadcn/components/auth/login-form.tsx +11 -37
  103. package/templates/storefront-nextjs-shadcn/components/auth/register-form.tsx +37 -23
  104. package/templates/storefront-nextjs-shadcn/components/cart/cart-drawer.tsx +4 -3
  105. package/templates/storefront-nextjs-shadcn/components/cart/cart-icon.tsx +8 -5
  106. package/templates/storefront-nextjs-shadcn/components/cart/cart-item.tsx +1 -1
  107. package/templates/storefront-nextjs-shadcn/components/cart/cart-line.fragment.graphql +53 -0
  108. package/templates/storefront-nextjs-shadcn/components/cart/cart-summary.tsx +1 -1
  109. package/templates/storefront-nextjs-shadcn/components/cart/shipping-estimator.tsx +22 -7
  110. package/templates/storefront-nextjs-shadcn/components/commerce/currency-selector.tsx +2 -2
  111. package/templates/storefront-nextjs-shadcn/components/commerce/product-actions.tsx +1 -1
  112. package/templates/storefront-nextjs-shadcn/components/commerce/search-input.tsx +2 -2
  113. package/templates/storefront-nextjs-shadcn/components/common/price-display.tsx +35 -11
  114. package/templates/storefront-nextjs-shadcn/components/discount/discount-breakdown.tsx +1 -1
  115. package/templates/storefront-nextjs-shadcn/components/discount/discount-code-input.tsx +3 -3
  116. package/templates/storefront-nextjs-shadcn/components/filters/range-slider-filter.tsx +5 -5
  117. package/templates/storefront-nextjs-shadcn/components/gift-card/gift-card-input.tsx +2 -2
  118. package/templates/storefront-nextjs-shadcn/components/home/category-grid.tsx +2 -1
  119. package/templates/storefront-nextjs-shadcn/components/home/collection-card.fragment.graphql +21 -0
  120. package/templates/storefront-nextjs-shadcn/components/home/featured-collections.tsx +2 -12
  121. package/templates/storefront-nextjs-shadcn/components/home/index.ts +0 -1
  122. package/templates/storefront-nextjs-shadcn/components/hydrated.tsx +24 -0
  123. package/templates/storefront-nextjs-shadcn/components/layout/breadcrumbs.tsx +4 -4
  124. package/templates/storefront-nextjs-shadcn/components/layout/category-node.fragment.graphql +22 -0
  125. package/templates/storefront-nextjs-shadcn/components/layout/currency-selector.tsx +2 -2
  126. package/templates/storefront-nextjs-shadcn/components/layout/header.tsx +33 -23
  127. package/templates/storefront-nextjs-shadcn/components/loyalty/points-balance.tsx +2 -11
  128. package/templates/storefront-nextjs-shadcn/components/loyalty/points-history.tsx +8 -25
  129. package/templates/storefront-nextjs-shadcn/components/loyalty/referral-section.tsx +10 -19
  130. package/templates/storefront-nextjs-shadcn/components/loyalty/rewards-catalog.tsx +17 -41
  131. package/templates/storefront-nextjs-shadcn/components/loyalty/tier-progress.tsx +2 -29
  132. package/templates/storefront-nextjs-shadcn/components/order/index.ts +6 -1
  133. package/templates/storefront-nextjs-shadcn/components/product/b2b-price-display.tsx +3 -1
  134. package/templates/storefront-nextjs-shadcn/components/product/filter-active-pills.tsx +69 -0
  135. package/templates/storefront-nextjs-shadcn/components/product/filter-mobile-sheet.tsx +84 -0
  136. package/templates/storefront-nextjs-shadcn/components/product/filter-price-range.tsx +138 -0
  137. package/templates/storefront-nextjs-shadcn/components/product/index.ts +9 -2
  138. package/templates/storefront-nextjs-shadcn/components/product/product-card.fragment.graphql +49 -0
  139. package/templates/storefront-nextjs-shadcn/components/product/product-card.tsx +3 -31
  140. package/templates/storefront-nextjs-shadcn/components/product/product-detail.fragment.graphql +52 -0
  141. package/templates/storefront-nextjs-shadcn/components/product/product-filters.tsx +176 -123
  142. package/templates/storefront-nextjs-shadcn/components/product/product-grid.tsx +3 -5
  143. package/templates/storefront-nextjs-shadcn/components/product/product-image.tsx +2 -2
  144. package/templates/storefront-nextjs-shadcn/components/product/product-price.tsx +2 -2
  145. package/templates/storefront-nextjs-shadcn/components/product/product-reviews.tsx +5 -4
  146. package/templates/storefront-nextjs-shadcn/components/product/product-sort.tsx +19 -7
  147. package/templates/storefront-nextjs-shadcn/components/product/product-variant-selector.tsx +8 -23
  148. package/templates/storefront-nextjs-shadcn/components/product/product-variant.fragment.graphql +51 -0
  149. package/templates/storefront-nextjs-shadcn/components/product/review-card.tsx +1 -1
  150. package/templates/storefront-nextjs-shadcn/components/product/review-form.tsx +1 -7
  151. package/templates/storefront-nextjs-shadcn/components/product/savings-display.tsx +17 -2
  152. package/templates/storefront-nextjs-shadcn/components/product/similar-products.tsx +3 -2
  153. package/templates/storefront-nextjs-shadcn/components/providers/index.ts +1 -1
  154. package/templates/storefront-nextjs-shadcn/components/providers/stores-provider.tsx +30 -0
  155. package/templates/storefront-nextjs-shadcn/components/providers/theme-provider.tsx +1 -1
  156. package/templates/storefront-nextjs-shadcn/components/returns/index.ts +2 -2
  157. package/templates/storefront-nextjs-shadcn/components/returns/return-request-form.tsx +3 -2
  158. package/templates/storefront-nextjs-shadcn/components/search/search-results.tsx +3 -2
  159. package/templates/storefront-nextjs-shadcn/components/ui/form.tsx +174 -0
  160. package/templates/storefront-nextjs-shadcn/components/ui/index.ts +30 -2
  161. package/templates/storefront-nextjs-shadcn/components/ui/progress.tsx +40 -0
  162. package/templates/storefront-nextjs-shadcn/components/ui/sheet.tsx +107 -0
  163. package/templates/storefront-nextjs-shadcn/components/ui/slider.tsx +33 -0
  164. package/templates/storefront-nextjs-shadcn/components/ui/textarea.tsx +24 -0
  165. package/templates/storefront-nextjs-shadcn/components/wishlist/wishlist-icon.tsx +3 -1
  166. package/templates/storefront-nextjs-shadcn/generated/graphql.ts +12779 -0
  167. package/templates/storefront-nextjs-shadcn/graphql/custom.example.graphql +159 -0
  168. package/templates/storefront-nextjs-shadcn/hooks/index.ts +2 -0
  169. package/templates/storefront-nextjs-shadcn/hooks/use-auth-sync.ts +42 -0
  170. package/templates/storefront-nextjs-shadcn/hooks/use-auth.ts +17 -295
  171. package/templates/storefront-nextjs-shadcn/hooks/use-cart-actions.ts +51 -19
  172. package/templates/storefront-nextjs-shadcn/hooks/use-cart-sync.ts +13 -9
  173. package/templates/storefront-nextjs-shadcn/lib/auth/routes.ts +4 -17
  174. package/templates/storefront-nextjs-shadcn/lib/graphql/client.ts +22 -99
  175. package/templates/storefront-nextjs-shadcn/lib/graphql/config.ts +32 -0
  176. package/templates/storefront-nextjs-shadcn/lib/graphql/fragments.ts +34 -0
  177. package/templates/storefront-nextjs-shadcn/lib/graphql/hooks.ts +687 -632
  178. package/templates/storefront-nextjs-shadcn/lib/graphql/query-keys.ts +86 -0
  179. package/templates/storefront-nextjs-shadcn/lib/graphql/server.ts +131 -182
  180. package/templates/storefront-nextjs-shadcn/lib/graphql/types.ts +62 -0
  181. package/templates/storefront-nextjs-shadcn/lib/theme/theme-config.ts +0 -17
  182. package/templates/storefront-nextjs-shadcn/next-env.d.ts +6 -0
  183. package/templates/storefront-nextjs-shadcn/package.dev.json +1 -3
  184. package/templates/storefront-nextjs-shadcn/package.json +12 -13
  185. package/templates/storefront-nextjs-shadcn/package.json.template +6 -7
  186. package/templates/storefront-nextjs-shadcn/proxy.ts +3 -4
  187. package/templates/storefront-nextjs-shadcn/stores/cart-store.ts +41 -39
  188. package/templates/storefront-nextjs-shadcn/stores/checkout-store.ts +64 -75
  189. package/templates/storefront-nextjs-shadcn/stores/wishlist-store.ts +178 -177
  190. package/templates/storefront-nextjs-shadcn/tsconfig.json +23 -5
  191. package/templates/storefront-nextjs-shadcn/wrangler.toml +4 -0
  192. package/templates/storefront-nextjs-shadcn/CART_INTEGRATION.md +0 -282
  193. package/templates/storefront-nextjs-shadcn/GRAPHQL_DOCUMENT_NAMES.md +0 -190
  194. package/templates/storefront-nextjs-shadcn/GRAPHQL_ERROR_HANDLING.md +0 -263
  195. package/templates/storefront-nextjs-shadcn/GRAPHQL_FIXES_SUMMARY.md +0 -135
  196. package/templates/storefront-nextjs-shadcn/GRAPHQL_INTEGRATION_COMPLETE.md +0 -142
  197. package/templates/storefront-nextjs-shadcn/INTEGRATION_CHECKLIST.md +0 -448
  198. package/templates/storefront-nextjs-shadcn/PRODUCT_DETAIL_PAGE_IMPLEMENTATION.md +0 -307
  199. package/templates/storefront-nextjs-shadcn/THEME_CUSTOMIZATION.md +0 -245
  200. package/templates/storefront-nextjs-shadcn/components/providers/currency-provider.tsx +0 -103
  201. package/templates/storefront-nextjs-shadcn/graphql/collections.example.ts +0 -168
  202. package/templates/storefront-nextjs-shadcn/graphql/products.example.ts +0 -160
  203. package/templates/storefront-nextjs-shadcn/lib/auth/cookies.ts +0 -220
  204. package/templates/storefront-nextjs-shadcn/lib/config.ts +0 -46
  205. package/templates/storefront-nextjs-shadcn/lib/currency/IMPLEMENTATION_SUMMARY.md +0 -254
  206. package/templates/storefront-nextjs-shadcn/lib/currency/README.md +0 -464
  207. package/templates/storefront-nextjs-shadcn/lib/currency/cookie-manager.test.ts +0 -328
  208. package/templates/storefront-nextjs-shadcn/lib/currency/cookie-manager.ts +0 -295
  209. package/templates/storefront-nextjs-shadcn/lib/currency/index.ts +0 -27
  210. package/templates/storefront-nextjs-shadcn/lib/format.ts +0 -226
  211. package/templates/storefront-nextjs-shadcn/lib/hooks.ts +0 -30
  212. package/templates/storefront-nextjs-shadcn/stores/auth-store.ts +0 -66
  213. package/templates/storefront-nextjs-shadcn/stores/currency-store.ts +0 -103
@@ -46,16 +46,16 @@ export async function sdkVersionCommand() {
46
46
  }
47
47
  // Read package.json
48
48
  const pkg = JSON.parse(readFileSync("package.json", "utf-8"));
49
- const installedVersion = pkg.dependencies?.["@doswiftly/commerce-sdk"];
49
+ const installedVersion = pkg.dependencies?.["@doswiftly/storefront-sdk"];
50
50
  if (!installedVersion) {
51
- console.log(chalk.red("✖ @doswiftly/commerce-sdk not installed\n"));
52
- console.log(chalk.gray(" Install with: pnpm add @doswiftly/commerce-sdk\n"));
51
+ console.log(chalk.red("✖ @doswiftly/storefront-sdk not installed\n"));
52
+ console.log(chalk.gray(" Install with: pnpm add @doswiftly/storefront-sdk\n"));
53
53
  process.exit(1);
54
54
  }
55
55
  const spinner = ora("Checking for updates...").start();
56
56
  try {
57
57
  // Fetch latest version from npm registry
58
- const response = await fetchJson("https://registry.npmjs.org/@doswiftly/commerce-sdk/latest");
58
+ const response = await fetchJson("https://registry.npmjs.org/@doswiftly/storefront-sdk/latest");
59
59
  const latestVersion = response.version;
60
60
  spinner.stop();
61
61
  // Clean version strings (remove ^ and ~)
@@ -69,7 +69,7 @@ export async function sdkVersionCommand() {
69
69
  }
70
70
  else {
71
71
  console.log(chalk.yellow("⚠ Update available!\n"));
72
- console.log(chalk.gray(" Run: pnpm update @doswiftly/commerce-sdk@latest\n"));
72
+ console.log(chalk.gray(" Run: pnpm update @doswiftly/storefront-sdk@latest\n"));
73
73
  }
74
74
  }
75
75
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/commands/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAE9C;;GAEG;AACH,KAAK,UAAU,SAAS,CAAI,GAAW;IACrC,OAAO,IAAI,OAAO,CAAC,CA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gB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAE7D,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAC1D,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAEhB,mBAAmB;QACnB,IAAI,cAAc,KAAK,aAAa,EAAE,CAAC;YACrC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,IAAI,CAAC,uDAAuD,CAAC,CACpE,CAAC;QACJ,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC,CAAC;QACxD,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAM,KAAe,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC5D,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC,CAAC;QACvE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -160,7 +160,7 @@ export async function verifyCommand() {
160
160
  ...packageJson.dependencies,
161
161
  ...packageJson.devDependencies,
162
162
  };
163
- const hasCommerceSdk = '@doswiftly/commerce-sdk' in deps;
163
+ const hasCommerceSdk = '@doswiftly/storefront-sdk' in deps;
164
164
  const hasNext = 'next' in deps;
165
165
  if (hasCommerceSdk && hasNext) {
166
166
  results.push({
@@ -172,7 +172,7 @@ export async function verifyCommand() {
172
172
  else {
173
173
  const missing = [];
174
174
  if (!hasCommerceSdk)
175
- missing.push('@doswiftly/commerce-sdk');
175
+ missing.push('@doswiftly/storefront-sdk');
176
176
  if (!hasNext)
177
177
  missing.push('next');
178
178
  results.push({
@@ -1 +1 @@
1
- {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/commands/verify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAS9C;;GAEG;AACH,KAAK,UAAU,aAAa,CAC1B,GAAW,EACX,UAAkB,IAAI;IAEtB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;YAC/B,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YAE9D,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE;gBAC/C,OAAO,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,UAAU,KAAK,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;YAClE,CAAC,CAAC,CAAC;YAEH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gBACpB,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAA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AG,MAAM,SAAS,CAAC,IAAI,CAClH,CAAC;IAEF,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAChE,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;SAAM,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,MAAM,CAAC,wDAAwD,CAAC,CACvE,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,KAAK,CAAC,qDAAqD,CAAC,CACnE,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -59,7 +59,7 @@ export declare function getPackageManagerInfo(name: PackageManager): Promise<Pac
59
59
  * @example
60
60
  * ```typescript
61
61
  * // Install a package
62
- * await runPackageManager('pnpm', ['add', '@doswiftly/commerce-sdk']);
62
+ * await runPackageManager('pnpm', ['add', '@doswiftly/storefront-sdk']);
63
63
  *
64
64
  * // Run a script
65
65
  * await runPackageManager('npm', ['run', 'build']);
@@ -141,7 +141,7 @@ export async function getPackageManagerInfo(name) {
141
141
  * @example
142
142
  * ```typescript
143
143
  * // Install a package
144
- * await runPackageManager('pnpm', ['add', '@doswiftly/commerce-sdk']);
144
+ * await runPackageManager('pnpm', ['add', '@doswiftly/storefront-sdk']);
145
145
  *
146
146
  * // Run a script
147
147
  * await runPackageManager('npm', ['run', 'build']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doswiftly/cli",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "DoSwiftly CLI - Scaffold and deploy e-commerce storefronts",
5
5
  "homepage": "https://doswiftly.pl",
6
6
  "publishConfig": {
@@ -7,3 +7,7 @@ compatibility_flags = ["nodejs_compat"]
7
7
 
8
8
  # Assets directory for static files
9
9
  assets = { directory = ".open-next/assets", binding = "ASSETS" }
10
+
11
+ # Cloudflare Images binding for Next.js /_next/image optimization
12
+ [images]
13
+ binding = "IMAGES"
@@ -1,4 +1,8 @@
1
- # DoSwiftly Storefront Template
1
+ # DoSwiftly Storefront Template (DEPRECATED)
2
+
3
+ > **DEPRECATED**: This template is no longer maintained. Use `storefront-nextjs-shadcn` instead, which follows the Hydrogen-style codegen-first architecture with local hook generation.
4
+ >
5
+ > This template imports pre-built hooks from `@doswiftly/storefront-sdk/graphql/client|server` which are no longer exported as of SDK v3.0.0.
2
6
 
3
7
  A modern, production-ready e-commerce storefront built with Next.js 15 and the DoSwiftly Commerce SDK.
4
8
 
@@ -90,14 +94,14 @@ This template uses a **hybrid architecture** that combines React Server Componen
90
94
 
91
95
  ### Server Components (RSC)
92
96
 
93
- Import from `@doswiftly/commerce-sdk/graphql/server`:
97
+ Import from `@doswiftly/storefront-sdk/graphql/server`:
94
98
 
95
99
  ```typescript
96
100
  import {
97
101
  useProducts,
98
102
  useProduct,
99
103
  useCategories,
100
- } from "@doswiftly/commerce-sdk/graphql/server";
104
+ } from "@doswiftly/storefront-sdk/graphql/server";
101
105
 
102
106
  // All functions return normalized data (no edges/nodes)
103
107
  // Cached per-request via React cache()
@@ -124,7 +128,7 @@ export default async function ProductsPage() {
124
128
 
125
129
  ### Client Components
126
130
 
127
- Import from `@doswiftly/commerce-sdk/graphql/client`:
131
+ Import from `@doswiftly/storefront-sdk/graphql/client`:
128
132
 
129
133
  ```tsx
130
134
  "use client";
@@ -133,7 +137,7 @@ import {
133
137
  useProducts,
134
138
  useCart,
135
139
  useCartLinesAdd,
136
- } from "@doswiftly/commerce-sdk/graphql/client";
140
+ } from "@doswiftly/storefront-sdk/graphql/client";
137
141
 
138
142
  export function ProductList() {
139
143
  // React Query hook - returns normalized data (same as server!)
@@ -195,12 +199,12 @@ Both server and client use **identical function names AND return structures**:
195
199
 
196
200
  ```typescript
197
201
  // Server (RSC) - async function, returns normalized data
198
- import { useProducts } from "@doswiftly/commerce-sdk/graphql/server";
202
+ import { useProducts } from "@doswiftly/storefront-sdk/graphql/server";
199
203
  const { products, pageInfo } = await useProducts({ first: 10 });
200
204
  // products is a flat array ✅
201
205
 
202
206
  // Client - React Query hook, returns normalized data (same!)
203
- import { useProducts } from "@doswiftly/commerce-sdk/graphql/client";
207
+ import { useProducts } from "@doswiftly/storefront-sdk/graphql/client";
204
208
  const { data } = useProducts({ first: 10 });
205
209
  const products = data?.products; // Also a flat array ✅
206
210
  ```
@@ -234,7 +238,7 @@ const products = data?.products; // Also a flat array ✅
234
238
 
235
239
  ```tsx
236
240
  // RSC - automatically authenticated via cookies
237
- import { useCustomer } from "@doswiftly/commerce-sdk/graphql/server";
241
+ import { useCustomer } from "@doswiftly/storefront-sdk/graphql/server";
238
242
 
239
243
  export default async function AccountPage() {
240
244
  const { customer } = await useCustomer();
@@ -248,7 +252,7 @@ export default async function AccountPage() {
248
252
 
249
253
  // Client - same pattern with loading state
250
254
  ("use client");
251
- import { useCustomer, useAuth } from "@doswiftly/commerce-sdk/graphql/client";
255
+ import { useCustomer, useAuth } from "@doswiftly/storefront-sdk/graphql/client";
252
256
 
253
257
  export function ProfileClient() {
254
258
  const { data, isLoading } = useCustomer();
@@ -273,7 +277,7 @@ Currency is read from `doswiftly_preferred_currency` cookie and automatically ap
273
277
 
274
278
  ```tsx
275
279
  "use client";
276
- import { useCurrency } from "@doswiftly/commerce-sdk/graphql/react";
280
+ import { useCurrency } from "@doswiftly/storefront-sdk/graphql/react";
277
281
  import { useRouter } from "next/navigation";
278
282
 
279
283
  export function CurrencySelector() {
@@ -360,7 +364,7 @@ Combine RSC and Client Components for optimal performance:
360
364
 
361
365
  ```tsx
362
366
  // app/products/[slug]/page.tsx (RSC)
363
- import { useProduct } from "@doswiftly/commerce-sdk/graphql/server";
367
+ import { useProduct } from "@doswiftly/storefront-sdk/graphql/server";
364
368
  import { AddToCartButton } from "@/components/commerce/add-to-cart";
365
369
 
366
370
  export default async function ProductPage({ params }) {
@@ -384,7 +388,7 @@ export default async function ProductPage({ params }) {
384
388
  // components/commerce/add-to-cart.tsx (Client)
385
389
  "use client";
386
390
 
387
- import { useCartManager } from "@doswiftly/commerce-sdk/graphql/react";
391
+ import { useCartManager } from "@doswiftly/storefront-sdk/graphql/react";
388
392
 
389
393
  export function AddToCartButton({ productId, variants }) {
390
394
  const { addItem, loading } = useCartManager();
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import Link from "next/link";
4
- import { useCustomer } from "@doswiftly/commerce-sdk/graphql/client";
5
- import { useAuth } from "@doswiftly/commerce-sdk/graphql/react";
4
+ import { useCustomer } from "@doswiftly/storefront-sdk/graphql/client";
5
+ import { useAuth } from "@doswiftly/storefront-sdk/graphql/react";
6
6
  import { AuthGuard } from "@/components/auth/auth-guard";
7
7
 
8
8
  function OrdersContent() {
@@ -2,8 +2,8 @@
2
2
 
3
3
  import Link from "next/link";
4
4
  import { useRouter } from "next/navigation";
5
- import { useAuth, useLogout } from "@doswiftly/commerce-sdk/graphql/react";
6
- import { useCustomer } from "@doswiftly/commerce-sdk/graphql/client";
5
+ import { useAuth, useLogout } from "@doswiftly/storefront-sdk/graphql/react";
6
+ import { useCustomer } from "@doswiftly/storefront-sdk/graphql/client";
7
7
  import { AuthGuard } from "@/components/auth/auth-guard";
8
8
 
9
9
  function AccountContent() {
@@ -3,7 +3,7 @@
3
3
  import { useState, FormEvent, Suspense } from "react";
4
4
  import Link from "next/link";
5
5
  import { useRouter, useSearchParams } from "next/navigation";
6
- import { useLogin } from "@doswiftly/commerce-sdk/graphql/react";
6
+ import { useLogin } from "@doswiftly/storefront-sdk/graphql/react";
7
7
  import { AuthGuard } from "@/components/auth/auth-guard";
8
8
 
9
9
  function LoginFormContent() {
@@ -3,7 +3,7 @@
3
3
  import { useState, FormEvent } from "react";
4
4
  import Link from "next/link";
5
5
  import { useRouter } from "next/navigation";
6
- import { useRegister } from "@doswiftly/commerce-sdk/graphql/react";
6
+ import { useRegister } from "@doswiftly/storefront-sdk/graphql/react";
7
7
  import { AuthGuard } from "@/components/auth/auth-guard";
8
8
 
9
9
  function RegisterForm() {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import Link from "next/link";
4
4
  import { Trash2, Plus, Minus, ShoppingCart, Loader2 } from "lucide-react";
5
- import { useCartManager } from "@doswiftly/commerce-sdk/graphql/react";
5
+ import { useCartManager } from "@doswiftly/storefront-sdk/graphql/react";
6
6
 
7
7
  /**
8
8
  * CartPage - Shopping cart with real GraphQL data
@@ -3,8 +3,8 @@ import { notFound } from "next/navigation";
3
3
  import {
4
4
  useCategory,
5
5
  useProducts,
6
- } from "@doswiftly/commerce-sdk/graphql/server";
7
- import { ProductSortKeys } from "@doswiftly/commerce-sdk/graphql";
6
+ } from "@doswiftly/storefront-sdk/graphql/server";
7
+ import { ProductSortKeys } from "@doswiftly/storefront-sdk/graphql";
8
8
  import { Pagination } from "@/components/commerce/pagination";
9
9
  import { SortSelect } from "@/components/commerce/sort-select";
10
10
 
@@ -1,5 +1,5 @@
1
1
  import Link from "next/link";
2
- import { useCategories } from "@doswiftly/commerce-sdk/graphql/server";
2
+ import { useCategories } from "@doswiftly/storefront-sdk/graphql/server";
3
3
 
4
4
  export default async function CategoriesPage() {
5
5
  // Fetch all root categories
@@ -3,7 +3,7 @@ import { notFound } from "next/navigation";
3
3
  import {
4
4
  useCollection,
5
5
  useProducts,
6
- } from "@doswiftly/commerce-sdk/graphql/server";
6
+ } from "@doswiftly/storefront-sdk/graphql/server";
7
7
  import { Pagination } from "@/components/commerce/pagination";
8
8
 
9
9
  interface CollectionPageProps {
@@ -1,5 +1,5 @@
1
1
  import Link from "next/link";
2
- import { useCollections } from "@doswiftly/commerce-sdk/graphql/server";
2
+ import { useCollections } from "@doswiftly/storefront-sdk/graphql/server";
3
3
 
4
4
  export default async function CollectionsPage() {
5
5
  // Fetch all collections
@@ -2,7 +2,7 @@ import Link from "next/link";
2
2
  import {
3
3
  useProducts,
4
4
  useCategories,
5
- } from "@doswiftly/commerce-sdk/graphql/server";
5
+ } from "@doswiftly/storefront-sdk/graphql/server";
6
6
 
7
7
  export default async function HomePage() {
8
8
  // Fetch featured products
@@ -1,6 +1,6 @@
1
1
  import Link from "next/link";
2
2
  import { notFound } from "next/navigation";
3
- import { useProduct } from "@doswiftly/commerce-sdk/graphql/server";
3
+ import { useProduct } from "@doswiftly/storefront-sdk/graphql/server";
4
4
  import { ProductActions } from "@/components/commerce/product-actions";
5
5
 
6
6
  interface ProductPageProps {
@@ -2,8 +2,8 @@ import Link from "next/link";
2
2
  import {
3
3
  useProducts,
4
4
  useCategories,
5
- } from "@doswiftly/commerce-sdk/graphql/server";
6
- import { ProductSortKeys } from "@doswiftly/commerce-sdk/graphql";
5
+ } from "@doswiftly/storefront-sdk/graphql/server";
6
+ import { ProductSortKeys } from "@doswiftly/storefront-sdk/graphql";
7
7
  import { ProductFilters } from "@/components/commerce/product-filters";
8
8
  import { Pagination } from "@/components/commerce/pagination";
9
9
 
@@ -1,5 +1,5 @@
1
1
  import Link from "next/link";
2
- import { useProducts } from "@doswiftly/commerce-sdk/graphql/server";
2
+ import { useProducts } from "@doswiftly/storefront-sdk/graphql/server";
3
3
  import { SearchInput } from "@/components/commerce/search-input";
4
4
  import { Pagination } from "@/components/commerce/pagination";
5
5
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useEffect, ReactNode } from "react";
4
4
  import { useRouter } from "next/navigation";
5
- import { useAuth } from "@doswiftly/commerce-sdk/graphql/react";
5
+ import { useAuth } from "@doswiftly/storefront-sdk/graphql/react";
6
6
  import { redirects } from "@/lib/auth/routes";
7
7
 
8
8
  interface AuthGuardProps {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useState } from "react";
4
4
  import { ShoppingCart, Loader2, Check } from "lucide-react";
5
- import { useCartManager } from "@doswiftly/commerce-sdk/graphql/react";
5
+ import { useCartManager } from "@doswiftly/storefront-sdk/graphql/react";
6
6
 
7
7
  interface AddToCartButtonProps {
8
8
  variantId: string;
@@ -2,7 +2,7 @@
2
2
 
3
3
  import Link from "next/link";
4
4
  import { ShoppingCart } from "lucide-react";
5
- import { useCartManager } from "@doswiftly/commerce-sdk/graphql/react";
5
+ import { useCartManager } from "@doswiftly/storefront-sdk/graphql/react";
6
6
 
7
7
  /**
8
8
  * CartIcon - Cart icon with dynamic item count
@@ -2,11 +2,11 @@
2
2
 
3
3
  import { useState, useRef, useEffect } from "react";
4
4
  import { ChevronDown, Check, Globe } from "lucide-react";
5
- import { useCurrency } from "@doswiftly/commerce-sdk/graphql/react";
5
+ import { useCurrency } from "@doswiftly/storefront-sdk/graphql/react";
6
6
  import {
7
7
  useCurrencyStore,
8
8
  selectIsHydrated,
9
- } from "@doswiftly/commerce-sdk/graphql/react/stores";
9
+ } from "@doswiftly/storefront-sdk/graphql/react/stores";
10
10
 
11
11
  // ============================================================================
12
12
  // CURRENCY DATA
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useRouter, useSearchParams, usePathname } from "next/navigation";
4
4
  import { useCallback } from "react";
5
- import { ProductSortKeys } from "@doswiftly/commerce-sdk/graphql";
5
+ import { ProductSortKeys } from "@doswiftly/storefront-sdk/graphql";
6
6
 
7
7
  interface Category {
8
8
  id: string;
@@ -7,7 +7,7 @@ import type {
7
7
  Money,
8
8
  ConvertedPriceRange,
9
9
  ProductPriceRange,
10
- } from "@doswiftly/commerce-sdk/graphql";
10
+ } from "@doswiftly/storefront-sdk/graphql";
11
11
 
12
12
  // ============================================================================
13
13
  // TYPES - Using SDK types (SSOT)
@@ -3,7 +3,7 @@
3
3
  import { useState, useEffect, useRef, useCallback } from "react";
4
4
  import { useRouter } from "next/navigation";
5
5
  import { Search, X, Loader2 } from "lucide-react";
6
- import { useProductSearch } from "@doswiftly/commerce-sdk/graphql/client";
6
+ import { useProductSearch } from "@doswiftly/storefront-sdk/graphql/client";
7
7
  import { useDebouncedValue } from "@/lib/hooks";
8
8
  import Link from "next/link";
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useRouter, useSearchParams, usePathname } from "next/navigation";
4
4
  import { useCallback } from "react";
5
- import { ProductSortKeys } from "@doswiftly/commerce-sdk/graphql";
5
+ import { ProductSortKeys } from "@doswiftly/storefront-sdk/graphql";
6
6
 
7
7
  interface SortSelectProps {
8
8
  currentSort?: string;
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  import { ReactNode } from "react";
16
- import { StorefrontProvider } from "@doswiftly/commerce-sdk/graphql/react";
16
+ import { StorefrontProvider } from "@doswiftly/storefront-sdk/graphql/react";
17
17
 
18
18
  // ============================================================================
19
19
  // TYPES
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * For currency state management, use the SDK:
7
7
  * ```tsx
8
- * import { useCurrency } from '@doswiftly/commerce-sdk/graphql/react';
8
+ * import { useCurrency } from '@doswiftly/storefront-sdk/graphql/react';
9
9
  *
10
10
  * function MyComponent() {
11
11
  * const { currency, setCurrency, supportedCurrencies } = useCurrency();
@@ -14,10 +14,10 @@
14
14
  */
15
15
 
16
16
  // Re-export useCurrency from SDK for convenience
17
- export { useCurrency } from "@doswiftly/commerce-sdk/graphql/react";
17
+ export { useCurrency } from "@doswiftly/storefront-sdk/graphql/react";
18
18
 
19
19
  // Re-export types from SDK
20
- import type { PriceMoney, Money } from "@doswiftly/commerce-sdk/graphql";
20
+ import type { PriceMoney, Money } from "@doswiftly/storefront-sdk/graphql";
21
21
  export type { PriceMoney, Money };
22
22
 
23
23
  // ============================================================================
@@ -4,7 +4,7 @@
4
4
  * @module storefront-nextjs/lib/format
5
5
  */
6
6
 
7
- import type { PriceMoney, Money } from "@doswiftly/commerce-sdk/graphql";
7
+ import type { PriceMoney, Money } from "@doswiftly/storefront-sdk/graphql";
8
8
 
9
9
  // ============================================================================
10
10
  // CURRENCY DATA
@@ -8,7 +8,7 @@
8
8
  * Instead of raw GraphQL queries, use the auto-generated SDK with factory:
9
9
  *
10
10
  * ```typescript
11
- * import { createStorefrontSdkFromEnv } from "@doswiftly/commerce-sdk/graphql";
11
+ * import { createStorefrontSdkFromEnv } from "@doswiftly/storefront-sdk/graphql";
12
12
  *
13
13
  * const sdk = createStorefrontSdkFromEnv();
14
14
  * const { products } = await sdk.Products({ first: 20 });
@@ -21,7 +21,7 @@
21
21
  * - ✅ No manual GraphQL string maintenance
22
22
  *
23
23
  * ## Adding custom queries:
24
- * See: packages/@doswiftly/commerce-sdk/CUSTOM_OPERATIONS.md
24
+ * See: packages/@doswiftly/storefront-sdk/CUSTOM_OPERATIONS.md
25
25
  *
26
26
  * ---
27
27
  *
@@ -36,7 +36,7 @@
36
36
  * Types are imported from SDK (SSOT) - auto-generated from GraphQL schema.
37
37
  */
38
38
 
39
- import type { PriceMoney, Money } from "@doswiftly/commerce-sdk/graphql";
39
+ import type { PriceMoney, Money } from "@doswiftly/storefront-sdk/graphql";
40
40
  export type { PriceMoney, Money };
41
41
 
42
42
  // ============================================================================
@@ -9,7 +9,7 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@doswiftly/commerce-sdk": "file:../../../commerce-sdk",
12
+ "@doswiftly/storefront-sdk": "file:../../../commerce-sdk",
13
13
  "graphql-request": "^7.1.2",
14
14
  "graphql": "^16.10.0",
15
15
  "next": "latest",
@@ -10,7 +10,7 @@
10
10
  "lint": "next lint"
11
11
  },
12
12
  "dependencies": {
13
- "@doswiftly/commerce-sdk": "{{SDK_VERSION}}",
13
+ "@doswiftly/storefront-sdk": "{{SDK_VERSION}}",
14
14
  "graphql-request": "^7.1.2",
15
15
  "graphql": "^16.10.0",
16
16
  "next": "^15.1.9",
@@ -9,7 +9,7 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@doswiftly/commerce-sdk": "{{SDK_VERSION}}",
12
+ "@doswiftly/storefront-sdk": "{{SDK_VERSION}}",
13
13
  "@tanstack/react-query": "^5.62.7",
14
14
  "graphql-request": "^7.1.2",
15
15
  "graphql": "^16.10.0",
@@ -7,3 +7,7 @@ compatibility_flags = ["nodejs_compat"]
7
7
 
8
8
  # Assets directory for static files
9
9
  assets = { directory = ".open-next/assets", binding = "ASSETS" }
10
+
11
+ # Cloudflare Images binding for Next.js /_next/image optimization
12
+ [images]
13
+ binding = "IMAGES"
@@ -0,0 +1,47 @@
1
+ name: Deploy Storefront
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
+ env:
11
+ NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
12
+ NEXT_PUBLIC_SHOP_SLUG: ${{ secrets.NEXT_PUBLIC_SHOP_SLUG }}
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Detect package manager
17
+ id: pm
18
+ run: |
19
+ if [ -f pnpm-lock.yaml ]; then
20
+ echo "manager=pnpm" >> $GITHUB_OUTPUT
21
+ echo "install=pnpm install --frozen-lockfile" >> $GITHUB_OUTPUT
22
+ elif [ -f yarn.lock ]; then
23
+ echo "manager=yarn" >> $GITHUB_OUTPUT
24
+ echo "install=yarn install --frozen-lockfile" >> $GITHUB_OUTPUT
25
+ else
26
+ echo "manager=npm" >> $GITHUB_OUTPUT
27
+ echo "install=npm ci" >> $GITHUB_OUTPUT
28
+ fi
29
+
30
+ - name: Setup pnpm
31
+ if: steps.pm.outputs.manager == 'pnpm'
32
+ uses: pnpm/action-setup@v4
33
+
34
+ - uses: actions/setup-node@v4
35
+ with:
36
+ node-version: 20
37
+ cache: ${{ steps.pm.outputs.manager }}
38
+
39
+ - name: Install dependencies
40
+ run: ${{ steps.pm.outputs.install }}
41
+
42
+ - name: Deploy to DoSwiftly
43
+ run: |
44
+ npx --yes @doswiftly/cli@latest --version
45
+ npx @doswiftly/cli@latest deploy run --type PRODUCTION
46
+ env:
47
+ DOSWIFTLY_DEPLOY_TOKEN: ${{ secrets.DOSWIFTLY_DEPLOY_TOKEN }}