Skip to content

Example of Plugin Machine generated plugin with many features on.

Notifications You must be signed in to change notification settings

imaginarymachines/everything-all-of-the-time

Repository files navigation

Everything All Of The Time

Built With Plugin Machine

Installation

  • Git clone:
  • Install javascript dependencies
    • yarn
  • Install php dependencies
    • composer install

Working With JavaScript

  • 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

Working With PHP

Autoloader

PHP classes should be located in the "php" directory and follow the PSR-4 standard.

The root namespace is PHP_NAMESPACE.

Tests

  • 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

Linter

PHPCS is installed for linting and automatic code fixing.

  • Run linter and autofix
    • composer fixes
  • Run linter to identify issues.
    • compose sniffs

Local Development Environment

A docker-compose-based local development environment is provided.

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

About

Example of Plugin Machine generated plugin with many features on.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published