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 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. 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": {