Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_feather_icons.sh « scripts - github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f535122a58d564cea94d629b860595387e48f4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 install

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