Directory Structure
A high-level overview of how files are organized in Scandi
When creating an app for the first time, the folder structure of the application will look as follows:
π my-app
βββ π README.md
βββ π composer.json
βββ π i18n
βββ π magento
| βββ π etc
| | βββ π view.xml
| βββ π registration.php
| βββ π theme.xml
βββ π node_modules
βββ π package.json
βββ π public
βββ π src
βββ π yarn.lock
ScandiPWA theme src
structure
src
structureScandiPWA theme (aka. your parent theme) has the same root folder structure, but much more files in the src
folder. They are structured as follows:
π src
βββ π component # a place for all components
βββ π query # a place for GraphQL queries
βββ π route # a place for all root pages
βββ π store # a Redux store declarations
βββ π type # a PropType declarations
βββ π util # all utility functions
βββ π index.js # application entrypoint
βββ π service-worker.js # service worker entrypoint
More information about the structure and contents of these folders:
Building BlocksCMA (Create Magento App) structure
CMA structure is similar to the default Magento folder structure, but with a package.json
file in the root directory. For more details, refer to the official CMA guide.
Last updated
Was this helpful?