Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
[ ] π Documentation (updates to the documentation, readme or JSDoc annotations)
[ ] π Bug fix (a non-breaking change that fixes an issue)
[ ] π Enhancement (improving an existing functionality like performance)
[x] β¨ New feature (a non-breaking change that adds functionality)
[ ] π§Ή Chore (updates to the build process or auxiliary tools and libraries)
[x] β οΈ Breaking change (fix or feature that would cause existing functionality to change)
π Description
Created a @vue-storefront/nuxt package for Vue Storefront 2
Created a @vue-storefront/nextjs package (support for Pages and App Router)
Added a Nuxt Module which facilitates the setup of SDK for Nuxt Storefronts
Added unit and shared e2e tests
Added a base README for the module, presenting how to set it up
nuxt package requires Node.js v18, therefore as a workaround:
storefront package have been placed within packages/storefront/packages dir
packages/storefront has been excluded from the Yarn workspaces
packages/storefront creates a nested workspace
a custom continuous-delivery-storefront.yml workflow has been created (runs tests on Node18)
release of storefront packages wouldn't be possible with changeset, till we will migrate the whole repo to Node18, we will have to release them manually
for Next.js @vue-storefront/next/client entry is exported, where a "use client" directive is used, so the code can be used in App Router
How to test it locally?
cd packages/storefront
yarn
Then for Next
cd packages/next
yarn build
yarn dev:middleware in one terminal
yarn dev:pages-router or yarn dev:app-router in second terminal
or Nuxt
cd packages/nuxt
yarn build
yarn dev:middleware in one terminal
yarn dev:pages-router or yarn dev in second terminal
π Linked issue
β Type of change
π Description
@vue-storefront/nuxt
package for Vue Storefront 2@vue-storefront/nextjs
package (support for Pages and App Router)nuxt
package requires Node.js v18, therefore as a workaround:packages/storefront/packages
dirpackages/storefront
has been excluded from the Yarn workspacespackages/storefront
creates a nested workspacecontinuous-delivery-storefront.yml
workflow has been created (runs tests on Node18)@vue-storefront/next/client
entry is exported, where a"use client"
directive is used, so the code can be used in App RouterHow to test it locally?
cd packages/storefront
yarn
Then for Next
cd packages/next
yarn build
yarn dev:middleware
in one terminalyarn dev:pages-router
oryarn dev:app-router
in second terminalor Nuxt
cd packages/nuxt
yarn build
yarn dev:middleware
in one terminalyarn dev:pages-router
oryarn dev
in second terminalπ Checklist