diff --git a/.ddev/commands/web/phix b/.ddev/commands/web/phix new file mode 100755 index 0000000..0332dc1 --- /dev/null +++ b/.ddev/commands/web/phix @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +## Description: Run phpcbf to automatically fix some phpcs errors. +## Usage: phix +## Example: "ddev phix" + +/var/www/html/bin/phpcbf diff --git a/.ddev/commands/web/phpcs b/.ddev/commands/web/phpcs new file mode 100755 index 0000000..ddf15bb --- /dev/null +++ b/.ddev/commands/web/phpcs @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +## Description: Run phpcs in the web container. +## Usage: phpcs +## Example: "ddev phpcs" + +/var/www/html/bin/phpcs -p \ No newline at end of file diff --git a/.ddev/commands/web/phpstan b/.ddev/commands/web/phpstan new file mode 100755 index 0000000..0c89908 --- /dev/null +++ b/.ddev/commands/web/phpstan @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +## Description: Run PHPSTAN to report on code deprecations. +## Usage: phpix +## Example: "ddev phix" + +/var/www/html/bin/phpstan \ No newline at end of file diff --git a/.ddev/commands/web/phpunit b/.ddev/commands/web/phpunit new file mode 100755 index 0000000..5f4ad3b --- /dev/null +++ b/.ddev/commands/web/phpunit @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +## Description: Run phpunit in the web container to run phpunit tests. +## Usage: phpunit +## Example: "ddev phpunit" + +/var/www/html/bin/phpunit \ No newline at end of file diff --git a/README.md b/README.md index a16f015..367c0cd 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,26 @@ For guidance on installing see: - [Installing LocalGov Drupal locally with composer](https://github.com/localgovdrupal/localgov/blob/2.x/README.md#installing-localgov-drupal-locally-with-composer) - [Getting started on LocalGov Drupal docs](https://docs.localgovdrupal.org/devs/getting-started/) +## Gitpod + +Gitpod allows you to run a virtual development environment in the cloud in your browser. + +This can be very useful for testing functionality, reviewing pull requests, or working on features. + +### Before you start + +You will need an account on Gitpod. + +If you authenticate with your Github account, you will be able to push commits back to the repository you are working on. + +[Sign up for gitpod.io](https://gitpod.io/login), if you haven't already. + +### Spin up LocalGov Drupal with + +Click on the "Open in Gitpod" button below + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/localgovdrupal/localgov_project) + ## Maintainers This project is currently maintained by: