Skip to content

Development Environments

Kevin Hoffman edited this page Oct 4, 2018 · 5 revisions

The instructions below will help in setting up a local development environment for contributing to the free, pro, and core repositories.

Maps Builder Free Environment

Development of the free plugin is best handled in a local WordPress site such as mapsbuilderfree.test.

From the root of the local WordPress installation:

cd wp-content/plugins
git clone https://github.com/impress-org/google-maps-builder google-maps-builder
cd google-maps-builder
composer install
npm install
gulp

Maps Builder Pro Environment

Development of the pro plugin is best handled in a local WordPress site such as mapsbuilderpro.test.

From the root of the local WordPress installation:

cd wp-content/plugins
git clone https://github.com/impress-org/Maps-Builder-Pro google-maps-builder
cd google-maps-builder
composer install
npm install
gulp

Maps Builder Core Environment

Development of core functionality is best handled as part of a local WordPress site such as mapsbuilderfree.test or mapsbuilderpro.test. The instructions below assume that a free or pro site has already been set up using the instructions above.

To set up Maps Build Core for local development, the maps-builder-core directory installed by Composer must be deleted from the vendor/wordimpress/ directory. Then the Maps Builder Core Git repo can be cloned in its place.

From the root of the local WordPress installation:

cd wp-content/plugins/google-maps-builder/vendor/wordimpress
rm -rf maps-builder-core
git clone https://github.com/impress-org/maps-builder-core maps-builder-core
cd maps-builder-core
composer install

Now the maps-builder-core directory is a Git repository, and changes may be pushed to or pulled from the Maps Builder Core repo on GitHub.

Google Maps Builder

Local Development

Developer Notes

Clone this wiki locally