Previously (before version 4.0.0) ScandiPWA used a single package for both Magento 2 module and ScandiPWA extension.
To use this version with ScandiPWA version 4.0.0 and above, please use following instructions:
Clone the https://github.com/scandipwa/split-legacy-extension repository using the following command:
git clone [email protected]:scandipwa/split-legacy-extension.git
Run the following command:
node <path to cloned projject>/index.js <source path> [<destination path>]
Notice that in your
<destination path> directory two new directories appeared: frontend and backend. These directories are npm and composer modules, correspondingly.
Validate the new modules. Things to verify:
All first-level children of the initial directory have found their path to the correct modules. E.g. if you have some
.editorconfig in the root of your initial module, it will not be copied - the variety of files there can be endless and it is ambiguous where should they go. You are expected to handle that yourself. This tool only handles the files vital for the ScandiPWA plugin system.
package.json files exist and are valid, with relevant information.
Enjoy the FE-only extension in your
create-scandipwa-app setup and the BE-only module on your M2 instance!
Let's clone the tool into
~ – home directory:
git clone [email protected]:scandipwa/split-legacy-extension.git ~/split-legacy-extension
Our extension is located in
~/Downloads/my-extension-v3 let's transform it, and save it into
node ~/split-legacy-extension/index.js ~/Downloads/my-extension ~/Downloads/my-extension-v4
Now if we check the
~/Downloads/my-extension-v4 we should see the
backend folders there!