Skip to content

Commit

Permalink
[site:new] Add vars for defaults. (#173)
Browse files Browse the repository at this point in the history
* [site:new] Add vars for defaults.

* [site:new] Add vars for defaults.
  • Loading branch information
jmolivas authored Jun 22, 2017
1 parent 0dca9fd commit 8e8b7c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/dist/chain/site-new.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# How to use
# site:new --directory="/path/to/drupal-project/"
# site:new --repository="acquia/lightning-project" --directory="/path/to/drupal-project/"
# site:new --directory=/path/to/drupal-project/
# site:new --repository=acquia/lightning-project --directory=/path/to/drupal-project/
command:
name: site:new
description: 'Download a new Drupal project'
vars:
repository: drupal-composer/drupal-project:8.x-dev
commands:
# Create Drupal project using DrupalComposer
- command: exec
arguments:
bin: composer create-project %{{repository|drupal-composer/drupal-project:8.x-dev}} %{{directory}} --prefer-dist --no-progress --no-interaction
bin: composer create-project %{{repository}} %{{directory}} --prefer-dist --no-progress --no-interaction

0 comments on commit 8e8b7c7

Please sign in to comment.