From 090fe30ed45f59b93156ab6491a6b9c87a618164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Garn=C3=A6s?= Date: Tue, 5 Dec 2023 18:15:40 +0100 Subject: [PATCH] Split cloning repos and initing projects into sepatate tasks Init'ing is actually just a matter of cloning and resetting so this should simplify things a bit. --- Taskfile.yml | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index e9983f7..1ce6494 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -10,9 +10,11 @@ tasks: init: summary: Setup this directory for development deps: - - design-system:init - - react:init - - cms:init + - design-system:clone + - react:clone + - cms:clone + cmds: + - task: reset cleanup: cmds: @@ -33,14 +35,9 @@ tasks: - react:reset - cms:reset - design-system:init: - sources: - - design-system/yarn.lock - generates: - - design-system/node_modules/* + design-system:clone: cmds: - git clone https://github.com/danskernesdigitalebibliotek/dpl-design-system design-system - - (cd design-system && yarn install) design-system:link: deps: @@ -77,14 +74,9 @@ tasks: cmds: - yarn install - react:init: - sources: - - react/yarn.lock - generates: - - react/node_modules/* + react:clone: cmds: - git clone https://github.com/danskernesdigitalebibliotek/dpl-react react - - (cd react && yarn install) react:link: dir: react @@ -120,14 +112,9 @@ tasks: cmds: - yarn install - cms:init: - sources: - - cms/composer.lock - generates: - - cms/vendor/* + cms:clone: cmds: - git clone https://github.com/danskernesdigitalebibliotek/dpl-cms cms - - (cd cms && task dev:reset) cms:link: dir: cms