From 9f5a1d292131ce6d1ebc5a87ac064e34ad5bd690 Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Wed, 9 Nov 2016 12:14:05 -0500 Subject: [PATCH] Adding local:toggle-modules and deploy:toggle-modules targets. --- phing/tasks/ci.xml | 7 +++++++ phing/tasks/deploy.xml | 8 +++++++- phing/tasks/local-sync.xml | 11 +++++++++-- phing/tasks/setup.xml | 10 ++++++++++ template/composer.json | 2 ++ template/project.yml | 29 +++++++++++++++++++++++++++++ 6 files changed, 64 insertions(+), 3 deletions(-) diff --git a/phing/tasks/ci.xml b/phing/tasks/ci.xml index 4bd08b736..22209331a 100644 --- a/phing/tasks/ci.xml +++ b/phing/tasks/ci.xml @@ -39,4 +39,11 @@ + + + + + + + diff --git a/phing/tasks/deploy.xml b/phing/tasks/deploy.xml index ac7754986..9edbb78d4 100644 --- a/phing/tasks/deploy.xml +++ b/phing/tasks/deploy.xml @@ -157,7 +157,7 @@ - + @@ -166,4 +166,10 @@ + + + + + + diff --git a/phing/tasks/local-sync.xml b/phing/tasks/local-sync.xml index 67457be6c..7f4a852a8 100644 --- a/phing/tasks/local-sync.xml +++ b/phing/tasks/local-sync.xml @@ -8,7 +8,7 @@ - + @@ -30,7 +30,14 @@ - + + + + + + + + diff --git a/phing/tasks/setup.xml b/phing/tasks/setup.xml index f66e03e80..abb056937 100644 --- a/phing/tasks/setup.xml +++ b/phing/tasks/setup.xml @@ -264,4 +264,14 @@ + + + ${enable} + + + + ${uninstall} + + + diff --git a/template/composer.json b/template/composer.json index 296071c83..39670615d 100644 --- a/template/composer.json +++ b/template/composer.json @@ -18,6 +18,7 @@ "drupal/memcache" : "^8.2.0-alpha2", "drupal/search_api": "8.1.0-alpha14", "drupal/search_api_solr": "8.1.0-alpha3", + "drupal/seckit": "^8.1.0-alpha2", "drupal/security_review": "8.*", "drupal-composer/drupal-security-advisories": "8.0.x-dev", "drush/drush": "^9.0" @@ -26,6 +27,7 @@ "behat/behat": "^3.1", "behat/mink": "~1.7", "behat/mink-selenium2-driver": "^1.3.1", + "drupal/devel": "^8.1.0-alpha1", "drupal/drupal-extension": "^3.2", "drupal-composer/drupal-scaffold": "^2.1.0", "jarnaiz/behat-junit-formatter": "^1.3.2", diff --git a/template/project.yml b/template/project.yml index 704261b68..75ef3aed7 100644 --- a/template/project.yml +++ b/template/project.yml @@ -69,3 +69,32 @@ target-hooks: # Define any custom Phing files that you'd like to import. E.g., ${repo.root}/blt/phing/build.xml import: ~ + +# An array of modules to be enabled or uninstalled automatically in dev vs prod contexts. +# All local:* targets assume the "dev" context, whereas "deploy:*" targets assume a prod context. +modules: + ci: + enable: [] + uninstall: + - acquia_connector + - shield + deploy: + enable: + - acquia_connector + - shield + uninstall: + - devel + - field_ui + - views_ui + local: + enable: + - dblog + - devel + - field_ui + - seckit + - views_ui + uninstall: + - acsf + - acquia_connector + - dblog + - shield