PromucFlow_constructor/app/client/src/assets/icons/build.sh
2019-09-20 03:55:37 +05:30

15 lines
347 B
Bash
Executable File

#!/bin/bash
# assumes yarn is installed globally
cd "$(dirname "$0")"
mkdir fonts;
find ./ -maxdepth 1 -mindepth 1 -type d \! -name fonts | sed -e "s/^\.\/\///g" | while read d;
do
mkdir fonts/${d};
npx icon-font-generator ${d}/*.svg -o fonts/${d} -n "${d}-icons";
done;
# using relative path for now
cp -rf fonts ../../../public/
rm -r fonts