Update Composer, update everything

This commit is contained in:
Oliver Davies 2018-11-23 12:29:20 +00:00
parent ea3e94409f
commit dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions

View file

@ -0,0 +1,13 @@
command:
name: build:install
description: 'Build site by installing and importing configuration'
commands:
# Install site
- command: site:install
options:
force: true
no-interaction: true
arguments:
profile: standard
# Import configuration
- command: build

View file

@ -0,0 +1,10 @@
command:
name: build
description: 'Build site'
commands:
# Import configuration
- command: config:import
# Rebuild caches.
- command: cache:rebuild
arguments:
cache: all

View file

@ -0,0 +1,17 @@
command:
name: create:data
description: 'Create dummy data'
commands:
# Create dummy data
- command: create:users
options:
limit: 5
- command: create:vocabularies
options:
limit: 5
name-words: 5
learning: true
- command: create:terms
- command: create:nodes
options:
limit: 50

View file

@ -0,0 +1,38 @@
command:
name: generate:example:form
description: 'Generate form example'
commands:
- command: generate:form:config
options:
module: example
class: ConfigForm
form-id: config_form
services:
- state
inputs:
- name: email
type: email
label: Email
description: 'Enter a valid email.'
fieldset: ''
- name: api_key
type: textfield
label: 'API Key'
description: 'Enter API Key'
maxlength: '64'
size: '64'
- name: number_field
type: number
label: 'Number field'
description: 'Enter a valid number.'
- name: big_text
type: textarea
label: 'Big text'
description: 'Enter a big text, you can user <enter> key'
path: '/admin/config/form'
menu_link_gen: true
menu_link_title: 'Example Config Form'
menu_parent: system.admin_config_system
menu_link_desc: 'A Example Config Form.'
# Rebuild routes
- command: router:rebuild

View file

@ -0,0 +1,113 @@
command:
name: generate:example:module
description: 'Generate example module'
commands:
- command: generate:module
options:
module: Example module
machine-name: example
module-path: /modules/custom/
description: My example module
core: 8.x
package: Custom
dependencies:
- command: generate:controller
options:
module: example
class: HelloWorldController
routes:
- title: 'Hello World'
name: 'example.hello_name'
method: hello
path: '/example/hello/{name}'
services:
- entity_field.manager
- theme_handler
- config.factory
test: true
- command: generate:form:config
options:
module: example
class: SettingsForm
form-id: settings_form
inputs:
- name: foo_field
type: textfield
label: 'Foo field'
options: ''
description: ''
maxlength: '64'
size: '64'
default_value: ''
weight: '0'
fieldset: ''
- name: bar_number
type: number
label: 'Bar number'
options: ''
description: ''
maxlength: null
size: null
default_value: ''
weight: '0'
fieldset: ''
path: '/admin/setting/form'
menu_link_gen: true
menu_link_title: SettingsForm
menu_parent: system.admin_config_system
menu_link_desc: 'A description for the menu entry'
- command: generate:entity:content
options:
module: example
entity-class: Foo
entity-name: foo
label: Foo
- command: generate:entity:config
options:
module: example
entity-class: Bar
entity-name: bar
label: Bar
- command: generate:command
options:
module: example
class: ExampleCommand
name: example:command
container-aware: false
- command: generate:authentication:provider
options:
module: example
class: ExampleAuthenticationProvider
- command: generate:plugin:block
options:
module: example
class: ExampleBlock
label: Example plugin block
plugin-id: example_block
- command: generate:plugin:imageeffect
options:
module: example
class: ExampleImageEffect
plugin-id: example_image_effect
label: Example image effect
description: Example image effect
- command: generate:plugin:rest:resource
options:
module: example
class: ExampleRestResource
plugin-id: example_rest_resource
plugin-label: Example Rest Resource
plugin-url: example_rest_resource
plugin-states:
- GET
- PUT
- POST
- command: generate:service
options:
module: example
class: ExampleService
name: example.service
interface: yes
- command: module:install
arguments:
module: [example]

View file

