This post documents how I setup WordPress Gutenberg for local development on Windows 7, using Laragon instead of Docker, and made my first pull request to the project. Most folks wanting to test and modify WordPress’ Gutenberg use Docker to manage their environment. That’s great because it’s especially consistent. But I’ve been happy using Laragon and wanted to attempt to avoid setting up yet another dev environment.
My Environment
I use Laragon, which runs great on Windows without needing a virtual machine (similar to XAMPP or WAMP). It comes with PHP, Apache and Nginx, Node, NPM, Git, and basically everything you need to run Gutenberg.
Setting Up a Local Test Site and Gutenberg Repo
I forked the Gutenberg GitHub repository.
I created a new local WordPress site using Laragon’s Quick App feature.
Then, in the new site’s wp-content/plugins/ folder, I opened Laragon’s Terminal and ran git checkout git@github.com:mnelson4/gutenberg.git to checkout my fork of Gutenberg
I needed to change the Node version, as the version that came with Laragon was too old. Although Laragon doesn’t come with NVM, there’s a good tutorial showing how to
Source: https://managewp.org/articles/17966/getting-started-contributing-code-to-wordpress-gutenberg-in-laragon
source https://williechiu40.wordpress.com/2018/10/11/getting-started-contributing-code-to-wordpress-gutenberg-in-laragon/
No comments:
Post a Comment