From ab0a47f9f232ef5de5a32a9c4fb7f315660651e3 Mon Sep 17 00:00:00 2001 From: Ioannis Ampatzis <48527705+ioannis-ampatzis@users.noreply.github.com> Date: Mon, 10 May 2021 11:06:52 +0200 Subject: [PATCH] Update README.md --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 96dac56..357c470 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,40 @@ Add the following in the composer.json's "repositories" section: } Finally: `composer require ioannis-ampatzis/dmt_structure_export:7.x-1.x-dev` + +Sample of final main composer.json file, for a D7 NextEuropa website: + + { + "name": "[WEBSITE_NAME]", + "description": "[WEBSITE_DESCRIPTION]", + "type": "project", + "keywords": ["fpfis", "nexteuropa", "subsite"], + "homepage": "[WEBSITE_URL]", + "require": { + "ec-europa/toolkit": "3.*", + "ioannis-ampatzis/dmt_structure_export": "7.x-1.x-dev" + }, + "support": { + "email": "[WEBSITE_EMAIL]", + "source": "https://github.com/ec-europa/[WEBSITE_REPOSITORY]" + }, + "scripts": { + "post-install-cmd": "@toolkit-install", + "post-update-cmd": "@toolkit-install", + "toolkit-install": "PROJECT=$(pwd) composer run-script toolkit-install -d ./vendor/ec-europa/toolkit" + }, + "require": { + "ioannis-ampatzis/dmt_structure_export": "dev-7.x-1.x" + }, + "repositories": { + "dmt_migrate":{ + "type": "vcs", + "url": "https://github.com/ioannis-ampatzis/dmt_structure_export" + } + }, + "extra": { + "installer-paths": { + "drush/Commands/{$name}": ["type:drupal-drush"] + } + } + }