Custom react WordPress plugin with rest api support and other features.
REST Api respond with json data.
- Git clone:
git clone git@github.com:devbaze/stage.git
- Install javascript dependencies
yarn
- Install php dependencies
composer install
- Build JS/CSS
yarn build
- Start JS/CSS for development
yarn start
- Test changed files
yarn test --watch
- Test all files once
yarn test
yarn test --ci
PHP classes should be located in the "php" directory and follow the PSR-4 standard.
The root namespace is Stage
.
- Run unit tests
composer test:unit
- Run WordPress tests
composer test:wordpress
- See local development instructions for how to run with Docker.
- Run unit tests and WordPress tests
composer test
PHPCS is installed for linting and automatic code fixing.
- Run linter and autofix
composer fixes
- Run linter to identify issues.
compose sniffs