-
Notifications
You must be signed in to change notification settings - Fork 4
Installation Guide
The current repository contains modules that belong to Amazon Event Bridge functionality only. To provide the ability to develop the project locally we introduced flow that can help the external developers work with it.
-
Magento git repository is cloned and
2.3-developbranch is checked out. Checking out any2.3release tags should work fine as well.git clone [email protected]:magento/magento2.git .
-
Create
extdirectory in the root directory of Magento:mkdir ext
-
Git clone the
amazon-event-bridgerepository into the appropriate directory insideext:git clone [email protected]:magento-engcom/amazon-event-bridge.git ext/magento/amazon-event-bridge
-
Update Composer settings for the project to allow a better development workflow:
-
minimum-stabilityfor packages is updated todevvalue. This allows to install development modules:composer config minimum-stability dev -
To be able to work with stable packages enable the
prefer-stableproperty:prefer-stable: true. It should be included right above theminimum-stabilitysetting. -
Local package sources are configured, to let Composer know where to find the modules. The following command will configure the extension code, inside
extdirectory, to be treated as a package and symlinked to thevendordirectory:composer config repositories.ext path "./ext/*/*/*"
-
-
Finally, install the
amazon-event-bridge-integrationmetapackage:composer require magento/amazon-event-bridge-integration
At this point, all of the amazon-event-bridge-integration modules are symlinked to vendor directory, which allows both running Magento installation with additional modules and development using the git workflow.
In order to improve Developer Experience when working with this repository structure, a few additional items may be configured:
-
Exclude
extdirectories from root directory Git:echo ext >> ./.git/info/exclude
-
Skip root directory
composer.*files to avoid committing them by mistake:git update-index --skip-worktree composer.json git update-index --skip-worktree composer.lock
This operation is reversible, if needed:
git update-index --no-skip-worktree composer.json git update-index --no-skip-worktree composer.lock