A monorepo for Adobe Commerce Events packages. This repo is using turborepo to manage packages.
This turborepo uses Yarn as a package manager. Install yarn if you haven't already by running npm install -g yarn
.
To develop all apps and packages, run the following command:
cd commerce-events
yarn dev
This runs all packages and examples at the same time. The newer examples are using NextJS to make sure we cover use cases for modern package development. Under the old-examples, we are using parcel to just quickly host static files and test our amd/umd scripts.
Under the dev script, our built files are hosted at:
http://localhost:8080/index.js
http://localhost:8081/index.js
Merging a change to the main
branch triggers a github action that builds and deploys the latest code to QA: https://cdn.jsdelivr.net/npm/@adobe/magento-storefront-event-collector@qa/dist/index.js.
Release steps:
create a PR with a version bump in the package.json and package-lock.json in the package(s) you're releasing (example PR here)
once the PR is approved and merged, create a new release tag for the repo
Creating a new release tag triggers a github action that builds and deploys the latest code to Prod: https://cdn.jsdelivr.net/npm/@adobe/magento-storefront-event-collector/dist/index.js.
Name | NPM Namespace | version |
---|---|---|
storefront-events-sdk | @adobe/magento-storefront-events-sdk |
1.x |
storefront-events-collector | @adobe/magento-storefront-event-collector |
1.x |