From f780a13a8bdb97f49a219ec3047197958e43a910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20de=20Fran=C3=A7a?= <448801+fernandofranca@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:44:24 +0200 Subject: [PATCH] feat(pie-monorepo): DSW-2200 add icons synchonization script --- sync-pie-icons.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 sync-pie-icons.sh diff --git a/sync-pie-icons.sh b/sync-pie-icons.sh new file mode 100755 index 0000000000..c1b86cab76 --- /dev/null +++ b/sync-pie-icons.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# setup temporary folder +mkdir -p _tmp-pie-iconography + +# clean-up potential leftovers +rm -rf _tmp-pie-iconography/* + +# clone pie-iconography repo +git clone --depth=1 --branch=main git@github.com:justeattakeaway/pie-iconography.git ./_tmp-pie-iconography + +# sync assets +find _tmp-pie-iconography/All -type f -name "*.svg" -exec mv {} packages/tools/pie-icons/src/assets/ \; + +find _tmp-pie-iconography/Flag -type f -name "*.svg" -exec mv {} packages/tools/pie-icons/src/assets/flag/ \; + +find _tmp-pie-iconography/Logo -type f -name "*.svg" -exec mv {} packages/tools/pie-icons/src/assets/logo/ \; + +find _tmp-pie-iconography/Payment/Default -type f -name "*.svg" -exec mv {} packages/tools/pie-icons/src/assets/payment/ \; + +find _tmp-pie-iconography/Social -type f -name "*.svg" -exec mv {} packages/tools/pie-icons/src/assets/social/ \; + +# clean-up temporary folder +rm -rf _tmp-pie-iconography/*