The theme is expected to be found in Magento’s directory for themes: app/design/frontend/<VENDOR>/<NAME>. In docker, by default, the theme is located in app/design/frontend/Scandiweb/pwa.
Note:
do not worry that you see no source files (.js, .scss) in your theme. This is expected. You are meant to create files in the same folder with the same name in order to modify them. See extension guide for that.
The source theme (composer installed) is located in vendor/scandipwa/source. Reference it for efficient development. But do not modify the vendor files! Use the extension mechanism for that.
Observe Magento related files
Because the ScandiPWA is compiled to a valid Magento 2 theme, it must follow Magento theme structure.
Note:
initially Magento_Theme folder is empty. You have to compile the application - see the FAQ.
The modern application stack fluidly merged with the flat structure. Notice, the main folders are:
component - React components
route - application route collection
style - application-wise styles
query - queries for GraphQL requests
type - common React propTypes declarations
store - Redux store configuration
util - application wise helpers
There are a lot of index.js file in the theme. Do not be afraid of them. Except few exceptions, they are just simple aliases to one of the files in the directory. Exceptions are: