Since I change some shops from OXID4 to OXID6 and in the context of many refactorized modules, I have to relatively often use the composer update command to see if the modules install themselves clean. In a shop with 20 modules, the question of whether the module should be overwritten is always very eye-catching.
@leofonic : Yeah, thats interest. I´ll check the class because there is another unclean solution. During Oxid-“Overwriting”, the old unessessary files wouldnt delete. Composer himself is in this case cleaner: Old unessessary files are deleted during update. You´ll didnt found the old stuff in \vendor\YOURNAME\YOURMODULE*. But you´ll found it in the modules \source\modules\YOURVENDOR\YOURMODULE*
Often it is unprolematic, but in case of old unessessary translation-files, the content of the files would still be scanned by OXID.
Yes there is no deletion at all in source. If you’re working on one specific module, maybe you could delete the module folder source/modules/yourmodule before running “composer update -n”. In this case Oxid installs your module from scratch again while leaving the other modules untouched, and you don’t have to answer all the questions.
The plugin removes the shop modules before they are copied anew by the composer-installation. This prevents the inquiry as to whether the modules should be overwritten.
This option is not for live systems, but very helpful during development (see above).
My installation- and update-process is much faster
its not necessary to use the compilation, so you can decide which packages you would like to install. you can create an clean oxid project (without using composer create project) with the following composer.json:
@tabsl: Thanks for your answer. I have an almost identical, minimalist composer.json like you. I also do not install unnecessary payment modules and demo installers anymore.
Unfortunately, the demo files are currently still in the main repository, although there is already a separate Demo-Data-repository for this. That’s why my idea to delete the pictures in retrospect. But @kermit brings the problem already in the OXID developer group (see forum-link above). So it’s just a matter of time.
Your pragmatic approach…
…is awesome.
In the end I’m not sad about being able to deal with composer-plugins.