Skip to content

Instantly share code, notes, and snippets.

@ptmkenny
Created December 12, 2022 21:02
Show Gist options
  • Save ptmkenny/b3543fee1560783acea396ea13bccc30 to your computer and use it in GitHub Desktop.
Save ptmkenny/b3543fee1560783acea396ea13bccc30 to your computer and use it in GitHub Desktop.
platformsh composer config that does not work with ddev
{
"name": "ptmkenny/abc",
"type": "project",
"license": "MIT",
"require": {
"php": ">=8.1",
"ext-curl": "*",
"ext-fileinfo": "*",
"ext-json": "*",
"ext-sodium":"*",
"ext-pdo": "*",
"composer/installers": "^1.9",
"cweagans/composer-patches": "^1.7",
"drupal/block_visibility_conditions": "^1",
"drupal/consumer_image_styles": "^4.0",
"drupal/core-composer-scaffold": "^9",
"drupal/core-recommended": "^9.4.5",
"drupal/csp": "^1",
"drupal/ctools": "^3",
"drupal/dbee": "^2.3",
"drupal/drulma": "1.x-dev#3e5788e6e97d0cdced75ea621049d647c7180c6e",
"drupal/easy_breadcrumb": "^2.0.3",
"drupal/email_registration": "^1",
"drupal/feeds": "3.x-dev",
"drupal/feeds_tamper": "^2.0@beta",
"drupal/field_encrypt": "^3.0",
"drupal/field_group": "^3.1",
"drupal/filefield_paths": "^1.0@beta",
"drupal/firebase": "^3",
"drupal/flag": "4.x-dev",
"drupal/gin": "^3.0@beta",
"drupal/gin_toolbar": "^1.0@beta",
"drupal/job_scheduler": "^4",
"drupal/json_field": "^1.0",
"drupal/jsonapi_extras": "^3.21",
"drupal/jsonapi_include": "^1.5",
"drupal/jsonapi_resources": "^1.0@beta",
"drupal/jsonrpc": "^2.0",
"drupal/markdown": "^3.0@rc",
"drupal/media_entity_file_replace": "^1.0",
"drupal/metatag": "^1.13",
"drupal/minifyhtml": "^2",
"drupal/pathauto": "^1.8",
"drupal/permissionspolicy": "^1",
"drupal/real_aes": "^2.4",
"drupal/redirect": "^1.5",
"drupal/redis": "^1",
"drupal/rename_admin_paths": "^2",
"drupal/rrssb": "^2.2",
"drupal/schema_metatag": "^2.0",
"drupal/seckit": "^2.0",
"drupal/simple_sitemap": "^4.0@alpha",
"drupal/simple_styleguide": "^1.8",
"drupal/sodium": "^2.0",
"drupal/symfony_mailer": "^1@alpha",
"drupal/tamper": "^1.0@alpha",
"drupal/tfa": "^1.0@alpha",
"drupal/token_filter": "^1.2",
"drupal/views_bulk_operations": "^4.0",
"drupal/views_data_export": "^1.1",
"drupal/weight": "^3",
"drush-ops/behat-drush-endpoint": "^9.4.1",
"drush/drush": "^11",
"josdejong/jsoneditor": "5.29.1",
"league/commonmark": "^1.4",
"oomphinc/composer-installers-extender": "^2",
"opis/json-schema": "^2.3",
"platformsh/config-reader": "^2",
"rexxars/html-validator": "^2.2.0",
"stripe/stripe-php": "^9.5",
"yesmeck/jquery-jsonview": "1.2.3"
},
"conflict": {
"drupal/drupal": "*"
},
"require-dev": {
"behat/mink-selenium2-driver": "^1.6.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"drupal/coder": "^8.3.16",
"drupal/core-dev": "^9.4",
"drupal/devel": "^5.0@beta",
"drupal/drulma_companion": "^2",
"drupal/drupal-driver": "^2.1",
"drupal/drupal-extension": "4.1.0",
"drupal/queue_ui": "^3",
"drupal/restui": "^1",
"drupal/shy_one_time": "^1.0",
"drupal/tome": "^1.4",
"drupal/upgrade_status": "^3",
"drupal/update_manager_project_security_status": "^1.0",
"drupal/webprofiler": "^9.0@beta",
"drupal/xhprof": "^1.0@beta",
"emuse/behat-html-formatter": "^0.2",
"friendsoftwig/twigcs": "^6.0",
"genesis/behat-fail-aid": "^3.5",
"jcalderonzumba/gastonjs": "^1.0.2",
"jcalderonzumba/mink-phantomjs-driver": "^0.3.1",
"kint-php/kint": "^4",
"kint-php/kint-twig": "^3",
"mglaman/drupal-check": "^1.4",
"mikey179/vfsstream": "^1.2",
"phpspec/prophecy-phpunit": "^2",
"phpstan/phpstan-phpunit": "^1.1",
"phpstan/phpstan-strict-rules": "^1.2",
"phpstan/phpstan-webmozart-assert": "^1.2",
"squizlabs/php_codesniffer": "^3.4.0",
"thecodingmachine/phpstan-strict-rules": "^1.0"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"oomphinc/composer-installers-extender": true,
"wikimedia/composer-merge-plugin": false
},
"optimize-autoloader": true,
"platform": {
"php": "8.1"
},
"preferred-install": "dist",
"process-timeout": 600,
"sort-packages": true
},
"extra": {
"composer-exit-on-patch-failure": true,
"drupal-scaffold": {
"locations": {
"web-root": "./web"
}
},
"installer-paths": {
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library",
"type:bower-asset",
"type:npm-asset"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/private/scripts/quicksilver/{$name}/": [
"type:quicksilver-script"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
]
},
"installer-types": [
"bower-asset",
"npm-asset"
],
"patches": {
"behat/mink": {
"Autocomplete support via sendkeys": "https://patch-diff.githubusercontent.com/raw/minkphp/Mink/pull/767.patch"
},
"drupal/consumers": {
"disable default consumer creation": "patches/consumers_disable-default-consumer-creation.patch"
},
"drupal/consumer_image_styles": {
"reduce info returned by JSON:API": "patches/consumer_image_styles-reduce_jsonapi_output.patch"
},
"drupal/core": {
"Allow roles visibility condition to be negated https://www.drupal.org/project/drupal/issues/2986958": "https://www.drupal.org/files/issues/2022-08-08/enable-block-visibility-user-role-negation-2986958-43.patch",
"Disable update disabled warning https://www.drupal.org/project/drupal/issues/2869592": "https://www.drupal.org/files/issues/2020-02-07/2869592-remove-update-warning-34.patch",
"Fix views import error https://www.drupal.org/project/drupal/issues/3007424": "https://www.drupal.org/files/issues/2020-09-03/3007424-108.patch",
"REST user registration broken https://www.drupal.org/project/drupal/issues/3055807": "https://www.drupal.org/files/issues/2022-04-05/3055807-44-D9.patch",
"Remove experimental modules/themes warning https://www.drupal.org/project/drupal/issues/2880374": "https://www.drupal.org/files/issues/2022-08-21/2880374-51.patch",
"Remove security warning that only applies to apache https://www.drupal.org/project/drupal/issues/3117665": "https://www.drupal.org/files/issues/2022-07-05/3117665-updating-global-variables-20.patch",
"Restore translation string deletion https://www.drupal.org/project/drupal/issues/2503893": "https://www.drupal.org/files/issues/2020-09-21/2503893-36.patch",
"Symlinks can't be used in files directory https://www.drupal.org/project/drupal/issues/1008402": "https://www.drupal.org/files/issues/2021-07-29/1008402-148.patch",
"Throw better exception in normalizer https://www.drupal.org/project/drupal/issues/3127883 fixed in 9.5/10": "https://www.drupal.org/files/issues/2022-04-22/3127883-11_throw-better-exception-in-normalizer.patch",
"Allowed formats https://www.drupal.org/project/drupal/issues/784672": "https://www.drupal.org/files/issues/2022-10-21/784672-271.patch",
"Fix html::escape() type declaration https://www.drupal.org/project/drupal/issues/3255637": "https://www.drupal.org/files/issues/2022-10-17/3255637-68.patch",
"allow specifying metadata JSON:API https://www.drupal.org/project/drupal/issues/3100732": "https://git.drupalcode.org/project/drupal/-/merge_requests/2794/diffs.patch",
"fix private files image generation https://www.drupal.org/project/drupal/issues/2786735": "https://www.drupal.org/files/issues/2022-09-23/2786735-39.patch",
"Remove classes in field for feeds import #184": "patches/core-remove_classes_in_field.patch",
"Remove JSON:API metadata #257": "patches/core-jsonapi_remove_metadata.patch",
"Remove JSON:API links": "patches/core-jsonapi_remove_links.patch",
"Do not save initial email": "patches/core-user_no-initial-email.patch"
},
"drupal/csp": {
"Auto sources should use full file path https://www.drupal.org/project/csp/issues/3263346": "https://www.drupal.org/files/issues/2022-02-09/3263346-auto-sources-should.patch",
"Disable auto include": "patches/csp-disable_library_auto_include.patch"
},
"drupal/drupal-extension": {
"email_registration compat": "patches/drupalextension-email_registration.patch",
"improve drush context": "patches/drupalextension-drush_context.patch"
},
"drupal/easy_breadcrumb": {
"PHP 8.1 explode https://www.drupal.org/project/easy_breadcrumb/issues/3284123#comment-14546727": "https://git.drupalcode.org/project/easy_breadcrumb/-/merge_requests/48/diffs.patch"
},
"drupal/email_registration": {
"behat": "https://www.drupal.org/files/issues/2020-01-31/2843505-27.patch",
"enable login via RPC https://www.drupal.org/project/email_registration/issues/2856542": "https://www.drupal.org/files/issues/2021-06-11/2856542-13.patch"
},
"drupal/feeds": {
"allow import by feed type machine name": "patches/feeds-drush_import_by_id.patch",
"disable permissions per feed": "patches/feeds-permissions_disable_per_feed.patch"
},
"drupal/feeds_tamper": {
"disable permissions per tamper": "patches/feeds_tamper-disable_per_tamper.patch"
},
"drupal/filefield_paths": {
"add origname to file table - fixed in next release (rc6?)": "https://www.drupal.org/files/issues/2020-03-13/3119771-2.patch",
"fix call to thirdpartysettings https://www.drupal.org/project/filefield_paths/issues/2718783": "https://www.drupal.org/files/issues/2020-04-27/2718783-38-reroll.patch"
},
"drupal/json_field": {
"add feeds support https://www.drupal.org/project/json_field/issues/3222366#comment-14697000": "https://git.drupalcode.org/project/json_field/-/merge_requests/10.patch"
},
"drupal/jsonapi_include": {
"add compatibility with jsonapi_resource https://www.drupal.org/project/jsonapi_include/issues/3172870": "https://www.drupal.org/files/issues/2020-09-24/jsonapi_resources-3172870-2.patch",
"move settings https://www.drupal.org/project/jsonapi_include/issues/3238138": "https://www.drupal.org/files/issues/2021-09-21/move-configuration-pages.patch"
},
"drupal/jsonrpc": {
"enable cookie auth https://www.drupal.org/project/jsonrpc/issues/3284838": "patches/jsonrpc_enable-cookie-auth.patch",
"fix response header https://www.drupal.org/project/jsonrpc/issues/3285339": "https://www.drupal.org/files/issues/2022-06-13/3285339-2_jsonrpc_response_header.patch",
"log Response errors https://www.drupal.org/project/jsonrpc/issues/3291299#comment-14607014": "https://git.drupalcode.org/project/jsonrpc/-/merge_requests/2/diffs.patch"
},
"drupal/markdown": {
"add role attribute support https://www.drupal.org/project/markdown/issues/3265161": "https://www.drupal.org/files/issues/2022-02-18/3265161-2_markdown_add-role-attribute.patch",
"PHP 8.1 https://www.drupal.org/project/markdown/issues/3265416": "https://git.drupalcode.org/project/markdown/-/merge_requests/17.patch",
"strip tags from heading permalinks": "patches/markdown-use-heading-normalizer-class.patch",
"no phone home": "patches/markdown-no_phone_home.patch"
},
"drupal/metatag": {
"feeds integration https://www.drupal.org/project/metatag/issues/3011202": "https://www.drupal.org/files/issues/2020-09-29/feeds-integration-3011202-30_1.patch"
},
"drupal/pathauto": {
"prevent pathauto from duping itself https://www.drupal.org/project/pathauto/issues/3107144": "https://www.drupal.org/files/issues/2020-01-17/pathauto-3107144-2.patch",
"https://www.drupal.org/project/pathauto/issues/3142482": "patches/pathauto_disable-ebook-page-insert-alias-creation.patch"
},
"drupal/xhprof": {
"add callgraph support https://www.drupal.org/project/xhprof/issues/1470740": "https://www.drupal.org/files/issues/2022-01-25/add_graph--1470740--21.patch"
},
"league/commonmark": {
"Remove aria-hidden on permalinks": "patches/commonmark_remove-aria-hidden-permalinks.patch"
}
}
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8",
"canonical": false
},
{
"type": "package",
"package": {
"name": "josdejong/jsoneditor",
"version": "v5.29.1",
"type": "drupal-library",
"dist": {
"url": "https://github.com/josdejong/jsoneditor/archive/v5.29.1.zip",
"type": "zip"
},
"source": {
"url": "https://github.com/josdejong/jsoneditor",
"type": "git",
"reference": "v5.29.1"
}
}
},
{
"type": "package",
"package": {
"name": "yesmeck/jquery-jsonview",
"version": "v1.2.3",
"type": "drupal-library",
"dist": {
"url": "https://github.com/yesmeck/jquery-jsonview/archive/v1.2.3.zip",
"type": "zip"
},
"source": {
"url": "https://github.com/yesmeck/jquery-jsonview",
"type": "git",
"reference": "v1.2.3"
}
}
}
],
"minimum-stability": "beta",
"prefer-stable": true,
"scripts": {
"post-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-create-project-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"build-assets": [
"composer install --optimize-autoloader --no-dev"
],
"behat-ci-chrome-debug": [
"Composer\\Config::disableProcessTimeout",
"./vendor/bin/drush watchdog:delete feeds -y",
"./vendor/bin/behat tests/behat/features/ -c tests/behat/behat-lando-selenium.yml --tags '@ci' --format pretty --out std --format html --out tests/reports --profile profile_chrome"
],
"behat-ci-sm2": [
"Composer\\Config::disableProcessTimeout",
"./vendor/bin/behat tests/behat/features/ -c tests/behat/behat-lando-selenium.yml --tags '@testme-setup' --format pretty --out std --format html --out tests/reports --profile profile_chrome",
"./vendor/bin/behat tests/behat/features/ -c tests/behat/behat-lando-selenium.yml --tags '@sm2' --format pretty --out std --format html --out tests/reports --profile profile_chrome"
],
"behat-site-audit-chrome": [
"Composer\\Config::disableProcessTimeout",
"./vendor/bin/behat tests/behat/features/ -c tests/behat/behat-lando-selenium.yml --tags '@site-audit' --format pretty --out std --format html --out tests/reports --profile profile_chrome"
],
"code-sniff": [
"./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md --ignore=node_modules,vendor ./web/modules/custom ./web/themes/custom ./tests/behat ./scripts ./config ./submodules/soko"
],
"feeds-import": [
"./vendor/bin/drush php-script scripts/feedme.php"
],
"initialize-site": [
"./vendor/bin/drush php-script scripts/platformsh/initialize-site.php"
],
"install-core-frontend": [
"cd web/core; yarn install"
],
"lint-yaml": [
"rm -rf web/core/lint_yaml_symlinks",
"mkdir web/core/lint_yaml_symlinks",
"ln -s ../../modules/custom web/core/lint_yaml_symlinks/custom_modules",
"ln -s ../../themes/custom web/core/lint_yaml_symlinks/custom_themes",
"ln -s ../../../.lando.yml web/core/lint_yaml_symlinks/lando.yml",
"ln -s ../../../tests/ web/core/lint_yaml_symlinks/tests",
"web/core/node_modules/eslint/bin/eslint.js --ext .yml web/core/lint_yaml_symlinks/"
],
"lint-yaml-fix": [
"web/core/node_modules/eslint/bin/eslint.js --ext .yml web/core/lint_yaml_symlinks --fix"
],
"translations-import": [
"./vendor/bin/drush locale:import ja /app/translations/ja.po --type=customized --override=customized"
],
"twig-sniff": [
"./vendor/bin/twigcs ./web/themes/custom"
],
"phpstan": [
"./vendor/bin/phpstan analyze"
],
"unit-tests": [
"./vendor/bin/phpunit -c phpunit.xml web/modules/custom/memory/tests"
],
"lint": "find web/modules/custom web/themes/custom -name '*.php' -exec php -l {} \\;",
"tome": "./scripts/tome/generate-static-pages.sh"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment