Skip to content

Using or Testing a branch

Michael Joseph Panaga edited this page Jun 30, 2020 · 1 revision

You can test / use a specific branch by performing the following:

  1. Clone the repo.
$ git clone [email protected]:WebDevStudios/create-block.git
  1. Navigate to the cloned folder then checkout to the branch you want to test / use.
$ cd create-block
$ git checkout [BRANCH NAME]
  1. To scaffold a new plugin, you can run this command (still in create-block/ directory).
$ npm run create-block WebDevStudios/TodoList
  1. Wait for the command to run. After the command successfully run, you should see a new directory (still inside create-block/ directory) named webdevstudios-todo-list.
  2. wevdevstudios-todo-list folder is the scaffolded plugin. You can now move it to your WordPress' /wp-content/plugins folder to test.
Clone this wiki locally