Skip to content

Instantly share code, notes, and snippets.

@wturrell
Created March 3, 2017 14:36
Show Gist options
  • Save wturrell/c75687bb7ae0308be43d4b62e5298b4e to your computer and use it in GitHub Desktop.
Save wturrell/c75687bb7ae0308be43d4b62e5298b4e to your computer and use it in GitHub Desktop.
Working composer.json for Drupal stackexchange question 230267
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 8 projects with composer",
"type": "project",
"license": "GPL-2.0+",
"authors": [
{
"name": "",
"role": ""
}
],
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"composer/installers": "^1.2",
"drupal-composer/drupal-scaffold": "^2.2",
"cweagans/composer-patches": "~1.0",
"drupal/core": "8.3.0-rc1",
"drush/drush": "~8.0",
"drupal/console": "~1.0",
"drupal/pathauto": "^1.0@RC",
"drupal/coffee": "^1.0@beta",
"drupal/redirect": "^1.0@alpha",
"drupal/prepopulate": "^2.0@alpha",
"drupal/addanother": "^1.0@RC",
"drupal/seo_checklist": "^4.0",
"drupal/checklistapi": "^1.4",
"drupal/unique_field_ajax": "^1.0",
"drupal/git_deploy": "2.x",
"drupal/tagclouds": "1.x"
},
"require-dev": {
"behat/mink": "~1.7",
"behat/mink-goutte-driver": "~1.2",
"jcalderonzumba/gastonjs": "~1.0.2",
"jcalderonzumba/mink-phantomjs-driver": "~0.3.1",
"mikey179/vfsStream": "~1.2",
"phpunit/phpunit": "~4.8",
"symfony/css-selector": "~2.8"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"classmap": [
"scripts/composer/ScriptHandler.php"
]
},
"scripts": {
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
"pre-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"pre-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"post-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
]
},
"extra": {
"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/contrib/{$name}": ["type:drupal-drush"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment