Previously (before version 4.0.0) ScandiPWA used a single package for both the Magento 2 module and ScandiPWA extension.
<aside>
ℹ️ Not sure which extension version you have?
The following conditions indicate the belonging to an old version:
- The presence of scandipwa/app
folder
- The presence of scandipwa.json
file
</aside>
To use this version with ScandiPWA version 4.0.0 and above, please use following instructions:
git clone [email protected]:scandipwa/split-legacy-extension.git
node <path to cloned projject>/index.js <source path> [<destination path>]
<destination path>
directory two new directories appeared: frontend and backend. These directories are npm and composer modules, correspondingly..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.composer.json
and package.json
files exist and are valid, with relevant information.create-scandipwa-app
setup and the BE-only module on your M2 instance!How to work with ScandiPWA extensions?
~
– home directory: git clone [email protected]:scandipwa/split-legacy-extension.git ~/split-legacy-extension
~/Downloads/my-extension-v3
let's transform it, and save it into ~/Downloads/my-extension-v4
:node ~/split-legacy-extension/index.js ~/Downloads/my-extension ~/Downloads/my-extension-v4
~/Downloads/my-extension-v4
we should see the frontend
and backend
folders there!