Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.82 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.82 KB

AxeWP Plugin Infrastructure

Reusable dev infrastructure for AxeWP WordPress plugins.

axewp/plugin-infra is a GitHub repository providing reusable GitHub Workflows and shared configurations for AxePress public plugins.

What's Included

Reusable GitHub Actions Workflows

Reusable workflows under .github/workflows/ for PHPUnit, Codeception, PHPStan, PHPCS, E2E (Playwright), JS unit tests, CSS/JS linting, plugin builds, WordPress Plugin Check, WordPress Playground PR previews, PR cleanup, workflow linting, and GraphQL schema linting.

See .github/workflows/README.md for full documentation, inputs, and copy-paste usage examples.

Shareable Configs

Three configs carry enough shared rules to be worth versioning, so they are published to npm as @axepress/plugin-infra:

npm install --save-dev @axepress/plugin-infra

Each config file documents its own usage. Open the one you want:

Tool Package Config Example
Prettier @axepress/plugin-infra/prettier configs/prettier.mjs examples/.prettierrc.mjs
TypeScript @axepress/plugin-infra/tsconfig configs/tsconfig.json examples/tsconfig.json
ESLint (flat) @axepress/plugin-infra/eslint configs/eslint.mjs examples/eslint.config.mjs

Prior art

Inspired by https://github.com/johnbillion/plugin-infrastructure