Skip to content

Create Plugin Templates Feature #51

@kevinfodness

Description

@kevinfodness

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, and features subfolders to start.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestshellRequires understanding shell scripting

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions