Skip to content

Instantly share code, notes, and snippets.

@seanr
Created April 24, 2018 15:45
Show Gist options
  • Select an option

  • Save seanr/838acc4beea826a8ef0fbc5d12586155 to your computer and use it in GitHub Desktop.

Select an option

Save seanr/838acc4beea826a8ef0fbc5d12586155 to your computer and use it in GitHub Desktop.

Revisions

  1. seanr created this gist Apr 24, 2018.
    82 changes: 82 additions & 0 deletions .lando.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,82 @@
    # Pantheon recipe
    name: [example]

    # Start with the default Pantheon recipe
    recipe: pantheon

    # Configure the Pantheon recipe
    config:

    # Optionally specify the type of Pantheon site this is. If ommitted this will
    # default to `drupal`. You can use the following options
    #
    # - `backdrop`
    # - `drupal` (for Drupal 6 and Drupal 7 sites)
    # - `drupal8`
    # - `wordpress`
    #
    framework: drupal8

    # Optionally activate xdebug
    #
    # If you are having trouble getting xdebug to work please see:
    # https://docs.devwithlando.io/services/php.html#using-xdebug
    xdebug: true

    # Optionally specify the site id, name and environment for your Pantheon site
    #
    # This is helpful for running terminus commands or performing similar operations
    id: 79dd9e65-0c65-4473-ad1d-82fd7c804f97
    site: teach-for-america

    services:
    appserver:
    composer:
    squizlabs/php_codesniffer: '2.8.1'
    drupal/coder: '8.2.12'
    build:
    - "phpcs --config-set installed_paths $HOME/.composer/vendor/drupal/coder/coder_sniffer"
    #- "cp -rf /app/terminus.config.yml $HOME/.terminus/config.yml"
    #- "terminus auth:login"
    - "rm -rf $HOME/.terminus/plugins"
    - "mkdir -p $HOME/.terminus/plugins"
    - "composer create-project -d $HOME/.terminus/plugins pantheon-systems/terminus-build-tools-plugin:~1"
    - "composer create-project --no-dev -d $HOME/.terminus/plugins pantheon-systems/terminus-drupal-console-plugin:~1"
    - "terminus self:clear-cache"
    extras:
    - "echo 'deb http://ftp.debian.org/debian stretch-backports main' >> /etc/apt/sources.list"
    - "apt-get update -y"
    - "apt-get -t stretch-backports install 'jq'"
    - "curl -sL https://deb.nodesource.com/setup_8.x | bash -"
    - "apt-get install -y nodejs"
    - "npm install -g yarn"
    run:
    - "cd /app && composer install"
    - "cd /app/web/themes/custom/[example]/pattern-lab && composer install"
    - "cd /app/web/themes/custom/[example] && yarn install"
    globals:
    yarn: 'latest'
    overrides:
    services:
    environment:
    NPM_PREFIX: /app/web/themes/[example]
    tooling:
    node:
    service: appserver
    npm:
    service: appserver
    yarn:
    service: appserver
    run:
    service: appserver
    cmd:
    - "npm"
    - "run"
    - "--prefix=/app/web/themes/custom/[example]"
    drush:
    service: appserver
    cmd:
    - "drush"
    - "--root=/app/web"
    - "--uri=https://[example].lndo.site"