GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SyliusWishlistPlugin/doc/04-development.md at master · BitBagCommerce/SyliusWishlistPlugin

Expand file tree

/

04-development.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
85 lines (57 loc) · 2.44 KB
/

04-development.md

Copy path

File metadata and controls

85 lines (57 loc) · 2.44 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

BitBag SyliusWishlistPlugin

  • ⬅️ Back
  • ➡️ Testing

Plugin Development

  • Installation
  • Development
  • Frontend
  • Docker

Installation

Clone this repository, go to the plugin root directory and run

composer install
cd tests/Application

If needed, create .env.local file with the correct configuration for your environment in the tests/Application directory.
Then run the following commands from tests/Application:

bin/console doctrine:database:create
bin/console doctrine:schema:create
bin/console sylius:fixtures:load
bin/console assets:install --symlink

Copy package.json.~1.xx.dist file to package.json for specific version of Sylius (example for 1.12.0):

cp package.json.\~1.12.dist package.json

Then:

yarn install
yarn dev

You're ready to start coding 🎉

Development

To start the development server, from the tests/Application directory run:

symfony server:start

and then you should get information about the server address and port (usually http://localhost:8000).
If you don't already have Symfony CLI, here's how to install it: https://symfony.com/download

Frontend

To start working on frontend, from the tests/Application directory run:

yarn watch

It's an infinite process, which will watch your changes in the assets folder and (re)build them. So all of your frontend changes should be done in {root}/src/Resources/assets directory. We have configured two independent entry points that should not be combined - shop for the storefront and admin for the admin panel.

⚠ Note: Before every commit, you should type the yarn dist command from the plugin root directory to rebuild dist assets, which are located in {root}/src/Resources/public.

You also shouldn't add assets to this folder manually because they will be removed automatically

Docker

To test plugin with docker You can use:

$ docker-compose up
$ docker-compose exec -it app composer install
$ docker-compose exec -it app yarn install
$ docker-compose exec -it -w /app/tests/Application app bin/console d:d:c
$ docker-compose exec -it -w /app/tests/Application app bin/console d:s:c
$ docker-compose exec -it -w /app/tests/Application app bin/console sy:fi:lo -q

This should make sure test app from docker container is up and running.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.