Commit graph

106 commits

Author SHA1 Message Date
Oliver Davies 87c2f2e496 Allow for running PHPStan on test files and not
...ignoring them within the PHPStan configuration file
2023-11-28 13:31:23 +00:00
Oliver Davies 7c17007d84 refactor(validator): remove duplicate constraints
e.g. if a constraint is a choice of strings, that implies the value must
be a string so there's no need for an additional type constraint.
2023-11-25 08:55:50 +00:00
Oliver Davies e6a757cd05 fix: typed property error 2023-11-23 08:35:19 +00:00
Oliver Davies baaf3bf16b refactor: add isDocker and isFlake to the
...Configuration DTO
2023-11-23 08:24:34 +00:00
Oliver Davies 8eb8a9d6e3 fix: recursively merge default values 2023-11-23 06:58:10 +00:00
Oliver Davies fb53f307af test: adding extra databases 2023-11-23 00:59:27 +00:00
Oliver Davies df070e1c7d style: add spacing between values 2023-11-22 23:57:23 +00:00
Oliver Davies 16ad71f4f4 chore: add missing values to the Config DTO
* Add `dockerfile.stages.*.extra_directories` as an optional list of
  strings.
* Allow `php.phpstan` and `php.phpcs` to be `false` or a Collection so
  their configuration files can not be generated.
* Add `php.phpunit` and allow it to be set to `false` so its
  configuration files can not be generated.
* Add `database.extra_databases`
* Add `php.phpstan.baseline` as an optional boolean.
* Add `node.version` as a string.
2023-11-22 23:50:20 +00:00
Oliver Davies b32813f4d7 chore: use new database credentials by default
Use the new database credentials by default.

The `experimental.useNewDatabaseCredentials` feature flag can be removed
once it's been removed from all `build.yaml` files.
2023-11-22 23:45:49 +00:00
Oliver Davies e9d5c4ea6f test: ensure the project type is valid 2023-11-22 21:48:49 +00:00
Oliver Davies b65e92b790 test: ensure the web server is a valid type 2023-11-22 21:45:01 +00:00
Oliver Davies 95012241e1 chore: add missing values to the Config DTO
Add missing properties and constraints to the `Config` data transfer
object.
2023-11-22 21:08:18 +00:00
Oliver Davies 517309e222 chore: PHPStan errors 2023-11-22 20:06:30 +00:00
Oliver Davies 1c5eac72bb test: re-add original tests 2023-11-06 01:07:23 +00:00
Oliver Davies 02774b820b feat(gitignore): add additional ignored paths 2023-10-18 20:54:36 +02:00
Oliver Davies 696aa5d617 feat(drupal): allow for disabling quality checks
For Commerce Kickstart, there are no custom modules so these checks will
fail in the CI pipeline.
2023-10-18 20:38:53 +02:00
Oliver Davies f5a8c691f0 chore(run): replace justfiles with run files 2023-10-07 22:23:40 +01:00
Oliver Davies f911d52573 feat(drupal): re-add phpstan.neon.dist 2023-10-06 15:26:10 +01:00
Oliver Davies af24a4b4fa feat(terraform): add support for terraform repos
Add terraform as a project type, make the language optional, and add a
.gitignore and justfile template for Terraform repositories.
2023-09-27 18:57:04 +01:00
Oliver Davies 9176f34444 refactor: remove old code and templates 2023-09-25 00:57:06 +01:00
Oliver Davies ad86e066cb fix(git-hooks): re-add 2023-09-25 00:52:09 +01:00
Oliver Davies ef928cbb3a chore: add TODOs 2023-09-25 00:26:19 +01:00
Oliver Davies 783d76fcf5 refactor(drupal): reorganise templates 2023-09-25 00:25:11 +01:00
Oliver Davies 578340ca8f refactor: remove unused method 2023-09-25 00:19:06 +01:00
Oliver Davies cfbdeb375e refactor(fractal): reorganise templates
Refs: OD-44
2023-09-25 00:17:41 +01:00
Oliver Davies 88b92924fb feat(astro): add justfile 2023-09-24 23:13:43 +01:00
Oliver Davies bfee1e8029 feat(drupal): add justfile 2023-09-24 23:13:24 +01:00
Oliver Davies e1e2a6c88c refactor(drupal): remove unused code 2023-09-24 23:07:02 +01:00
Oliver Davies aed6be0e83 style(drupal): fix indentation 2023-09-24 23:06:45 +01:00
Oliver Davies e7fc07fd54 refactor(astro): create TemplateFile directly 2023-09-24 23:05:54 +01:00
Oliver Davies c9faf7bda3 refactor(drupal): reorganise templates 2023-09-24 22:55:07 +01:00
Oliver Davies ff5f2aa875 feat(astro): add .gitignore 2023-09-24 21:49:02 +01:00
Oliver Davies 9c450a850e revert(astro): move projects into a language
This reverts commit f5803212e5.
2023-09-24 21:24:19 +01:00
Oliver Davies f5803212e5 refactor(astro): move projects into a language
...directory
2023-09-24 18:55:06 +01:00
Oliver Davies cd4355bbc1 feat: add support for Astro projects 2023-09-24 18:10:24 +01:00
Oliver Davies 022315edd3 refactor: rename node to typescript 2023-09-24 15:52:49 +01:00
Oliver Davies 8f48eea65f feat(flakes): add direnv support
Generate an `.envrc` file to add support for Nix Flakes for projects
that use them.

