- Git clone:
git clone [email protected]:imaginarymachines/everything-all-of-the-time.git
- Install javascript dependencies
yarn
- Install php dependencies
composer install
- Build JS/CSS
npm run build
- Start JS/CSS for development
npm run start
- Test changed files
npm run test --watch
- Test all files once
npm run test
npm run test --ci
PHP classes should be located in the "php" directory and follow the PSR-4 standard.
The root namespace is PHP_NAMESPACE.
- 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
A docker-compose-based local development environment is provided.
- Start server
docker-compose up -d
- Acess Site
- Run WP CLI command:
docker-compose run wpcli wp user create admin [email protected] --role=admin user_pass=pass
There is a special phpunit container for running WordPress tests, with WordPress and MySQL configured.
- Enter container
docker-compose run phpunit
- Composer install
composer install
- Test
composer test:wordpress