From c3b86fa82ea1c3cece5b094f6b1479076e6700f8 Mon Sep 17 00:00:00 2001 From: Adnan <50206849+Adnan-cds@users.noreply.github.com> Date: Tue, 24 Oct 2023 17:40:59 +0100 Subject: [PATCH 1/3] CI: Dev dependencies Adds all dev dependency packages belonging to various LocalGov Drupal packages. --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 213930e..e848fa1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -79,9 +79,10 @@ jobs: ref: php${{ matrix.php-version }} - name: Create LocalGov Drupal project - run: | - composer create-project --stability dev localgovdrupal/localgov-project:${COMPOSER_REF} ./html - composer --working-dir=./html require drupal/group + run: composer create-project --stability dev localgovdrupal/localgov-project:${COMPOSER_REF} ./html + + - name: Obtain all dev dependencies for LocalGov Drupal + run: jq --raw-output '.packages[] | select(.name | startswith("localgovdrupal/")) | ."require-dev" | values | to_entries[] | @sh "\(.key):\(.value)"' ./html/composer.lock | sort | uniq | xargs composer --working-dir=./html require --dev --no-interaction phpcs: name: Coding standards checks From 7904b290bbca9920485fbd1084b6c23506704f54 Mon Sep 17 00:00:00 2001 From: Andy Broomfield Date: Wed, 8 Nov 2023 16:52:42 +0000 Subject: [PATCH 2/3] Set profile to full 3.0 release --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 210a472..e424d52 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "cweagans/composer-patches": "^1.6", "drupal/core-composer-scaffold": "^10.0", "drupal/core-recommended": "^10.0", - "localgovdrupal/localgov": "^3.0@alpha", + "localgovdrupal/localgov": "^3.0", "localgovdrupal/localgov_search_solr": "^1.1" }, "require-dev": { From d5827afce3ba0517f9c32bc32432f47ae9d0c77b Mon Sep 17 00:00:00 2001 From: Finn Lewis Date: Thu, 9 Nov 2023 18:43:35 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 367c0cd..cc0682a 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,15 @@ This project template should provide a kickstart for managing your site dependen 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) + - [Installing LocalGov Drupal locally with composer](https://github.com/localgovdrupal/localgov#installing-localgov-drupal-locally-with-composer) - [Getting started on LocalGov Drupal docs](https://docs.localgovdrupal.org/devs/getting-started/) +## composer.json and composer.lock + +We expect most projects using this package will start with the composer.json in this package, committing it to your own project repository as your own root composer.json. You can then extend composer.json, requiring other Drupal and composer packages and evolve your codebase as needed. + +Once you have run a `composer create-project` command, it is usually desirable to commit the composer.lock file to your project repository and use this lock file to control the specific version of packages that you deploy to dev, test and ultimately production hosting environments. + ## Gitpod Gitpod allows you to run a virtual development environment in the cloud in your browser.