@ -0,0 +1,21 @@
command:
name: site:install:env
description: 'Install site using environment placeholders'
commands:
# Install Drupal
- command: site:install
options:
langcode: en
db-type: '{{ env("DATABASE_TYPE") }}'
db-host: '{{ env("DATABASE_HOST") }}'
db-name: '{{ env("DATABASE_NAME") }}'
db-user: '{{ env("DATABASE_USER") }}'
db-pass: '{{ env("DATABASE_PASSWORD") }}'
db-port: '{{ env("DATABASE_PORT") }}'
site-name: 'Drupal 8 site'
site-mail: admin@example.org # default email
account-name: admin # default account
account-mail: admin@example.org # default email
account-pass: admin # default pass
arguments:
profile: 'standard'

View file

@ -0,0 +1,26 @@
command:
name: site:install:inline
description: 'Install site using inline placeholders'
vars:
db_type: mysql
db_host: 127.0.0.1
db_name: drupal
db_port: 3306
commands:
# Install Drupal
- command: site:install
options:
langcode: 'en'
db-type: '{{db_type}}'
db-host: '{{db_host}}'
db-name: '{{db_name}}'
db-user: '{{db_user}}'
db-pass: '{{db_pass}}'
db-port: '{{db_port}}'
site-name: 'Drupal 8 site'
site-mail: 'admin@example.org' # default email
account-name: 'admin' # default account
account-mail: 'admin@example.org' # default email
account-pass: 'admin' # default pass
arguments:
profile: 'standard'

View file

@ -0,0 +1,17 @@
command:
name: site:install:sqlite
description: 'Install site using sqlite'
commands:
# Install Drupal
- command: site:install
options:
langcode: en
db-type: sqlite
db-file: sites/default/files/.ht.sqlite
site-name: 'Drupal 8 Quick Start'
site-mail: admin@example.com
account-name: admin
account-mail: admin@example.com
account-pass: admin
arguments:
profile: standard

View file

@ -0,0 +1,20 @@
command:
name: site:update
description: 'Execute update commands'
commands:
# Backup current database
- command: database:dump
arguments:
database: 'default'
# Import configurations
- command: config:import
# Run pending update hooks
- command: update:execute
arguments:
module: 'all'
# Run pending update entities
- command: update:entities
# Rebuild caches
- command: cache:rebuild
arguments:
cache: 'all'

View file

@ -0,0 +1,20 @@
# How to use
# update:command:data --directory="/path/to/drupal-project/"
command:
name: update:command:data
description: 'Update gitbook'
commands:
{% set languages = ['en', 'es', 'hi', 'hu', 'pt_br', 'ro', 'vn', 'zh_hans'] %}
{% for language in languages %}
- command: settings:set
arguments:
name: language
value: {{ language }}
- command: generate:doc:data
options:
file: '{{ directory }}/{{ language }}.json'
{% endfor %}
- command: settings:set
arguments:
name: language
value: en

View file

@ -0,0 +1,32 @@
# How to use
# update:gitbook --directory="/path/to/drupal-project/"
command:
name: update:gitbook
description: 'Update gitbook'
commands:
- command: 'module:install'
arguments:
module:
- rest
- taxonomy
- locale
- migrate
- simpletest
- breakpoint
- node
- views
- features
{% set languages = ['en', 'es', 'hi', 'hu', 'pt_br', 'ro', 'vn', 'zh_hans'] %}
{% for language in languages %}
- command: settings:set
arguments:
name: language
value: {{ language }}
- command: develop:doc:gitbook
options:
path: '{{ directory }}/{{ language }}'
{% endfor %}
- command: settings:set
arguments:
name: language
value: en

View file

@ -0,0 +1,14 @@
#defaults:
# cache:
# rebuild:
# arguments:
# cache: all
# config:
# export:
# options:
# remove-uuid: true
# remove-config-hash: true
# generate:
# controller:
# options:
# module: example

View file

@ -0,0 +1,5 @@
# Drupal4Docker example
dev:
root: /var/www/html
extra-options: docker-compose exec --user=82 php
type: container

View file

@ -0,0 +1,3 @@
local:
root: /var/www/drupal8.dev
type: local

View file

@ -0,0 +1,5 @@
dev:
root: /var/www/html/drupal
host: drupal.org
user: drupal
type: ssh

View file

@ -0,0 +1,7 @@
# DrupalVM Example
dev:
root: /var/www/drupalvm/drupal
host: 192.168.88.88
user: vagrant
extra-options: '-o PasswordAuthentication=no -i ~/.vagrant.d/insecure_private_key'
type: ssh