{"id":611,"date":"2025-03-06T12:41:08","date_gmt":"2025-03-06T17:41:08","guid":{"rendered":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/?page_id=611"},"modified":"2025-03-06T13:23:44","modified_gmt":"2025-03-06T18:23:44","slug":"github-repository-templates","status":"publish","type":"page","link":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/handbook\/bu-tools\/github-repository-templates\/","title":{"rendered":"GitHub Repository Templates"},"content":{"rendered":"\n<p>ID has created a template repo for block plugins and themes.<\/p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\">\n<p>Go to <a href=\"https:\/\/github.com\/bu-ist\/bu-plugin-starter-blocks\">https:\/\/github.com\/bu-ist\/bu-plugin-starter-blocks<\/a> for plugins, or <a href=\"https:\/\/github.com\/bu-ist\/responsive-child-starter-3x-block-editor\">https:\/\/github.com\/bu-ist\/responsive-child-starter-3x-block-editor<\/a> for themes, and click &#8220;Use this template&#8221; in the top right, and select &#8220;Create a new repository&#8221;.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\">\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"\/gutenberg\/files\/2025\/02\/use-this-template.png\" alt=\"Screenshot of &quot;Use this template&quot; button in GitHub\" class=\"wp-image-552\" width=\"236\" height=\"145\"\/><\/figure>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\">\n<p>Once you have named your repo and added an optional description, click on &#8220;Create repository&#8221;<\/p>\n\n\n\n<p>Note: Leave the repo private, unless otherwise directed.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\">\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"\/gutenberg\/files\/2025\/02\/new-repo.png\" alt=\"Screenshot of GitHub's &quot;New Repo&quot; screen\" class=\"wp-image-564\" width=\"527\" height=\"536\"\/><\/figure>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\">\n<p>You will notice there is only the &#8220;develop&#8221; branch in the new repo. This is because we left &#8220;Include all branches&#8221; unchecked. <\/p>\n\n\n\n<p>Before any work is done on the branch, a &#8220;main&#8221; branch should be created. The &#8220;develop&#8221; branch will be left as the default, and the &#8220;main&#8221; branch will be available to track code deployed out.<\/p>\n\n\n\n<p>From the &#8220;develop&#8221; branch dropdown, enter &#8220;main&#8221; in the search box. This will create a prompt to create a new &#8220;main&#8221; branch. Click on the prompt.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"375\" height=\"287\" src=\"\/gutenberg\/files\/2025\/02\/only-one-branch.png\" alt=\"\" class=\"wp-image-568\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"368\" height=\"276\" src=\"\/gutenberg\/files\/2025\/02\/add-a-main.png\" alt=\"\" class=\"wp-image-569\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\">\n<p>Based on the &#8220;Setup&#8221; section of the README.md file, use your editor to search and replace references to the various formats of &#8220;Plugin Slug&#8221;. Make sure to include the <code>plugin-slug.php<\/code> file.<\/p>\n\n\n\n<p>Lastly, edit the description and editors sections of <code>package.json<\/code> to be specific to this repo.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"189\" height=\"575\" src=\"\/gutenberg\/files\/2025\/02\/folder-listing.png\" alt=\"\" class=\"wp-image-572\"\/><\/figure>\n\n\n\n<p><\/p>\n<\/div>\n<\/div>\n\n\n\n<p>\u2728\ufe0fYou are now ready to kick off an <code>npm install<\/code> command in your terminal. \u2728\ufe0f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ID has created a template repo for block plugins and themes. Go to https:\/\/github.com\/bu-ist\/bu-plugin-starter-blocks for plugins, or https:\/\/github.com\/bu-ist\/responsive-child-starter-3x-block-editor for themes, and click &#8220;Use this template&#8221; in the top right, and select &#8220;Create a new repository&#8221;. Once you have named your repo and added an optional description, click on &#8220;Create repository&#8221; Note: Leave the repo private, [&hellip;]<\/p>\n","protected":false},"author":6752,"featured_media":0,"parent":577,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"status-is-a-reserved-term":[],"assignee":[],"_links":{"self":[{"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/pages\/611"}],"collection":[{"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/users\/6752"}],"replies":[{"embeddable":true,"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/comments?post=611"}],"version-history":[{"count":3,"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/pages\/611\/revisions"}],"predecessor-version":[{"id":619,"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/pages\/611\/revisions\/619"}],"up":[{"embeddable":true,"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/pages\/577"}],"wp:attachment":[{"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/media?parent=611"}],"wp:term":[{"taxonomy":"status-is-a-reserved-term","embeddable":true,"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/status-is-a-reserved-term?post=611"},{"taxonomy":"assignee","embeddable":true,"href":"https:\/\/id-developer-upgrade-58.cms-devl.bu.edu\/gutenberg\/wp-json\/wp\/v2\/assignee?post=611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}