Skip to content

Instantly share code, notes, and snippets.

@balsama
Created October 13, 2023 17:27
Show Gist options
  • Save balsama/96ae5a6abdc5bca2b0958bd9b0c96659 to your computer and use it in GitHub Desktop.
Save balsama/96ae5a6abdc5bca2b0958bd9b0c96659 to your computer and use it in GitHub Desktop.
Example `acquia_cms_community` `composer.json` generated by acms:build
{
"name": "acquia/drupal-recommended-project",
"description": "Acquia-compatible Drupal application based on the Drupal Recommended Project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Acquia Engineering",
"homepage": "https://www.acquia.com",
"role": "Maintainer"
}
],
"require": {
"php": ">=8.1",
"acquia/acquia-cms-starterkit": "^1",
"acquia/drupal-environment-detector": "^1",
"acquia/memcache-settings": "^1",
"composer/installers": "^2.1",
"cweagans/composer-patches": "^1.6",
"drupal/acquia_claro": "^1.3",
"drupal/acquia_cms_article": "^1.5",
"drupal/acquia_cms_event": "^1.5",
"drupal/acquia_cms_page": "^1.5",
"drupal/acquia_cms_search": "^1.4",
"drupal/acquia_cms_starter": "^1.4",
"drupal/acquia_cms_toolbar": "^1.4",
"drupal/acquia_cms_tour": "^2.1",
"drupal/config_sync_without_site_uuid": "^1.0@beta",
"drupal/core-composer-scaffold": "^10",
"drupal/core-recommended": "^10",
"drupal/google_tag": "^2.0",
"drupal/honeypot": "^2.1",
"drupal/recaptcha": "^3.2",
"drupal/reroute_email": "^2.2",
"drupal/shield": "^1.7",
"drush/drush": "^12",
"mnsami/composer-custom-directory-installer": "^2.0",
"oomphinc/composer-installers-extender": "^2"
},
"require-dev": {
"acquia/coding-standards": "^2.0.0",
"mglaman/phpstan-drupal": "^1.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.6",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.6"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"drupal/core-composer-scaffold": true,
"ergebnis/composer-normalize": true,
"oomphinc/composer-installers-extender": true,
"phpstan/extension-installer": true,
"php-http/discovery": true,
"mnsami/composer-custom-directory-installer": true
},
"platform": {
"php": "8.1"
},
"sort-packages": true
},
"extra": {
"composer-exit-on-patch-failure": true,
"drupal-scaffold": {
"allowed-packages": [
"acquia/acquia_cms"
],
"file-mapping": {
"[profile-root]/.editorconfig": false,
"[profile-root]/.gitattributes": false,
"[profile-root]/.travis.yml": false,
"[profile-root]/acquia-pipelines.yml": false,
"[web-root]/sites/default/default.services.yml": {
"mode": "replace",
"overwrite": false,
"path": "docroot/core/assets/scaffold/files/default.services.yml"
},
"[web-root]/sites/default/default.settings.php": {
"mode": "replace",
"overwrite": false,
"path": "docroot/core/assets/scaffold/files/default.settings.php"
}
},
"gitignore": true,
"locations": {
"profile-root": "docroot/profiles/contrib/acquia_cms",
"web-root": "docroot/"
}
},
"enable-patching": true,
"installer-paths": {
"docroot/core": ["type:drupal-core"],
"docroot/libraries/{$name}": ["type:drupal-library", "type:bower-asset", "type:npm-asset", "nnnick/chartjs"],
"docroot/modules/contrib/{$name}": ["type:drupal-module"],
"docroot/modules/custom/{$name}": ["type:drupal-custom-module"],
"docroot/profiles/contrib/{$name}": ["type:drupal-profile"],
"docroot/themes/contrib/{$name}": ["type:drupal-theme"],
"docroot/themes/custom/{$name}": ["type:drupal-custom-theme"],
"drush/Commands/contrib/{$name}": ["type:drupal-drush"]
},
"installer-types": [
"bower-asset",
"npm-asset"
],
"patchLevel": {
"drupal/core": "-p2"
},
"patches": {}
},
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"acms:install": [
"Composer\\Config::disableProcessTimeout",
"./vendor/bin/acms acms:install"
],
"nuke": [
"rm -rf docroot vendor composer.lock"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment