DrupalConsole
DrupalCI: Modernizing Testbot Initiative
The Terra App
Drocker
WebProfiler
Ladybug
<?php | |
/** | |
* @file mymodule.install | |
* Install hooks for mymodule. | |
*/ | |
/** | |
* Description of what the database update does. Do not use "Implements..." since it adds | |
* zero information and makes reading the list of pending database updates in Drush harder | |
* to read. |
#! /usr/bin/env bash | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
<?php | |
function phpunit --description "wrap phpunit with the needed env vars" | |
set -g -x SIMPLETEST_DB 'mysql://root@localhost/dev_d8' | |
set -g -x SIMPLETEST_BASE_URL 'http://d8.dev' | |
command phpunit $argv | |
end |
Drupal8 is pretty awesome, but its a problem that you cant choose fromt the ui which template to use. Sure you can overwrite whats there (node--article.html.twig) but that dont give the end user a chance to later change in the site & can end up in even more templates & clutter.
Make it easy to provide a template suggestion for entities, blocks, pages, nodes, fields, menues, username, everything that have a template you should be able to give a suggestion.
A prepopulated list of classes that can be selected for a template.
The modules userbase is sitebuilders & themes that wants to provide variations for a site, developers dont have to provide templates after a site is build, and can rely on the theme to provide all the variations.
#!/bin/sh | |
export XDEBUG_CONFIG="idekey=PHPSTORM" | |
php bin/phpspec run |
http://stackoverflow.com/questions/28105093/incrementally-add-requests-to-a-guzzle-5-0-pool-rolling-requests | |
https://github.com/guzzle/guzzle/issues/946 | |
http://docs.guzzlephp.org/en/latest/quickstart.html#concurrent-requests |
This pre-commit hook is designed to be used for Drupal 7 and 8 sites.
Download the pre-commit file. Save it as .git/hook/pre-commit in your git repo. You need to ensure that the file is executable.
If you want this to be added to all new projects automatically, add it to your git init templates.
To install and PHP CodeSniffer for Drupal, please read the official documentation.
To see this working checking out this short YouTube video.
Resources used during my DrupalCon Dublin presention:
- Local pre commit hook
- Travis Code Sniffer example
- Sanitisation bot
- Acquia Cloud API python client library
- New Relic notification from Pantheon
- 2 repo deployments on github and platform.sh Coming Soon