This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
How to setup the plugin development environment
Tim Nolte edited this page May 6, 2020
·
1 revision
This page will guide you through the process of setting up the plugin development environment on your local machine. It should work on Linux, macOS, or Windows 10 with the Linux Subsystem.
Before starting, make sure you have the following software installed and working on your machine:
- Git to clone the WooCommerce repository (or your fork of the WooCommerce repository).
- NPM to install Node packages used to build assets and other tasks.
- Composer to install PHP packages required by the plugin & WooCommerce. It's also necessary to use the PHP CodeSniffer that ensures your code follows code standards.
- Docker & Docker Compose(separate download on Linux)
In your terminal, replacing USER_NAME with your GitHub username::
$ git clone [email protected]:USER_NAME/woocommerce-local-pickup-time.git
- Change to plugin clone directory:
$ cd ~/<your clone path>/woocommerce-local-pickup-time
- Install Composer dependencies:
$ composer install
- Install NPM dependencies:
$ npm install
- Setup run-time version of WooCommerce:
$ cd ~/<your clone path>/woocommerce-local-pickup-time/vendor/woocommerce/woocommerce
$ npm install
$ composer install
$ npm run build
- Install WordPress Core instance:
$ npm run env install
- Startup Local Development instance:
$ npm run env start
- Shutdown Local Development instance:
$ npm run env stop
This plugin uses the NPM WordPress scripts package for local development and builds.