From 29d309db5196099982d96933acdc4c0d0ae45436 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 25 Apr 2020 16:50:56 -0300 Subject: Initial commit, migrating from Ghost --- themes/m10c/scripts/update_feather_icons.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 themes/m10c/scripts/update_feather_icons.sh (limited to 'themes/m10c/scripts') diff --git a/themes/m10c/scripts/update_feather_icons.sh b/themes/m10c/scripts/update_feather_icons.sh new file mode 100755 index 0000000..dff5129 --- /dev/null +++ b/themes/m10c/scripts/update_feather_icons.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +FEATHER_PATH=`dirname "$0"`/feather + +# Clone feather repository +git clone --depth=1 git@github.com:feathericons/feather.git $FEATHER_PATH + +pushd $FEATHER_PATH + +# Install dependencies +yarn + +mkdir dist + +# Generate icons.json +npx babel-node bin/build-icons-json.js + +# Copy icons.json into theme data +cp dist/icons.json ../../data/m10c/icons.json + +popd + +# Remove the repository +rm -rf $FEATHER_PATH -- cgit v1.2.3