Skip to content

Instantly share code, notes, and snippets.

@jmolivas
jmolivas / views.view.drupalplanet.yml
Last active February 4, 2016 08:36
Drupal 8 - DrupalPlanet - export view
uuid: 3a300bf8-bfef-42a9-b05c-921d8f4a1d39
langcode: en
status: true
dependencies:
config:
- field.storage.node.body
- node.type.article
- taxonomy.vocabulary.tags
content:
- 'taxonomy_term:tags:a27609eb-9d7d-4e4a-9700-ef7eb302c20e'
@jmolivas
jmolivas / composer.json
Created February 2, 2016 16:12
DrupalComposer + post-install
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 8 projects with composer",
"type": "project",
"license": "GPL-2.0+",
"authors": [
{
"name": "",
"role": ""
}
@jmolivas
jmolivas / site-install.md
Last active January 30, 2016 18:03
Download, install and serve Drupal8 using one command

Download, install and serve Drupal 8

$ drupal chain --file=~/.console/chain/quick-start.yml

See below for Drupal Console download and configuration instructions.


Download DrupalConsole

@jmolivas
jmolivas / install-fish.sh
Last active May 1, 2020 13:06
Improve your shell with fish and oh my fish.
brew install fish
<?php
/**
* Update example 8001
*/
function example_update_8001(&$sandbox) {
print 'executing example update 8001';
}
/**
@jmolivas
jmolivas / cache-rebuild.sh
Last active February 3, 2017 10:34
Creating a Blog in Drupal 8
$ drush cr (cache-rebuild)
@jmolivas
jmolivas / configuration.yml
Created January 20, 2016 07:42
Casper chain files
commands:
- command: config:override
arguments:
config-name: system.site
key: page.front
value: /front-page
- command: config:import:single
arguments:
config-name: core.entity_view_display.user.user.default
input-file: themes/contrib/casper/config/override/core.entity_view_display.user.user.default.yml
@jmolivas
jmolivas / composer.json
Last active January 26, 2016 20:12
Drupal Composer example
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 8 projects with composer",
"type": "project",
"license": "GPL-2.0+",
"authors": [
{
"name": "",
"role": ""
}
@jmolivas
jmolivas / post-install.yml
Last active February 2, 2016 16:17
Drupal Composer + post-install.yml and post-update.yml examples
commands:
# Install Drupal
- command: site:install
options:
langcode: en
db-type: mysql
db-host: 127.0.0.1
db-name: drupal_composer
db-user: root
db-pass: root # local config
@jmolivas
jmolivas / instructions.md
Last active June 12, 2017 00:56
YDD => YAML Driven Development using sample YAML file distributed with Drupal Console, original file path: https://github.com/hechoendrupal/DrupalConsole/blob/master/config/dist/chain/sample.yml

Instructions

You must have Drupal Console 0.10.4+ installed to test this.

Install Drupal Console

curl https://drupalconsole.com/installer -L -o drupal.phar
mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal