1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-23 01:29:41 +01:00
portfolio/scripts/svg.sh

13 lines
269 B
Bash
Raw Normal View History

2018-06-20 23:26:40 +02:00
#!/usr/bin/env bash
set -e
SRC='./src/images'
OUT='./src/components/svg'
2018-06-20 23:38:08 +02:00
printf "Creating SVG components...\\n\\n"
2018-06-20 23:26:40 +02:00
# Usage: svgr [-d out-dir] [src-dir]
./node_modules/@svgr/cli/bin/svgr --icon -d $OUT $SRC
2018-06-20 23:38:08 +02:00
printf "\\n🎉 Successfully created SVG components\\n\\n"