Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.
Mike England edited this page Mar 31, 2020 · 5 revisions

Welcome to the wds-block-starter wiki!

This plugin is a baseline for creating Gutenberg projects. To get started follow directions in the repo.

Getting Started

  1. In the command line navigate to wp-content/plugins and clone this repo using git clone [email protected]:WebDevStudios/wds-block-starter.git.
  2. Next cd into wds-block-starter. Before moving forward if you need to rename the plugin follow the Updating Plugin Name (see section below) instructions.
  3. Run composer install to setup coding standards and vendor dependencies.
  4. Run npm install to install dependencies and generate assets after installation.
  5. Activate the plugin and begin development.

Updating Plugin Name

  1. Rename the root directory to desired name Ex: wds-block-starter changes to block-starter-test.
  2. Rename wds-block-starter.php to match the directory name. Ex: wds-block-starter.php changes to block-starter-test.php.
  3. Update Plugin Heading in the main plugin file as needed.
  4. Do a search and replace for the namespace BlockStarter to something unique.
  5. Do a search and replace for the plugin text domain wdsbs to something unique.
  6. Next run composer install and npm run build.