mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-23 09:42:04 +01:00
13 lines
269 B
Bash
Executable File
13 lines
269 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
SRC='./src/images'
|
|
OUT='./src/components/svg'
|
|
|
|
printf "Creating SVG components...\\n\\n"
|
|
|
|
# Usage: svgr [-d out-dir] [src-dir]
|
|
./node_modules/@svgr/cli/bin/svgr --icon -d $OUT $SRC
|
|
|
|
printf "\\n🎉 Successfully created SVG components\\n\\n"
|