Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pie-monorepo): DSW-2200 add icons synchonization script #1914

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions sync-pie-icons.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected]: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/*
Loading