-
Notifications
You must be signed in to change notification settings - Fork 1
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:
- Clone the repo.
$ git clone [email protected]:WebDevStudios/create-block.git
- Navigate to the cloned folder then checkout to the branch you want to test / use.
$ cd create-block
$ git checkout [BRANCH NAME]
- To scaffold a new plugin, you can run this command (still in
create-block/
directory).
$ npm run create-block WebDevStudios/TodoList
- Wait for the command to run. After the command successfully run, you should see a new directory (still inside
create-block/
directory) namedwebdevstudios-todo-list
. -
wevdevstudios-todo-list
folder is the scaffolded plugin. You can now move it to your WordPress'/wp-content/plugins
folder to test.