shopware / storefront
Storefront for Shopware
Requires
- cocur/slugify: 4.0.0
- doctrine/dbal: 2.10.1
- ezyang/htmlpurifier: 4.13.0
- padaliyajay/php-autoprefixer: 1.2
- scssphp/scssphp: 1.0.6
- shopware/core: *
- symfony/cache: ~4.4.13
- symfony/cache-contracts: 1.1.7
- symfony/config: ~4.4.13
- symfony/console: ~4.4.13
- symfony/dependency-injection: ~4.4.13
- symfony/event-dispatcher: ~4.4.13
- symfony/event-dispatcher-contracts: 1.1.7
- symfony/framework-bundle: ~4.4.13
- symfony/http-foundation: ~4.4.13
- symfony/http-kernel: ~4.4.13
- symfony/mime: ~4.4.13
- symfony/routing: ~4.4.13
- symfony/security-core: ~4.4.13
- symfony/security-csrf: ~4.4.13
- symfony/service-contracts: 1.1.8
- symfony/validator: ~4.4.13
- true/punycode: 2.1.1
- twig/intl-extra: 2.12.3
- twig/string-extra: 2.12.3
- twig/twig: 2.12.3
Requires (Dev)
- phpunit/phpunit: 8.5.2
This package is auto-updated.
Last update: 2021-01-25 01:05:30 UTC
README
The Storefront component is a frontend for Shopware\Core written in PHP.
This repository is considered read-only. Please send pull requests to our main Shopware\Core repository.
Getting started
To compile the assets (scss/javascript) you have to run the webpack compiler.
This is easily done by executing the following commands in the shopware root folder via the psh.phar
.
- storefront:dev Builds the project for development
- storefront:hot Starts the hot module reloading server
- storefront:hot-proxy Same as hot, but starts a proxy server with live reload without the need to change twig paths
- storefront:install Installs the node.js dependencies
- storefront:build Builds the project for production
For example:
$ ./psh.phar storefront:dev
It's recommended to use the storefront:hot-proxy
command when developing, so the files will be compiled as soon as they change.
It's also possible to use the webpack-dev-server with hot module reloading (HMR) activated.
To be able to use HMR you have to run the command storefront:hot
and set the isHMRMode
variable,
located in platform/src/Storefront/Resources/views/storefront/base.html.twig
, to true.