fix imagemin, use imagemin for SVGs, compress converted icons

main
DaAwesomeP 8 years ago
parent 64a2eaafe6
commit f4e7789a8d

@ -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..."
@ -50,7 +46,7 @@ IFS="$OIFS"
echo "Compressing converted PNG icons..." 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 -o 7 node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/converted/* $WAPPALYZER_ROOT/src/icons/converted
wappalyzer links wappalyzer links

@ -17,10 +17,9 @@
"read-chunk": "2.0.*", "read-chunk": "2.0.*",
"jsonlint": "*", "jsonlint": "*",
"jpm": "*", "jpm": "*",
"imagemin-cli": "*", "imagemin-cli": "2.*.*",
"phantomjs-prebuilt": "*", "phantomjs-prebuilt": "*",
"svg2png": "*", "svg2png": "3.*.*"
"svgo": "*"
}, },
"engines": { "engines": {
"node": ">= 4" "node": ">= 4"

Loading…
Cancel
Save