Skip to content
/ block-starter Public template

An opinionated starter template for crafting WordPress block plugins.

Notifications You must be signed in to change notification settings

KevinBatdorf/block-starter

Repository files navigation

Playwright Tests

block-starter

An opinionated starter template for crafting WordPress block plugins.

Twitter

Features

  • Tailwind v4 scoped separately to editor and frontend styles
  • TypeScript
  • Biomejs for linting and formatting
  • Playwright for end-to-end testing using WP Playground
  • Runs the Plugin Check from WordPress on main and release
  • Auto deployment to WordPress.org SVN on release (via 10up Action)

Usage

  • Click "Use this template" at the top+right of the repo
  • Search/replace kevinbatdorf with your namespace/username
  • Search/replace block-starter with your plugin slug.
  • Update block-starter.php to match your new plugin slug
  • Run composer install to install PHP dev dependencies (sometimes needed for autocomplete in IDEs)
  • Run npm install to install dependencies
  • Run npm run start to start the dev server

Note

  • If your plugin slug doesn't match your GitHub repo name, you'll need to update the runPHP step in the tests/playwright.yml workflow to require the correct file.
block-starter

About

An opinionated starter template for crafting WordPress block plugins.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published