Oliver Davies
8256fc0a81
fix: PHPStan errors
2023-04-16 20:06:52 +01:00
Oliver Davies
e3a93065de
fix: drupal.docroot can be null
2023-04-07 20:55:23 +01:00
Oliver Davies
a97264d99c
feat: validate drupal.docroot
...
Refs: OD-18
2023-04-07 20:39:34 +01:00
Oliver Davies
e30929e69c
refactor: serialise and validate a configuration
...
...data object
2023-04-07 20:03:52 +01:00
Oliver Davies
4d034d9ba2
feat: allow for adding extra databases
...
Allow for declaring extra databases that should be created when the
project is first started. This is done by adding an `extra_databases`
key to `database`, containing a list of database names.
```yaml
database:
type: mariadb
version: 10
extra_databases:
- tinhat
- freshcover
```
2023-04-07 08:40:42 +01:00
Oliver Davies
7978c03709
feat: initial Laravel support
...
Refs #17
2023-03-13 21:18:31 +00:00
Oliver Davies
cf25359c7b
refactor: use mnapoli/silly
2023-03-13 02:00:33 +00:00
Oliver Davies
b4b289748a
feat: add initial node
support
...
Refs: #5
2023-03-12 12:33:33 +00:00
Oliver Davies
a179f1b0ee
refactor: move the PHP Dockerfile
2023-03-12 11:11:45 +00:00
Oliver Davies
b6de5bdba6
feat: add fractal
as a type
...
Refs: #5
2023-03-12 11:08:00 +00:00
Oliver Davies
f4d5e69f5f
feat: add node
as a language
...
Refs: #5
2023-03-12 11:07:21 +00:00
Oliver Davies
6b5c1b5aee
feat: add project_root
setting
...
Allow for overriding the project root from `/app` to something else,
such as `/var/www/html`.
The default is set within a new `build.defaults.yaml` file which the
project specific file is merged into.
Fixes #27
2023-03-10 22:21:14 +00:00
Oliver Davies
eeeb70df14
chore: allow for missing fields
2023-03-10 22:10:07 +00:00
Oliver Davies
78411c319c
chore: fix PHPStan errors
2023-03-08 21:21:12 +00:00
Oliver Davies
0fcffc5d2f
feat: add "auto-generated" text to templates
...
Fixes #21
2023-03-08 21:13:28 +00:00
Oliver Davies
3449ec5390
feat: add a phpunit.xml.dist file for Drupal
...
Fixes #15
2023-03-03 21:59:26 +00:00
Oliver Davies
a70557d2d5
refactor: extract a configuration validator
2023-02-25 00:21:43 +00:00
Oliver Davies
46747d2bf8
feat: allow for disabling a justfile
...
Prevent generating a justfile by adding `justfile: false` to the
project's build.yaml file.
Refs: #18
2023-02-21 08:33:51 +00:00
Oliver Davies
fa1774b550
feat: create a justfile
...
Refs: #18
2023-02-21 08:33:45 +00:00
Oliver Davies
1fb75c9d93
feat: make the Drupal docroot configurable
...
Allow for setting a `docroot` directory for Drupal projects.
By default, I've set this to `web` as that's what the Drupal Composer
scaffold projects use, but other platforms such as Acquia Cloud hosting
use `docroot`.
This is how it can be configured in `build.yaml`:
```yaml
drupal:
docroot: docroot
```
Fixes #2
2023-02-19 13:00:06 +00:00
Oliver Davies
eb29d11134
feat: add Caddy as a web server
2023-02-14 20:14:43 +00:00
Oliver Davies
dd68f6c03e
fix: ensure docker-entrypoint-php is executable
2023-02-14 11:22:30 +00:00
Oliver Davies
fa83cfee63
chore: add web
as an optional configuration key
2023-02-14 09:23:43 +00:00
Oliver Davies
acc3c0eda0
feat: add initial validation of build.yaml
2023-02-10 19:18:58 +00:00
Oliver Davies
f91262419e
fix: check for docker-compose
and dockerCompose
2023-02-10 19:16:04 +00:00
Oliver Davies
c92a59e9bd
refactor: rename variable
2023-02-03 22:04:20 +00:00
Oliver Davies
36b32b69cc
refactor: extract a method to generate files
2023-02-03 22:03:05 +00:00
Oliver Davies
8cbb834c33
fix: enum comparisons and check for null values
2023-02-03 22:02:25 +00:00
Oliver Davies
5ea7d312a6
refactor: extract helpers
2023-02-03 20:35:56 +00:00
Oliver Davies
a9a4925515
fix: undefined array key web
2023-02-03 18:57:50 +00:00
Oliver Davies
b0238beb67
refactor: add an Enum for languages
2023-02-02 18:06:47 +00:00
Oliver Davies
4e861685d9
chore: group PHP-related templates
2023-02-02 00:40:42 +00:00
Oliver Davies
83cb16a818
Rename files and update namespace
2023-01-21 20:42:52 +00:00
Oliver Davies
31600df9c3
Add nginx configuration files
2023-01-21 19:53:25 +00:00
Oliver Davies
43f27371e2
Fix missing dependencies on first load
2023-01-21 19:53:19 +00:00
Oliver Davies
8837836d86
fix: Docker Compose configuration is an object
2023-01-21 12:28:02 +00:00
Oliver Davies
2bc95de686
Make the configuration file configurable
2023-01-19 20:45:02 +00:00
Oliver Davies
bf531c55a4
Make the output directory configurable
2023-01-19 20:38:10 +00:00
Oliver Davies
579c476a54
Add remaining templates
2023-01-19 19:47:15 +00:00
Oliver Davies
014b6dabeb
Refactor
2023-01-19 18:53:42 +00:00
Oliver Davies
31614e0f58
Render a simple template
2023-01-19 18:42:11 +00:00
Oliver Davies
c476543f5c
Add initial command, get values from build.yaml
2023-01-19 18:11:24 +00:00