composer-monorepo-plugin
composer-monorepo-plugin copied to clipboard
archive sub-command
If you want to produce deployable build artifacts, then just as composer archive
there should be a way to build a tarball or directory of code with all its dependencies inlined into the components vendor/
folder.
Example:
components/Foo/src
components/Foo/web
components/Foo/vendor/autoload.php
vendor/symfony/http-foundation
Should collapse into a build/
dir:
Foo/src
Foo/web
Foo/vendor/autoload.php
Foo/vendor/symfony/http-foundation
Currently, how can we create an archive for a sub-package?
My workaround is to create a composer.json
in the sub-package and repeat the same information as if it is a normal package.
Is there a better way to do it?
🌷