pmforms icon indicating copy to clipboard operation
pmforms copied to clipboard

Add composer.json

Open SOF3 opened this issue 4 years ago • 10 comments

For convenience of pulling from composer for phpstan

SOF3 avatar Apr 18 '21 17:04 SOF3

Is there a reason not to just handle this the same way as any other virion?

dktapps avatar Apr 18 '21 17:04 dktapps

I'm not sure how any other virion is handled. Isn't phpstan + compose rthe standard way to setup this locally?

SOF3 avatar Apr 18 '21 18:04 SOF3

I don't know. Virions are your domain.

dktapps avatar Apr 18 '21 18:04 dktapps

phpstan is not my domain though. Afaik it's not trivial to setup phpstan for projects that depend on other plugins or virions. Composer might be a good solution to this, but I don't know if that's what everyone is doing.

SOF3 avatar Apr 19 '21 04:04 SOF3

It's easy enough, just add the src directory to scanDirectories.

dktapps avatar Apr 19 '21 09:04 dktapps

Yes, but you need to have cloned it locally first. This doesn't feel very standardized.

SOF3 avatar Apr 19 '21 09:04 SOF3

I thought there was a procedure for installing virions locally?

dktapps avatar Apr 19 '21 09:04 dktapps

Not automatically. You would have to download them one by one on a CI environment. This is due to the unfortunate design choice that virions are declared in a Poggit-specific file.

SOF3 avatar Apr 19 '21 15:04 SOF3

I thought that's what DEVirion was for ... It seems to me like your purpose would be better served by improving the virion installation process instead of littering every virion repository with composer.json files.

dktapps avatar Apr 19 '21 15:04 dktapps

I thought that's what DEVirion was for ... It seems to me like your purpose would be better served by improving the virion installation process instead of littering every virion repository with composer.json files.

Nope, devirion just loads virions from the virions folder.

SOF3 avatar Apr 19 '21 15:04 SOF3

I don't think composer.lock should be committed here

dktapps avatar Apr 08 '23 10:04 dktapps

what's the general rule? no composer.lock for libraries?

SOF3 avatar Apr 08 '23 11:04 SOF3

Yes, it's not used for libraries anyway. It's only useful for the top-level project where composer install is run, to lock dependencies to a known state.

dktapps avatar Apr 08 '23 13:04 dktapps

Obsoleted by #15

SOF3 avatar Apr 22 '23 06:04 SOF3