Skip to content

Commit

Permalink
Add Drush 10 and smart theme compilation
Browse files Browse the repository at this point in the history
Enforcing this lets us do dynamic theme compilation per thinkshout/ts_recipes#14
Note that this is waiting on pantheon-systems/example-drops-8-composer#334 and km_collaborative to switch to that release.
  • Loading branch information
unclegcb authored Mar 25, 2021
1 parent 218b8ea commit 4698e63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
}
},
"require": {
"united-philanthropy-forum/km_collaborative": ">=0.1.4"
"united-philanthropy-forum/km_collaborative": "dev-drush10"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": ">=0.5.0",
"dmore/behat-chrome-extension": ">=1.3",
"drush/drush": "^10",
"drupal/coder": ">=8.3.1",
"drupal/console": ">=1",
"drupal/drupal-extension": ">=4.1",
Expand Down Expand Up @@ -76,7 +77,9 @@
],
"compile-code": [
"npm install --prefix web/profiles/contrib/km_collaborative/themes/kmc_base_theme",
"npm run build --prefix web/profiles/contrib/km_collaborative/themes/kmc_base_theme"
"npm run build --prefix web/profiles/contrib/km_collaborative/themes/kmc_base_theme",
"npm install --prefix=$(drush dd $(drush st --field=theme))",
"npm run build --prefix=$(drush dd $(drush st --field=theme))"
],
"post-drupal-scaffold-cmd": [
"chmod 755 .ci/build/multidev-save && chmod 755 .ci/deploy/pantheon/dev-multidev"
Expand Down

0 comments on commit 4698e63

Please sign in to comment.