Closed davidperezgar closed 2 months ago
Since it's just a fancy way of making a zip file, there isn't really any special way for doing that.
cd my-project
composer install
wp dist-archive .
This will also include the package which is not needed in production. So to avoid this, you can use separate folder as base folder to archive.
Obviously I was thinking in the same command
WP-CLI is all about composability. If you want to run composer before zipping, then run composer before dist-archive. Why doesn't that work for you?
I added dist archive as composer dev dependency. That is why.
No problem, thanks. I concatenate the command, and it working fine.
composer update --no-dev --working-dir=wp-content/plugins/plugin && wp dist-archive wp-content/plugins/plugin ~/projects/ --filename-format={name}-{version}
Hello! I love this command and I'm using a lot. I'd need run composer before makes the dist archive. How could approach that?