Closed kaelansmith closed 1 year ago
Latest commit: edb3e6c28b311d058149f93d961f98dfc866f66f
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This PR introduces Spinup Local WP.
I extracted our WordPress backend-starter, minus the Bedrock/WordPress installation folder, into a separate, standalone NPM package. This makes our Docker setup maintainable from a single source of truth, and simplifies the dev experience for CloakWP users, also making it more approachable. The downside for end-users is that it removes their code ownership and control over the Docker configuration; but my hypothesis is that most devs don't want to or know how to work directly with Docker, and would prefer a magic abstraction that just works; we can add more package configuration options over time to allow more control over the Docker config, or users who really want that control can simply opt-out of using Spinup Local WP and use their own Docker system.
Couple nice things this introduces:
package.json
(in order to install Spinup Local WP). This also makes manual installations much simpler, since you can runcomposer create-project roots/bedrock
to spin up a new Bedrock project, and then you just need to runnpm init
andnpm install @cloakwp/spinup-local-wp
(all of which could be easily abstracted into one command in the future)