mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
Update automated build process
This commit is contained in:
parent
6ee713361c
commit
b25e6c255b
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,7 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
_site
|
||||
*.zip
|
||||
manifest.json
|
||||
sandbox
|
||||
stash
|
||||
|
@ -1,5 +1,5 @@
|
||||
<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 }} %}
|
||||
|
@ -1,7 +1,5 @@
|
||||
#!/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/*
|
||||
./bin/make-manifest.sh > manifest.json
|
||||
./bin/make-zip.sh
|
||||
jekyll build
|
||||
|
15
bin/make-manifest.sh
Executable file
15
bin/make-manifest.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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 "]"
|
7
bin/make-zip.sh
Executable file
7
bin/make-zip.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/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/
|
Loading…
Reference in New Issue
Block a user