Converting legacy Docker setup to CMA
1. Install CMA
cd ./src
# if npm is not initialized, then run
npm init -y
# then install @scandipwa/magento-scripts package
npm i @scandipwa/magento-scripts@latest
# and make sure your package.json has the following scripts:
{
...
"scripts": {
"start": "magento-scripts start",
"stop": "magento-scripts stop",
"cli": "magento-scripts cli",
"logs": "magento-scripts logs",
"link": "magento-scripts link",
"status": "magento-scripts status",
"exec": "magento-scripts exec",
"import-db": "magento-scripts import-db"
}
...
}2. Adjust composer dev packages
3. Adjust theme webpack configuration
4. Run the project and resolve possible issues.
[BONUS]
Preserve data from the old setup
Delete unsed files
Last updated