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.
Reusable workflows under .github/workflows/ for PHPUnit, Codeception, PHPStan, PHPCS, E2E (Playwright), Jest, CSS/JS linting, plugin builds, workflow linting, and GraphQL schema linting.
See .github/workflows/README.md for full documentation, inputs, and copy-paste usage examples.
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-infraEach 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 |
Inspired by https://github.com/johnbillion/plugin-infrastructure