A dockerized execution environment to make your build system clean of unnecessary dependencies.
Caution! Avoid using the docker :latest
tag as it might be unusable, use :stable
instead as it's built
from the stable tagged versions.
- Make sure that your magepack configuration is present in the project's root directory in file named exactly
build.js
. - Before running this command your Magento static assets should already be deployed and present in the subdirectory
pub/static/frontend/{name-of-your-theme-vendor}
.
Go to the root directory of your Magento project and execute:
docker run -v ${PWD}:/workdir -u $(id -u `whoami`):$(id -g `whoami`) magesuite/bundle-theme-js:stable "{name-of-your-theme-vendor}"