msherron / scoundrel
A Lando-powered Drupal 9 project, for the discerning galactic smuggler.
Requires
- cweagans/composer-patches: ^1.7
- drupal/core-recommended: ^9
- drupal/mysql56: ^1.0
Requires (Dev)
- acquia/coding-standards: ^0.4.3
- axelerant/drupal-quality-checker: ^1.1
- drupal/core-composer-scaffold: ^9
- drupal/core-dev: ^9
- drush/drush: ^10
- ergebnis/composer-normalize: ^2.9
- oomphinc/composer-installers-extender: ^1.1 || ^2
- phpunit/phpunit: ~9.4.0
- weitzman/drupal-test-traits: ^1.5
This package is auto-updated.
Last update: 2024-11-29 06:29:44 UTC
README
A Lando-based Drupal 9 project template, chock full of my favorite goodies - for the discerning galactic smuggler.
What's all this for, then?
I found myself adding a lot of local tooling stuff to most Drupal projects that either Lando or Core doesn't provide by default. I got sick of copying and tweaking the same lando file every time I created a project, so I decided to build Scoundrel as a Composer project and step up my life.
This project can be used as a local development environment for D9 builds, or to spin up a quick environment for Contrib or Core development. Inspired and partially extended from Lando + Drupal Contributions.
Prerequisites
- Install Composer. "But I don't wanna install any php stuff locally, I want Lando to handle handle all that?!" No, you don't. It's hella slow running file I/O inside Docker. Trust me on this one.
- Install Lando.
Getting started
- Run
composer create-project msherron/scoundrel
. - Require any additional Composer dependencies for your project. You know you want some Contrib stuff.
- Run
scoundrel-start
. Lando will ask you some questions, and then start. - To install Drupal, run
lando si [profile-name]
. You can not provide a profile name, if you really like Standard .. I guess.
Instructions on the goodies:
- Drush - we handle the path to your Drupal for you, just run
lando drush [cmd]
. No URI required. - Xdebug - it's really easy to use XDebug w/ Lando, but you don't want to leave it on all the time, as it really tanks performance. I provide two handy commands:
xdebug-on
andxdebug-off
. - Run-tests - Core's command line test execution script (run-tests.sh), handles Simpletest, PHPUnit, etc.
- PHPUnit - Takes a path to a module/profile as an argument to run a targeted test.
"Who is sniffing my WHAT now?"
Oh, that's just GrumPHP. It does some basic code quality checking for you and blocks your commits if they don't pass. You want that. It makes you better.