vigetlabs / wordpress-site-starter

2 stars 0 forks source link

[#129] Auto Create Blocks #134

Closed nathan-schmidt-viget closed 3 months ago

nathan-schmidt-viget commented 3 months ago

Summary

This adds plop which allows us to auto build block files from the templates. We ask several questions and then build all the files.

Issues

Testing Instructions

  1. Restart DDEV by running ddev restart
  2. Then path into the theme wp-content/themes/wp-starter
  3. Run ddev npm run plop block or ddev npm run plop - running without block plop will default to the first generator which is block.

Screenshots

Jul-24-2024 15-15-48

nathan-schmidt-viget commented 3 months ago

We may need to adjust/update this as we update our WP Site Starter blocks, but this is a start.

nathan-schmidt-viget commented 3 months ago

@bd-viget I am going to update the inner blocks part in my block refactor PR.