mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
Refactor build process
This commit is contained in:
15
bin/build-manifest.sh
Executable file
15
bin/build-manifest.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd ./icons
|
||||
|
||||
numFiles=$(ls -1 *.svg | wc -l)
|
||||
count=0
|
||||
|
||||
echo [
|
||||
for icon in $(ls *.svg)
|
||||
do
|
||||
count=$((count + 1))
|
||||
echo -n " "\"${icon%.svg}\"
|
||||
(($count == $numFiles)) && echo "" || echo ,
|
||||
done
|
||||
echo ]
|
@ -4,4 +4,4 @@
|
||||
version=$(grep '"version"' package.json | cut -d '"' -f4)
|
||||
|
||||
# compress 'icons' directory into feather-[version].zip
|
||||
zip -r feather-${version}.zip ./icons/
|
||||
zip -r feather-${version}.zip ./icons/
|
@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
./bin/make-manifest.sh > manifest.json
|
||||
./bin/make-zip.sh
|
||||
jekyll build
|
@ -1,15 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd ./icons
|
||||
|
||||
n=$(ls -1 | wc -l)
|
||||
m=0
|
||||
|
||||
echo "["
|
||||
for i in $(ls -1 *.svg | cut -d '.' -f 1 )
|
||||
do
|
||||
m=$((m + 1))
|
||||
echo -n " "\"$i\"
|
||||
[ "$m" == $n ] && echo "" || echo ","
|
||||
done
|
||||
echo "]"
|
Reference in New Issue
Block a user