Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-core / config / chain / quick-start.yml
diff --git a/vendor/drupal/console-core/config/chain/quick-start.yml b/vendor/drupal/console-core/config/chain/quick-start.yml
new file mode 100644 (file)
index 0000000..3f97653
--- /dev/null
@@ -0,0 +1,26 @@
+# How to use
+# quick:start --directory="/path/to/drupal-project/"
+# quick:start --directory="/path/to/drupal-project/" --profile="minimal"
+# quick:start --repository="acquia/lightning-project:^8.1" --directory="/path/to/drupal-project/" --profile="lightning"
+command:
+  name: quick:start
+  description: 'Download, install and serve a new Drupal project'
+vars:
+  repository:
+    - drupal-composer/drupal-project:8.x-dev
+    - acquia/lightning-project
+    - acquia/reservoir-project
+  profile: standard
+commands:
+  # Create Drupal project using DrupalComposer
+  - command: exec
+    arguments:
+      bin: composer create-project {{repository}} {{directory}} --prefer-dist --no-progress --no-interaction
+  # Install Drupal
+  - command: exec
+    arguments:
+      bin: drupal site:install {{profile}} --root={{directory}} --db-type="sqlite" --no-interaction
+  # Start PHP built-in server
+  - command: exec
+    arguments:
+      bin: drupal server --root={{directory}}