- copy the .env.example to .env
- add a file composer.json and add this content: { "name": "name/prestashop-plugin", "description": "", "authors": [ { "name": "name/prestashop-plugin", "email": "email" } ], "require": { "php": ">=5.6.0" }, "autoload": { "psr-4": { "\": "src/" }, "classmap": [ "camaloon.php" ], "exclude-from-classmap": [] }, "config": { "preferred-install": "dist", "prepend-autoloader": false }, "type": "prestashop-module", "author": "name", "license": "Camaloon" }
Replace name by your name and email by your email.
- run composer dump-autoload (you should see Generated autoload files)
- run
docker-compose up
- go to admin part, by defult (
http://localhost:8083/adminPS
) - login to admin part (default credentials
[email protected]
/prestashop_demo
) - go to: Modules > Module Catalog
- search for Camaloon module and activate it
Dev environment is powered by Docker, based on official images: https://hub.docker.com/r/prestashop/prestashop/
Important thing is .env
file to setup project, you can check all things that can be altered on Docker Hub.
- login to admin part ( [prestashop_domain]/adminPS )
- go to: Modules > Module Manager
- upload Module
- the archive should have folder plugin on top level
- the folder name should match plugin name
- we cannot put plugin files to the top level
- Add changes to
./CHANGELOG.md
. - Change the version in
./config.xml
. - Push to upstream:
git add . && git commit -m "commit message" && git push
. - Create PR and merge to master
A github action will create the artifact and the release