|
|
@ -22,13 +22,9 @@ echo "Prettifying apps.json..."
|
|
|
|
|
|
|
|
|
|
|
|
node $WAPPALYZER_NODE_PATH/node_modules/jsonlint/lib/cli.js -ist $'\t' $WAPPALYZER_ROOT/src/apps.json
|
|
|
|
node $WAPPALYZER_NODE_PATH/node_modules/jsonlint/lib/cli.js -ist $'\t' $WAPPALYZER_ROOT/src/apps.json
|
|
|
|
|
|
|
|
|
|
|
|
echo "Compressing PNG icons..."
|
|
|
|
echo "Compressing PNG and SVG icons..."
|
|
|
|
|
|
|
|
|
|
|
|
node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons $WAPPALYZER_ROOT/src/icons -o 7
|
|
|
|
node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/* $WAPPALYZER_ROOT/src/icons
|
|
|
|
|
|
|
|
|
|
|
|
echo "Compressing SVG icons..."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node $WAPPALYZER_NODE_PATH/node_modules/svgo/bin/svgo -q -f $WAPPALYZER_ROOT/src/icons $WAPPALYZER_ROOT/src/icons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Converting SVG icons to PNG..."
|
|
|
|
echo "Converting SVG icons to PNG..."
|
|
|
|
|
|
|
|
|
|
|
@ -42,12 +38,16 @@ do
|
|
|
|
dest="$WAPPALYZER_ROOT/src/icons/converted/$(basename "$svg").png"
|
|
|
|
dest="$WAPPALYZER_ROOT/src/icons/converted/$(basename "$svg").png"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! -f "$dest" ]]; then
|
|
|
|
if [[ ! -f "$dest" ]]; then
|
|
|
|
svg2png "$svg" --width=32 --height=32 --output "$dest" || true
|
|
|
|
node $WAPPALYZER_NODE_PATH/node_modules/svg2png/bin/svg2png-cli "$svg" --width=32 --height=32 --output "$dest" || true
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
IFS="$OIFS"
|
|
|
|
IFS="$OIFS"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Compressing converted PNG icons..."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/converted/* $WAPPALYZER_ROOT/src/icons/converted
|
|
|
|
|
|
|
|
|
|
|
|
wappalyzer links
|
|
|
|
wappalyzer links
|
|
|
|
|
|
|
|
|
|
|
|
# Npm Module
|
|
|
|
# Npm Module
|
|
|
|