Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1 KB

LOCAL_DEVELOPMENT.md

File metadata and controls

41 lines (29 loc) · 1 KB

Local Development

  1. Clone the repo to a local folder and install composer dependencies using the following command:

    $ composer install
    
  2. From the plugin root directory, run the following commands:

    $ (cd tests/Application && yarn install)
    $ (cd tests/Application && yarn build)
    $ (cd tests/Application && bin/console assets:install public -e test)
    
    $ (cd tests/Application && bin/console doctrine:database:create -e test)
    $ (cd tests/Application && bin/console doctrine:schema:create -e test)

Don't forget to set your database credentials in the .env file.

Starting dev server

  • Using dev environment:

    $ (cd tests/Application && bin/console sylius:fixtures:load -e dev)
    $ (cd tests/Application && bin/console server:run -d public -e dev)

Testing

  • Easy Coding Standard

    $ vendor/bin/ecs check src
  • PHPStan

    vendor/bin/phpstan analyse -c phpstan.neon -l max src/