You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to make mini-ultra-lightweight microservice with spiral framework. Actualy I need only Spiral\Framework\Kernel and related classes. But if my composer.json requires only spiral/framework after installation it will download all classes from current monorepo. It not looks like mini-ultra-lightweight way as it could be.
Now it size about 6.9M, not much, but I need only 500.0K
/srv $ du ./vendor/spiral/framework/ -h -s
6.9M ./vendor/spiral/framework/
/srv $ du ./vendor/spiral/framework/src/Framework/ -h -s
500.0K ./vendor/spiral/framework/src/Framework/
Example
Solution 1 (easy). Make new readonly package like spiral/framework-kernel with Spiral\Framework\Kernel classes.
Solution 2 (hard). Rename current repo to spiral/spiral and place Spiral\Framework\* classes to spiral/framework repo.
The text was updated successfully, but these errors were encountered:
Description
I need to make mini-ultra-lightweight microservice with spiral framework. Actualy I need only
Spiral\Framework\Kernel
and related classes. But if my composer.json requires onlyspiral/framework
after installation it will download all classes from current monorepo. It not looks like mini-ultra-lightweight way as it could be.Now it size about 6.9M, not much, but I need only 500.0K
Example
Solution 1 (easy). Make new readonly package like
spiral/framework-kernel
withSpiral\Framework\Kernel
classes.Solution 2 (hard). Rename current repo to
spiral/spiral
and placeSpiral\Framework\*
classes tospiral/framework
repo.The text was updated successfully, but these errors were encountered: