dev-master
9999999-devExpose new commands to Drupal Console to run builds using a config file.
MIT
The Requires
plugin console drupal build
v0.2
0.2.0.0
MIT
The Requires
v0.1
0.1.0.0
MIT
The Requires
Expose new commands to Drupal Console to run builds using a config file.
Expose new commands to Drupal Console
to run builds using a config file., (*1)
Include this library in your Drupal project:, (*4)
composer require "smalot/drupal-console-build:*"
Must be added in your settings.yml
file., (*5)
services: console.deploy_run: class: Smalot\Drupal\Console\Build\Command\RunCommand arguments: [] tags: - { name: drupal.command } console.deploy_list: class: Smalot\Drupal\Console\Build\Command\ListCommand arguments: [] tags: - { name: drupal.command }
File: .build.yml
should be at the same folder level as the .git/
., (*6)
# List stages enabled stages: - compile - cache - features # Commands section compile_css: stage: compile script: - echo "Compile SASS file into CSS" - compass build allow_failure: true cache_rebuild: stage: cache script: - echo "Cache Rebuild" - cd web && drush cache-rebuild features_revert: stage: features script: - echo "Features revert all" - cd web && drush fra -y except: - master
stages
allows to group commands and to order them during process.
If stages
entry is specified, all commands without stage
attribute won't be run., (*7)
Both only
and except
accepts regex patterns (must be surrounded by backslash /
).
You can't specify only
and except
at the same time., (*8)
command: only: - "/^fix-.*$/i"
The allow_failure
will report a command in error, but won't stop future commands.
Otherwise, the whole build will stop at the first command line error., (*9)
Run all tasks, (*10)
drupal build:run
Run all tasks of one stage, (*11)
drupal build:run --stage=cache
Run specific tasks, (*12)
drupal build:run compile_css cache_rebuild
Expose new commands to Drupal Console to run builds using a config file.
MIT
plugin console drupal build
MIT
MIT