-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or requestshellRequires understanding shell scriptingRequires understanding shell scripting
Description
Description
We need a way to add configuration to the plugin after it has been scaffolded. For example, we want to be able to create some blocks and slotfills that should be installed when this repo is initialized, but which shouldn't permanently live in create-wordpress-plugin, so they should live here and be copied over.
Use Case
As a user, I want to be able to get some pre-built blocks and slotfills when I install this repo.
Acceptance Criteria
- Create a folder called
plugin-templates. - Update the installer script to copy the contents of this folder to the plugin after it has been scaffolded and delete the source folder.
- Ensure that search/replace has been run on these files after they have been copied (namespace, textdomain, etc is going to be create-wordpress-plugin and needs to be updated to whatever the user names the plugin during install)
- This should work for
blocks,config,entries, andfeaturessubfolders to start.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestshellRequires understanding shell scriptingRequires understanding shell scripting