From 5c4ddd52a4e3454ebf04cb2ca2eb648026aec483 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 12 Mar 2023 12:36:59 +0000 Subject: [PATCH] feat(justfile): add recipes for node and fractal Refs: #5 --- templates/justfile.twig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/justfile.twig b/templates/justfile.twig index fc08c67..7cb7480 100644 --- a/templates/justfile.twig +++ b/templates/justfile.twig @@ -16,5 +16,15 @@ install *args: {{ "just _exec php drush site:install -y {{ args }}" | raw }} {% endif %} +{% if "node" is same as language %} +yarn *args: + {{ "just _exec node yarn {{ args }}" | raw }} +{% endif %} + +{% if "fractal" is same as type %} +fractal *args: + {{ "just yarn fractal {{ args }}" | raw }} +{% endif %} + _exec +args: {{ "docker compose exec {{ args }}" | raw }}