Skip to content

Commit

Permalink
Update site-new add quick-start YML files. (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Dec 12, 2016
1 parent 4f9dd65 commit a1a6c8f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
18 changes: 18 additions & 0 deletions config/dist/chain/quick-start.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# How to use
# quick:start --placeholder="directory:/path/to/drupal-project/" --placeholder="repository:acquia/lightning-project" --placeholder="profile:minimal"
command:
name: quick:start
description: 'Download, install and serve a new Drupal project'
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
# Install Drupal
- command: exec
arguments:
bin: drupal site:install %{{profile|standard}} --root=%{{directory}} --no-interaction
# Start PHP bult-in server
- command: exec
arguments:
bin: drupal server --root=%{{directory}}
12 changes: 2 additions & 10 deletions config/dist/chain/site-new.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
# How to use
# site:new --placeholder="directory:/path/to/drupal-project/" --placeholder="profile:minimal"
# site:new --placeholder="directory:/path/to/drupal-project/" --placeholder="repository:acquia/lightning-project"
command:
name: site:new
description: 'Download, install and serve new Drupal project'
description: 'Download a new Drupal project'
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
# Install Drupal
- command: exec
arguments:
bin: drupal site:install %{{profile|standard}} --root=%{{directory}} --no-interaction
# Start PHP bult-in server
- command: exec
arguments:
bin: drupal server --root=%{{directory}}

0 comments on commit a1a6c8f

Please sign in to comment.