uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
552 stars 149 forks source link

add local-dev-yarn command #3611

Closed tobybellwood closed 4 months ago

tobybellwood commented 7 months ago

This PR adds two makefile commands to facilitate easier yarn updating

make local-dev-yarn will mount the entire lagoon directory into a node-builder container, preinstall and build the yarn packages, and drop you into a shell to yarn away. When you exit the container, it clears itself up, leaving the updates to the package.json/yarn.lock in your repo.

make local-dev-yarn-stop is a convenience function that clears the named container away if a process exits badly (or at the beginning/end of a local-dev-yarn cycle.

This removes the need to set up node/yarn on your local machine, and avoids the need to remember how it all sets up.