mrrcrick / Codeday

Code day project repository
0 stars 1 forks source link

Create The Gutenberg Block Development Environment . #3

Open mrrcrick opened 2 years ago

mrrcrick commented 2 years ago

Mahmoud1813

mrrcrick commented 2 years ago

Install Node . Once you install Node . install @wordpress/create-block . Setup a block called gutenberg-protect-block.

mrrcrick commented 2 years ago

@Mahmoud1813 Use npx @wordpress/create-block

Mahmoud1813 commented 2 years ago

Good evening Richard,

I've installed Node and I tried running the command npx @wordpress/create-block but it isn't working. Please advise me on what I should be doing.

Kind Regards, Mahmoud Aboseria

On Fri, Jul 1, 2022 at 6:15 PM richard crick @.***> wrote:

@Mahmoud1813 https://urldefense.com/v3/__https://github.com/Mahmoud1813__;!!BhJSzQqDqA!WRmhmbO5PK6TgrR1FB-RHW-uttp-Ta73KVnDU2n9ggNiV26EXlWIpbzhhVexeKv2QvFAp3CPqFnlmsOUkcsPd-6ua4c$ Use npx @wordpress/create-block

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/mrrcrick/Codeday/issues/3*issuecomment-1172755586__;Iw!!BhJSzQqDqA!WRmhmbO5PK6TgrR1FB-RHW-uttp-Ta73KVnDU2n9ggNiV26EXlWIpbzhhVexeKv2QvFAp3CPqFnlmsOUkcsP8MtznNk$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AQ5L5EB2V3RT72G3R5OQF4TVR5UWJANCNFSM52NHXJDQ__;!!BhJSzQqDqA!WRmhmbO5PK6TgrR1FB-RHW-uttp-Ta73KVnDU2n9ggNiV26EXlWIpbzhhVexeKv2QvFAp3CPqFnlmsOUkcsPjLUdafI$ . You are receiving this because you were mentioned.Message ID: @.***>

mrrcrick commented 2 years ago

Hi Mahmoud, can you screen shot . What error do you get?

Image

Mahmoud1813 commented 2 years ago

This is what I get.

On Thu, Jul 7, 2022 at 3:45 AM richard crick @.***> wrote:

Hi Mahmoud, can you screen shot . What error do you get?

[image: Image] https://urldefense.com/v3/__https://user-images.githubusercontent.com/27628639/177719779-aa05d1d7-1d7c-4487-acc6-413cc60c7770.png__;!!BhJSzQqDqA!Q5dVc8l8kK-8WVNcTHFJgFbeRxGFQYnJQ536uLcuz0_9FhXbeWPu2fQtnbp_E805S8FwdDd_5GnQiVB328s29IWk2xU$

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/mrrcrick/Codeday/issues/3*issuecomment-1177206802__;Iw!!BhJSzQqDqA!Q5dVc8l8kK-8WVNcTHFJgFbeRxGFQYnJQ536uLcuz0_9FhXbeWPu2fQtnbp_E805S8FwdDd_5GnQiVB328s28M25QY0$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AQ5L5EEE4IADRIDPMYGPLPDVS2DITANCNFSM52NHXJDQ__;!!BhJSzQqDqA!Q5dVc8l8kK-8WVNcTHFJgFbeRxGFQYnJQ536uLcuz0_9FhXbeWPu2fQtnbp_E805S8FwdDd_5GnQiVB328s2r0KDQyo$ . You are receiving this because you were mentioned.Message ID: @.***>

mrrcrick commented 2 years ago

Npm install once installed to test block npm run start

mrrcrick commented 2 years ago

Put the block in the WP-content/Plugins Folder

jaypierce commented 2 years ago

I have tested the block's php file in the plugins folder and it works. Am I supposed to be merging docker-env and gutenberg block and pushing it?

Also to access the plugins folder I had to change the compose file to show me the wp-content and it has a lot of files like I had before and you told me to get rid of the extra files. Should I just upload the plugin through the gutenberg backend? @mrrcrick

mrrcrick commented 2 years ago

Ok now that is past testing I will assign it back to Mahmoud .. I will do a code review then merge it in .