Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 954 Bytes

CONTRIBUTING.md

File metadata and controls

44 lines (28 loc) · 954 Bytes

Contributing

Onboarding

$ git clone [email protected]:darrenjacoby/intervention.git
$ composer install

Guidelines

PSR-12

Run Easy Coding Standards to ensure new code complies with PSR-12 guidelines.

$ composer lint

Most errors can easily be fixed with:

$ composer lint:fix

Composer/Phing

Changes to composer.json require a build step to create a dist folder for WordPress users who do not use Composer to manage their depedencies.

Run Phing to build the dist folder.

$ composer build

NPM

Changes to folder resources/ require a build step to create a assets folder for styles and scripts. If you have run composer build prior you can skip this step.

Run NPM to build the assets/styles and assets/scripts folder.

$ composer build:assets