{"id":15685253,"url":"https://github.com/bacoords/block-pattern-plugin","last_synced_at":"2025-05-07T08:43:01.849Z","repository":{"id":234286838,"uuid":"776573079","full_name":"bacoords/block-pattern-plugin","owner":"bacoords","description":"A local development utility plugin for quick block pattern building.","archived":false,"fork":false,"pushed_at":"2024-07-13T15:57:19.000Z","size":351,"stargazers_count":9,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T04:03:05.966Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bacoords.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-23T21:55:06.000Z","updated_at":"2024-07-13T15:57:22.000Z","dependencies_parsed_at":"2024-04-30T14:46:32.833Z","dependency_job_id":"b9a2f37d-dca4-4d6a-915d-4f46faf39ffd","html_url":"https://github.com/bacoords/block-pattern-plugin","commit_stats":null,"previous_names":["bacoords/block-pattern-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bacoords%2Fblock-pattern-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bacoords%2Fblock-pattern-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bacoords%2Fblock-pattern-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bacoords%2Fblock-pattern-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bacoords","download_url":"https://codeload.github.com/bacoords/block-pattern-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252845786,"owners_count":21813315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T17:24:27.473Z","updated_at":"2025-05-07T08:43:01.831Z","avatar_url":"https://github.com/bacoords.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Block Pattern Plugin (Experimental)\n\nExperimental plugin to store some pattern management features that I'm testing out.\n\nThis should not be used in production and **features may be changed/removed at any time**.\n\n## Concepts\n\nThis plugin assumes that you have patterns that you want to manage in a theme. It allows you to create patterns in the Site Editor and then automatically exports them to your theme when you save changes.\n\nThe slug convention is `[theme-slug]/[pattern-name]`, so a pattern in TwentyTwentyFour named \"Hero\" would be `\"slug\":\"twentytwentyfour/hero\"` and saved as `twentytwentyfour/patterns/hero.php`. For now, the pattern's `post_name` value is what generates the slug, and those two need to stay matching exactly for the sync connection to exist.\n\nThere is no real 'import' yet for pulling in changes or new patterns in the theme back into the Site Editor. This is a one-way sync for now. Also, the plugin exports your pattern metadata to the theme, but it doesn't do anything else with it yet.\n\n## Features\n\n### Pattern WP-Admin Screen\n\nShows the `wp_block` post edit screen that lists all of your patterns and allows you to edit them. Includes a direct link to edit in the pattern in the Site Editor as well as a 'synced' status to show if the pattern is in sync with the theme (this looks at content only, not other pattern metadata).\n\n### Patterns export to theme on save\n\nWhen you save a pattern, it will automatically export the pattern to your theme's `./patterns` directory.\n\n### Import patterns from current active theme to database\n\nFor now there's just a wp-cli command to grab all patterns in the theme and import them into the database. This is useful for when you're first setting up the plugin and want to get all of your theme's patterns into the database.\n\n```bash\nwp wpdev block-pattern import\n```\n\n## Advanced Content Locking\n\nThis has been pulled out of this repo and into its own plugin: [Block Locking Plugin](https://github.com/bacoords/block-locking-plugin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbacoords%2Fblock-pattern-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbacoords%2Fblock-pattern-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbacoords%2Fblock-pattern-plugin/lists"}