-
Notifications
You must be signed in to change notification settings - Fork 156
How to setup the plugin development environment
Tim Nolte edited this page Mar 19, 2022
·
6 revisions
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 plugin repository (or your fork of the plugin repository).
-
NPM to install Node packages used to build assets and other tasks. (v12.18.3 at the time of last update.)
- NOTE: A Node version manager, such as NVM, can be used to easily switch between versions as needed by different projects.
- Composer to install PHP packages required by the plugin & WordPress. 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/openid-connect-generic.git
- Change to plugin clone directory:
$ cd ~/<your clone path>/openid-connect-generic
- Install development dependencies & configure environment:
$ npm ci
$ npm run setup:composer
- Startup Local Development instance:
$ npm start
- Shutdown Local Development instance:
$ npm stop
- Restart Local Development instance:
$ npm restart
This plugin uses the NPM WordPress scripts package & env package for local development and builds.