Skip to content

Commit

Permalink
Split cloning repos and initing projects into sepatate tasks
Browse files Browse the repository at this point in the history
Init'ing is actually just a matter of cloning and resetting so this
should simplify things a bit.
  • Loading branch information
kasperg committed Dec 5, 2023
1 parent 5b9a1e4 commit 090fe30
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 090fe30

Please sign in to comment.