beetboxvm / beetbox

Pre-provisioned L*MP stack
http://beetbox.rtfd.org
92 stars 19 forks source link

Allow composer.json to generate config.yml. #371

Closed thom8 closed 7 years ago

thom8 commented 7 years ago

Proposed Changes

Adding extra.beetbox.config to composer.json will generate the config.yml for the current project. Note that this will override an existing config file, I considered merging but it would add a fair bit of complexity and the idea would be to ignore the whole .beetbox directory from the repo if using this approach.

example composer.json:

{
    "require-dev": {
        "beet/box": "dev-master"
    },
    "extra": {
        "beetbox": {
            "config": {
                "beet_domain": "drupal8-php7.local",
                "beet_root": "{{ beet_base }}/docroot",
                "php_version": "7.0",
                "drupal_create_makefile": true,
                "drupal_build_makefile": true,
                "drupal_install_site": true
            }
        }
    }
}

Relates To