Skip to content

Commit

Permalink
Update composer.json for Drupal 8.8. ***At this time, the .htaccess b…
Browse files Browse the repository at this point in the history
…it is broken -- drupal/core-composer-scaffold seems to be looking in palantirnet/drupal-skeleton for the .htaccess file.
  • Loading branch information
becw committed Nov 26, 2019
1 parent af123bc commit 78ee1d5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ styleguide/output_prod/
!styleguide/package-lock.json
!styleguide/yarn.lock

.editorconfig
.gitattributes
20 changes: 14 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
],
"require": {
"composer/installers": "^1.0",
"drupal-composer/drupal-scaffold": "^2.5.0",
"drupal/core-composer-scaffold": "^8.8",
"drupal/config_installer": "^1.8",
"drupal/config_split": "^1.4",
"drupal/core": "^8.0@stable",
"drupal/core-recommended": "^8.7.0",

This comment has been minimized.

Copy link
@byrond

byrond Dec 6, 2019

Contributor

@becw I think zaporylie/composer-drupal-optimizations requires the dependency in composer.json to be drupal/core. Am I reading this right?

All you have to do is to make sure your drupal core constraint in the root composer.json is set to drupal/core: ^8.5 or above. If you use a Drupal distribution, be sure to explicitly require drupal/core in your own project as well.

This comment has been minimized.

"zaporylie/composer-drupal-optimizations": "^1.1"
},
"require-dev": {
Expand All @@ -39,6 +39,7 @@
"behat/mink-extension": "^2.2",
"behat/mink-goutte-driver": "^1.2",
"drupal/coder": "~8.2.12",
"drupal/core-dev": "^8.7.0",
"drupal/drupal-extension": "^3.1",
"palantirnet/the-build": "^2.0",
"palantirnet/the-vagrant": "^2.3"
Expand All @@ -62,11 +63,18 @@
"drush/contrib/{$name}": ["type:drupal-drush"]
},
"drupal-scaffold": {
"excludes": [
".htaccess"
"allowed-packages": [
"drupal/core"
],
"initial": {
".htaccess": ".htaccess"
"locations": {
"web-root": "web/"
},
"file-mapping": {
"[web-root]/.htaccess": {
"mode": "replace",
"path": "assets/scaffold/files/htaccess",
"overwrite": false
}
}
}
}
Expand Down

0 comments on commit 78ee1d5

Please sign in to comment.