lbry-desktop/watch.sh

16 lines
470 B
Bash
Raw Normal View History

#!/bin/bash
trap 'jobs -p | xargs kill' EXIT
2016-03-15 17:12:43 +01:00
mkdir -p dist/css
mkdir -p dist/js
sass --watch scss:dist/css --sourcemap=none &
if [ $1 != "jeremyisbadatnode" ]; then
babel --presets es2015,react --out-dir dist/js/ --watch js/
else
#yes I am dumb, but not a high prio fix - Jeremy
babel --presets /home/jeremy/local/lib/node_modules/babel-preset-es2015,/home/jeremy/local/lib/node_modules/babel-preset-react --out-dir dist/js/ --watch ~/code/lbry-web-gui/js/
2016-03-15 17:12:43 +01:00
fi