I currently have `.direnv` directories ignored globally though this
could be added to a `.gitignore` template when one is added.

Refs: OD-43
2023-08-29 23:24:47 +01:00
Oliver Davies 050c28901a fix(git-hooks): make it executable 2023-08-26 23:15:12 +01:00
Oliver Davies f16ccb81bb fix: extensions could be null
Warning: Undefined array key "extensions" in /home/opdavies/Code/github.com/OliverDaviesLtd/build-configs/src/Action/CreateFinalConfigurationData.php on line 44

Warning: Trying to access array offset on value of type null in /home/opdavies/Code/github.com/OliverDaviesLtd/build-configs/src/Action/CreateFinalConfigurationData.php on line 44
2023-08-26 23:08:44 +01:00
Oliver Davies ec494d934f fix(git-hooks): always create the commit msg hook 2023-08-26 23:05:51 +01:00
Oliver Davies c68bca3d56 chore: rename drupal-project to drupal 2023-07-22 10:40:02 +01:00
Oliver Davies b3f61a43da feat(config): add vuejs as a type 2023-07-06 22:46:41 +01:00
Oliver Davies 99ffb87446 feat(flake): generate nix.flake instead of Docker
...files if a `flake` key exists in a `build.yaml` file.

Refs: OD-37
2023-06-27 17:29:59 +01:00
Oliver Davies 04160ad7de revert: update managed text
Change the managed text to use the .uk domain again, instead of the .dev
domain.

This reverts commit 3bd588d2f1.
2023-06-23 20:43:03 +01:00
Oliver Davies 1c7f1f2e2b feat(php): make ini values configurable
Refs: OD-28
2023-06-05 22:01:10 +01:00
Oliver Davies b121f2fb77 fix: jpg support for image styles 2023-06-05 21:51:31 +01:00
Oliver Davies 3841a223f4 chore: update managed text 2023-05-09 21:30:52 +01:00
Oliver Davies 3bd588d2f1 chore: update managed text 2023-05-09 21:27:49 +01:00
Oliver Davies 76140850f3 feat(dockerfile): allow for specifying custom PHP
...extensions
2023-05-09 21:01:56 +01:00
Oliver Davies 701f382ccd chore: remove bcmath
This isn't used on the majority of projects so I'm removing it as a
default extension.
2023-05-09 20:47:27 +01:00