This repository was archived by the owner on Jul 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Mike England edited this page Mar 31, 2020
·
5 revisions
This plugin is a baseline for creating Gutenberg projects. To get started follow directions in the repo.
- In the command line navigate to
wp-content/pluginsand clone this repo usinggit clone git@github.com:WebDevStudios/wds-block-starter.git. - Next
cdintowds-block-starter. Before moving forward if you need to rename the plugin follow the Updating Plugin Name (see section below) instructions. - Run
composer installto setup coding standards and vendor dependencies. - Run
npm installto install dependencies and generate assets after installation. - Activate the plugin and begin development.
- Rename the root directory to desired name Ex:
wds-block-starterchanges toblock-starter-test. - Rename
wds-block-starter.phpto match the directory name. Ex:wds-block-starter.phpchanges toblock-starter-test.php. - Update Plugin Heading in the main plugin file as needed.
- Do a search and replace for the namespace
BlockStarterto something unique. - Do a search and replace for the plugin text domain
wdsbsto something unique. - Next run
composer installandnpm run build.