Skip to content

AxeWP/plugin-infra

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), 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.

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

About

Repository infrastructure and config for or public WordPress plugins

Resources

License

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Sponsor this project

 

Packages

 
 
 

Contributors