Skip to content

Instantly share code, notes, and snippets.

@mxr576
Created November 8, 2023 12:50
Show Gist options
  • Save mxr576/6084f6f2ac689199355fbf9578b7fbd1 to your computer and use it in GitHub Desktop.
Save mxr576/6084f6f2ac689199355fbf9578b7fbd1 to your computer and use it in GitHub Desktop.
Apigee Contrib Kickstart Composer template

Composer project template that speeds up contribution to Apigee Edge Drupal module and Apigee API client PHP library.

Steps

  1. Pick composer.json
  2. Fork these components on Github.
  3. Change CHANGE_ME strings in repository urls to your Github user name.
  4. Run composer install

You get these components installed from version control. After that you can follow the regular GitHub PR workflow.

{
"name": "drupal/recommended-project",
"description": "Project template for Drupal projects with a relocated document root",
"license": "GPL-2.0-or-later",
"type": "project",
"homepage": "https://www.drupal.org/project/drupal",
"support": {
"chat": "https://www.drupal.org/node/314178",
"docs": "https://www.drupal.org/docs/user_guide/en/index.html"
},
"require": {
"apigee/apigee-client-php": "3.x-dev",
"composer/installers": "^2.0",
"drupal/admin_toolbar": "^3.4",
"drupal/apigee_edge": "3.x-dev",
"drupal/core-composer-scaffold": "^10.1",
"drupal/core-project-message": "^10.1",
"drupal/core-recommended": "^10.1",
"drush/drush": "^12.2"
},
"require-dev": {
"drupal/core-dev": "^10.1",
"drupal/devel": "^5.1",
"localheinz/composer-normalize": "^2.39"
},
"conflict": {
"drupal/drupal": "*"
},
"repositories": {
"forked-apigee-client-php": {
"type": "vcs",
"url": "https://github.com/[CHANGE_ME]/apigee-client-php"
},
"forked-apigee_edge": {
"type": "vcs",
"url": "https://github.com/[CHANGE_ME]/apigee-edge-drupal"
},
"0": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"localheinz/composer-normalize": true,
"php-http/discovery": false,
"phpstan/extension-installer": true,
"simplesamlphp/composer-module-installer": true
},
"preferred-install": {
"apigee/apigee-client-php": "source",
"drupal/apigee_edge": "source"
},
"sort-packages": true
},
"extra": {
"composer-normalize": {
"indent-size": 4,
"indent-style": "space"
},
"drupal-core-project-message": {
"include-keys": [
"homepage",
"support"
],
"post-create-project-cmd-message": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
"<bg=blue;fg=white> from the drupal/recommended-project template! </>",
"<bg=blue;fg=white> </>",
"",
"<bg=yellow;fg=black>Next steps</>:",
" * Install the site: https://www.drupal.org/docs/installing-drupal",
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
" * Get support: https://www.drupal.org/support",
" * Get involved with the Drupal community:",
" https://www.drupal.org/getting-involved",
" * Remove the plugin that prints this message:",
" composer remove drupal/core-project-message"
]
},
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/modules/custom/{$name}": [
"type:drupal-custom-module"
],
"web/profiles/custom/{$name}": [
"type:drupal-custom-profile"
],
"web/themes/custom/{$name}": [
"type:drupal-custom-theme"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment