Commit b25e6c25 authored by Cole Bemis's avatar Cole Bemis

Update automated build process

parent 6ee71336
.DS_Store
node_modules
_site
*.zip
manifest.json
sandbox
stash
<ul class="flex flex-wrap justify-center w-80 w-80-ns center mw8 mv0 pl0 list">
{% for icon in site.data['icons-manifest'] %}
{% for icon in site.data['manifest'] %}
{% capture icon_path %}icons/{{ icon }}.svg{% endcapture %}
<li class="icon relative pa3 ma2 black-90 bg-animate br3 outline-0 pointer">
{% include_relative {{ icon_path }} %}
......
#!/usr/bin/env bash
# find and store current version number
version=$(grep '"version"' package.json | cut -d '"' -f4)
# compress 'icons' directory into feather-[version].zip
zip -r feather-${version}.zip ./icons/*
\ No newline at end of file
./bin/make-manifest.sh > manifest.json
./bin/make-zip.sh
jekyll build
#!/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 "]"
#!/usr/bin/env bash
# find and store current version number
version=$(grep '"version"' package.json | cut -d '"' -f4)
# compress 'icons' directory into feather-[version].zip
zip -r feather-${version}.zip ./icons/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment